Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Latest commit

 

History

History
436 lines (361 loc) · 17.4 KB

File metadata and controls

436 lines (361 loc) · 17.4 KB

Contexte

On souhaite reconstruire https://code.gouv.fr/data/repos|orgas.json à partir des données de https://data.code.gouv.fr plutôt qu'à partir des scripts actuels (codegouvfr-fetch-data et codegouvfr-consolidate-data).

Pour les champs actuels de repos.json et orgas.json, comment récupérer les données de l'API de data.code.gouv.fr ? Quels champs supprimer ? Quels champs ajouter ?

À savoir que tous les champs d’ecosyste.ms de repo sont disponibles avec packages, et packages a plus de détails sur les paquets logiciels comme les rankings, release, registry_url, ranking, etc.

Repos

champ long champ court nouveau champ url
id ? ? ?
name n full_name https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E
platform p "host" : { "name" : "string" } https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E
repository_url r repository_url https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E
description d description https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E
default_branch nan default_branch https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E
is_fork f? fork https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E
is_archived a? archived https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E
creation_date nan created_at https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E
last_update u update_at ? https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E
last_modification nan pushed_at ? https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E
homepage nan homepage https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E
stars_count s stargazers_count https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E
licence li license https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E
open_issues_count nan open_issues_count https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E
language l language https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E
topics nan topics https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E
publiccode nan metadata: publiccode https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E
codemeta nan metadata: codemeta https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E
software_heritage_exists nan nan nan
software_heritage_url nan nan nan

Organisations

champ long champ court nouveau champ url
login l login https://data.code.gouv.fr/api/v1/hosts/%3CHostName%3E/owners/lookup
description d description https://data.code.gouv.fr/api/v1/hosts/%3CHostName%3E/owners/lookup
name n name https://data.code.gouv.fr/api/v1/hosts/%3CHostName%3E/owners/lookup
organization_url o html_url https://data.code.gouv.fr/api/v1/hosts/%3CHostName%3E/owners/lookup
avatar_url au icon_url https://data.code.gouv.fr/api/v1/hosts/%3CHostName%3E/owners/lookup
website h website https://data.code.gouv.fr/api/v1/hosts/%3CHostName%3E/owners/lookup
location a location https://data.code.gouv.fr/api/v1/hosts/%3CHostName%3E/owners/lookup
email e email https://data.code.gouv.fr/api/v1/hosts/%3CHostName%3E/owners/lookup
is_verified v? nan nan
repositories_count r repositories_count https://data.code.gouv.fr/api/v1/hosts/%3CHostName%3E/owners/lookup
creation_date c created_at https://data.code.gouv.fr/api/v1/hosts/%3CHostName%3E/owners/lookup
platform p nan (but can be found in "html_url") https://data.code.gouv.fr/api/v1/hosts/%3CHostName%3E/owners/lookup

Bibliothèques

champ long champ court nouveau champ url
deprecation_reason   nan nan
description d description (from packages software) https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=%3Crepo_url%3E&purl=%3Cpackage_url%3E (other possible fields include: ecosystem, name, sort, order)
name   name (from packages software) https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=%3Crepo_url%3E&purl=%3Cpackage_url%3E
forks   fork (from packages software) https://data.code.gouv.fr/api/v1/repositories/lookup?repository_url=%3Crepo_url%3E&purl=%3Cpackage_url%3E
homepage   homepage (from packages software) https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=%3Crepo_url%3E&purl=%3Cpackage_url%3E
keywords   keywords_array (from packages software) https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=%3Crepo_url%3E&purl=%3Cpackage_url%3E
language   nan nan
stars   stargazers_count https://data.code.gouv.fr/api/v1/repositories/lookup?repository_url=%3Crepo_url%3E&purl=%3Cpackage_url%3E
latest_download_url   download_url https://data.code.gouv.fr/api/v1/repositories/lookup?repository_url=%3Crepo_url%3E&purl=%3Cpackage_url%3E
latest_stable_release_number   latest_release_number (from packages software) https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=%3Crepo_url%3E
latest_stable_release_published_at   latest_release_published_at (from packages software) https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=%3Crepo_url%3E
license_normalized   normalized_licenses (from packages software) https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=%3Crepo_url%3E
library_manager_url   registry_url (from packages software) https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=%3Crepo_url%3E
platform   host: name (from packages software) https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=%3Crepo_url%3E
rank   rankings ? (from packages software) https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=%3Crepo_url%3E&purl=%3Cpackage_url%3E
status   status (from packages software) https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=%3Crepo_url%3E&purl=%3Cpackage_url%3E