@@ 1,33 1,20 @@
-# Table of Contents
-
-1. [Contexte](#org1d59ca8)
-2. [Tableau](#org73d8847)
-
-
-<a id="org1d59ca8"></a>
-
# Contexte
-On va reconstruire <https://code.gouv.fr/data/repos.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, comment récupérer les données de
-l'API de data.code.gouv.fr ?
-
-Quels champs supprimer ?
+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,
+avec `packages`, et `packages` a plus de détails sur les paquets logiciels
+comme les rankings, release, registry\_url, ranking, etc.
-<a id="org73d8847"></a>
-
-# Tableau
+# Repos
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
@@ 40,12 27,6 @@ logiciels comme les rankings,
<col class="org-left" />
<col class="org-left" />
-
-<col class="org-left" />
-
-<col class="org-left" />
-
-<col class="org-left" />
</colgroup>
<thead>
<tr>
@@ 53,41 34,21 @@ logiciels comme les rankings,
<th scope="col" class="org-left">champ court</th>
<th scope="col" class="org-left">nouveau champ</th>
<th scope="col" class="org-left">url</th>
-<th scope="col" class="org-left"> </th>
-<th scope="col" class="org-left"> </th>
-<th scope="col" class="org-left"> </th>
</tr>
</thead>
<tbody>
<tr>
-<td class="org-left">repos</td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-</tr>
-</tbody>
-<tbody>
-<tr>
<td class="org-left">id</td>
<td class="org-left">?</td>
<td class="org-left">?</td>
<td class="org-left">?</td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
<td class="org-left">name</td>
<td class="org-left">n</td>
-<td class="org-left">full<sub>name</sub></td>
+<td class="org-left">full_name</td>
<td class="org-left"><a href="https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E">https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
@@ 95,19 56,13 @@ logiciels comme les rankings,
<td class="org-left">p</td>
<td class="org-left">"host" : { "name" : "string" }</td>
<td class="org-left"><a href="https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E">https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
-<td class="org-left">repository<sub>url</sub></td>
+<td class="org-left">repository_url</td>
<td class="org-left">r</td>
-<td class="org-left">repository<sub>url</sub></td>
+<td class="org-left">repository_url</td>
<td class="org-left"><a href="https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E">https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
@@ 115,69 70,48 @@ logiciels comme les rankings,
<td class="org-left">d</td>
<td class="org-left">description</td>
<td class="org-left"><a href="https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E">https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
-<td class="org-left">default<sub>branch</sub></td>
+<td class="org-left">default_branch</td>
<td class="org-left">nan</td>
-<td class="org-left">default<sub>branch</sub></td>
+<td class="org-left">default_branch</td>
<td class="org-left"><a href="https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E">https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
-<td class="org-left">is<sub>fork</sub></td>
+<td class="org-left">is_fork</td>
<td class="org-left">f?</td>
<td class="org-left">fork</td>
<td class="org-left"><a href="https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E">https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
-<td class="org-left">is<sub>archived</sub></td>
+<td class="org-left">is_archived</td>
<td class="org-left">a?</td>
<td class="org-left">archived</td>
<td class="org-left"><a href="https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E">https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
-<td class="org-left">creation<sub>date</sub></td>
+<td class="org-left">creation_date</td>
<td class="org-left">nan</td>
-<td class="org-left">created<sub>at</sub></td>
+<td class="org-left">created_at</td>
<td class="org-left"><a href="https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E">https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
-<td class="org-left">last<sub>update</sub></td>
+<td class="org-left">last_update</td>
<td class="org-left">u</td>
-<td class="org-left">update<sub>at</sub> ?</td>
+<td class="org-left">update_at ?</td>
<td class="org-left"><a href="https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E">https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
-<td class="org-left">last<sub>modification</sub></td>
+<td class="org-left">last_modification</td>
<td class="org-left">nan</td>
-<td class="org-left">pushed<sub>at</sub> ?</td>
+<td class="org-left">pushed_at ?</td>
<td class="org-left"><a href="https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E">https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
@@ 185,19 119,13 @@ logiciels comme les rankings,
<td class="org-left">nan</td>
<td class="org-left">homepage</td>
<td class="org-left"><a href="https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E">https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
-<td class="org-left">stars<sub>count</sub></td>
+<td class="org-left">stars_count</td>
<td class="org-left">s</td>
-<td class="org-left">stargazers<sub>count</sub></td>
+<td class="org-left">stargazers_count</td>
<td class="org-left"><a href="https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E">https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
@@ 205,19 133,13 @@ logiciels comme les rankings,
<td class="org-left">li</td>
<td class="org-left">license</td>
<td class="org-left"><a href="https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E">https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
-<td class="org-left">open<sub>issues</sub><sub>count</sub></td>
+<td class="org-left">open_issues_count</td>
<td class="org-left">nan</td>
-<td class="org-left">open<sub>issues</sub><sub>count</sub></td>
+<td class="org-left">open_issues_count</td>
<td class="org-left"><a href="https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E">https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
@@ 225,9 147,6 @@ logiciels comme les rankings,
<td class="org-left">l</td>
<td class="org-left">language</td>
<td class="org-left"><a href="https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E">https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
@@ 235,9 154,6 @@ logiciels comme les rankings,
<td class="org-left">nan</td>
<td class="org-left">topics</td>
<td class="org-left"><a href="https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E">https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
@@ 245,9 161,6 @@ logiciels comme les rankings,
<td class="org-left">nan</td>
<td class="org-left">metadata: publiccode</td>
<td class="org-left"><a href="https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E">https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
@@ 255,51 168,53 @@ logiciels comme les rankings,
<td class="org-left">nan</td>
<td class="org-left">metadata: codemeta</td>
<td class="org-left"><a href="https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E">https://data.code.gouv.fr/api/v1/repositories/lookup?url=%3Crepo_url%3E&purl=%3Cpackage_url%3E</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
-<td class="org-left">software<sub>heritage</sub><sub>exists</sub></td>
+<td class="org-left">software_heritage_exists</td>
<td class="org-left">nan</td>
<td class="org-left">nan</td>
<td class="org-left">nan</td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
-<td class="org-left">software<sub>heritage</sub><sub>url</sub></td>
+<td class="org-left">software_heritage_url</td>
<td class="org-left">nan</td>
<td class="org-left">nan</td>
<td class="org-left">nan</td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
</tbody>
-<tbody>
+</table>
+
+
+# Organisations
+
+<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
+
+
+<colgroup>
+<col class="org-left" />
+
+<col class="org-left" />
+
+<col class="org-left" />
+
+<col class="org-left" />
+</colgroup>
+<thead>
<tr>
-<td class="org-left">organizations</td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
+<th scope="col" class="org-left">champ long</th>
+<th scope="col" class="org-left">champ court</th>
+<th scope="col" class="org-left">nouveau champ</th>
+<th scope="col" class="org-left">url</th>
</tr>
-</tbody>
+</thead>
<tbody>
<tr>
<td class="org-left">login</td>
<td class="org-left">l</td>
<td class="org-left">login</td>
<td class="org-left"><a href="https://data.code.gouv.fr/api/v1/hosts/%3CHostName%3E/owners/lookup">https://data.code.gouv.fr/api/v1/hosts/%3CHostName%3E/owners/lookup</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
@@ 307,9 222,6 @@ logiciels comme les rankings,
<td class="org-left">d</td>
<td class="org-left">description</td>
<td class="org-left"><a href="https://data.code.gouv.fr/api/v1/hosts/%3CHostName%3E/owners/lookup">https://data.code.gouv.fr/api/v1/hosts/%3CHostName%3E/owners/lookup</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
@@ 317,29 229,20 @@ logiciels comme les rankings,
<td class="org-left">n</td>
<td class="org-left">name</td>
<td class="org-left"><a href="https://data.code.gouv.fr/api/v1/hosts/%3CHostName%3E/owners/lookup">https://data.code.gouv.fr/api/v1/hosts/%3CHostName%3E/owners/lookup</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
-<td class="org-left">organization<sub>url</sub></td>
+<td class="org-left">organization_url</td>
<td class="org-left">o</td>
-<td class="org-left">html<sub>url</sub></td>
+<td class="org-left">html_url</td>
<td class="org-left"><a href="https://data.code.gouv.fr/api/v1/hosts/%3CHostName%3E/owners/lookup">https://data.code.gouv.fr/api/v1/hosts/%3CHostName%3E/owners/lookup</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
-<td class="org-left">avatar<sub>url</sub></td>
+<td class="org-left">avatar_url</td>
<td class="org-left">au</td>
-<td class="org-left">icon<sub>url</sub></td>
+<td class="org-left">icon_url</td>
<td class="org-left"><a href="https://data.code.gouv.fr/api/v1/hosts/%3CHostName%3E/owners/lookup">https://data.code.gouv.fr/api/v1/hosts/%3CHostName%3E/owners/lookup</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
@@ 347,9 250,6 @@ logiciels comme les rankings,
<td class="org-left">h</td>
<td class="org-left">website</td>
<td class="org-left"><a href="https://data.code.gouv.fr/api/v1/hosts/%3CHostName%3E/owners/lookup">https://data.code.gouv.fr/api/v1/hosts/%3CHostName%3E/owners/lookup</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
@@ 357,9 257,6 @@ logiciels comme les rankings,
<td class="org-left">a</td>
<td class="org-left">location</td>
<td class="org-left"><a href="https://data.code.gouv.fr/api/v1/hosts/%3CHostName%3E/owners/lookup">https://data.code.gouv.fr/api/v1/hosts/%3CHostName%3E/owners/lookup</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
@@ 367,71 264,67 @@ logiciels comme les rankings,
<td class="org-left">e</td>
<td class="org-left">email</td>
<td class="org-left"><a href="https://data.code.gouv.fr/api/v1/hosts/%3CHostName%3E/owners/lookup">https://data.code.gouv.fr/api/v1/hosts/%3CHostName%3E/owners/lookup</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
-<td class="org-left">is<sub>verified</sub></td>
+<td class="org-left">is_verified</td>
<td class="org-left">v?</td>
<td class="org-left">nan</td>
<td class="org-left">nan</td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
-<td class="org-left">repositories<sub>count</sub></td>
+<td class="org-left">repositories_count</td>
<td class="org-left">r</td>
-<td class="org-left">repositories<sub>count</sub></td>
+<td class="org-left">repositories_count</td>
<td class="org-left"><a href="https://data.code.gouv.fr/api/v1/hosts/%3CHostName%3E/owners/lookup">https://data.code.gouv.fr/api/v1/hosts/%3CHostName%3E/owners/lookup</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
-<td class="org-left">creation<sub>date</sub></td>
+<td class="org-left">creation_date</td>
<td class="org-left">c</td>
-<td class="org-left">created<sub>at</sub></td>
+<td class="org-left">created_at</td>
<td class="org-left"><a href="https://data.code.gouv.fr/api/v1/hosts/%3CHostName%3E/owners/lookup">https://data.code.gouv.fr/api/v1/hosts/%3CHostName%3E/owners/lookup</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
<td class="org-left">platform</td>
<td class="org-left">p</td>
-<td class="org-left">nan (but can be found in "html<sub>url</sub>")</td>
+<td class="org-left">nan (but can be found in "html_url")</td>
<td class="org-left"><a href="https://data.code.gouv.fr/api/v1/hosts/%3CHostName%3E/owners/lookup">https://data.code.gouv.fr/api/v1/hosts/%3CHostName%3E/owners/lookup</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
</tbody>
-<tbody>
+</table>
+
+
+# Bibliothèques
+
+<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
+
+
+<colgroup>
+<col class="org-left" />
+
+<col class="org-left" />
+
+<col class="org-left" />
+
+<col class="org-left" />
+</colgroup>
+<thead>
<tr>
-<td class="org-left">libraries</td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
+<th scope="col" class="org-left">champ long</th>
+<th scope="col" class="org-left">champ court</th>
+<th scope="col" class="org-left">nouveau champ</th>
+<th scope="col" class="org-left">url</th>
</tr>
-</tbody>
+</thead>
<tbody>
<tr>
-<td class="org-left">deprecation<sub>reason</sub></td>
+<td class="org-left">deprecation_reason</td>
<td class="org-left"> </td>
<td class="org-left">nan</td>
<td class="org-left">nan</td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
@@ 439,9 332,6 @@ logiciels comme les rankings,
<td class="org-left">d</td>
<td class="org-left">description</td>
<td class="org-left">(from packages software) <a href="https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=%3Crepo_url%3E&purl=%3Cpackage_url%3E">https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=%3Crepo_url%3E&purl=%3Cpackage_url%3E</a> (other possible fields include: ecosystem, name, sort, order)</td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
@@ 449,9 339,6 @@ logiciels comme les rankings,
<td class="org-left"> </td>
<td class="org-left">name</td>
<td class="org-left">(from packages software) <a href="https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=%3Crepo_url%3E&purl=%3Cpackage_url%3E">https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=%3Crepo_url%3E&purl=%3Cpackage_url%3E</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
@@ 459,9 346,6 @@ logiciels comme les rankings,
<td class="org-left"> </td>
<td class="org-left">fork</td>
<td class="org-left">(from packages software) <a href="https://data.code.gouv.fr/api/v1/repositories/lookup?repository_url=%3Crepo_url%3E&purl=%3Cpackage_url%3E">https://data.code.gouv.fr/api/v1/repositories/lookup?repository_url=%3Crepo_url%3E&purl=%3Cpackage_url%3E</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
@@ 469,19 353,13 @@ logiciels comme les rankings,
<td class="org-left"> </td>
<td class="org-left">homepage</td>
<td class="org-left">(from packages software) <a href="https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=%3Crepo_url%3E&purl=%3Cpackage_url%3E">https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=%3Crepo_url%3E&purl=%3Cpackage_url%3E</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
<td class="org-left">keywords</td>
<td class="org-left"> </td>
-<td class="org-left">keywords<sub>array</sub></td>
+<td class="org-left">keywords_array</td>
<td class="org-left">(from packages software) <a href="https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=%3Crepo_url%3E&purl=%3Cpackage_url%3E">https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=%3Crepo_url%3E&purl=%3Cpackage_url%3E</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
@@ 489,69 367,48 @@ logiciels comme les rankings,
<td class="org-left"> </td>
<td class="org-left">nan</td>
<td class="org-left">nan</td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
<td class="org-left">stars</td>
<td class="org-left"> </td>
-<td class="org-left">stargazers<sub>count</sub></td>
+<td class="org-left">stargazers_count</td>
<td class="org-left"><a href="https://data.code.gouv.fr/api/v1/repositories/lookup?repository_url=%3Crepo_url%3E&purl=%3Cpackage_url%3E">https://data.code.gouv.fr/api/v1/repositories/lookup?repository_url=%3Crepo_url%3E&purl=%3Cpackage_url%3E</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
-<td class="org-left">latest<sub>download</sub><sub>url</sub></td>
+<td class="org-left">latest_download_url</td>
<td class="org-left"> </td>
-<td class="org-left">download<sub>url</sub></td>
+<td class="org-left">download_url</td>
<td class="org-left"><a href="https://data.code.gouv.fr/api/v1/repositories/lookup?repository_url=%3Crepo_url%3E&purl=%3Cpackage_url%3E">https://data.code.gouv.fr/api/v1/repositories/lookup?repository_url=%3Crepo_url%3E&purl=%3Cpackage_url%3E</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
-<td class="org-left">latest<sub>stable</sub><sub>release</sub><sub>number</sub></td>
+<td class="org-left">latest_stable_release_number</td>
<td class="org-left"> </td>
-<td class="org-left">latest<sub>release</sub><sub>number</sub></td>
+<td class="org-left">latest_release_number</td>
<td class="org-left">(from packages software) <a href="https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=%3Crepo_url%3E">https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=%3Crepo_url%3E</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
-<td class="org-left">latest<sub>stable</sub><sub>release</sub><sub>published</sub><sub>at</sub></td>
+<td class="org-left">latest_stable_release_published_at</td>
<td class="org-left"> </td>
-<td class="org-left">latest<sub>release</sub><sub>published</sub><sub>at</sub></td>
+<td class="org-left">latest_release_published_at</td>
<td class="org-left">(from packages software) <a href="https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=%3Crepo_url%3E">https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=%3Crepo_url%3E</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
-<td class="org-left">license<sub>normalized</sub></td>
+<td class="org-left">license_normalized</td>
<td class="org-left"> </td>
-<td class="org-left">normalized<sub>licenses</sub></td>
+<td class="org-left">normalized_licenses</td>
<td class="org-left">(from packages software) <a href="https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=%3Crepo_url%3E">https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=%3Crepo_url%3E</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
-<td class="org-left">library<sub>manager</sub><sub>url</sub></td>
+<td class="org-left">library_manager_url</td>
<td class="org-left"> </td>
-<td class="org-left">registry<sub>url</sub></td>
+<td class="org-left">registry_url</td>
<td class="org-left">(from packages software) <a href="https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=%3Crepo_url%3E">https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=%3Crepo_url%3E</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
@@ 559,9 416,6 @@ logiciels comme les rankings,
<td class="org-left"> </td>
<td class="org-left">host: name</td>
<td class="org-left">(from packages software) <a href="https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=%3Crepo_url%3E">https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=%3Crepo_url%3E</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
@@ 569,9 423,6 @@ logiciels comme les rankings,
<td class="org-left"> </td>
<td class="org-left">rankings ?</td>
<td class="org-left">(from packages software) <a href="https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=%3Crepo_url%3E&purl=%3Cpackage_url%3E">https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=%3Crepo_url%3E&purl=%3Cpackage_url%3E</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
<tr>
@@ 579,9 430,6 @@ logiciels comme les rankings,
<td class="org-left"> </td>
<td class="org-left">status</td>
<td class="org-left">(from packages software) <a href="https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=%3Crepo_url%3E&purl=%3Cpackage_url%3E">https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=%3Crepo_url%3E&purl=%3Cpackage_url%3E</a></td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
-<td class="org-left"> </td>
</tr>
</tbody>
</table>
@@ 1,78 1,77 @@
* Contexte
-On va reconstruire https://code.gouv.fr/data/repos.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, comment récupérer les données de
-l'API de data.code.gouv.fr ?
-
-Quels champs supprimer ?
+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.
+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=<repo_url>&purl=<package_url> |
+| platform | p | "host" : { "name" : "string" } | https://data.code.gouv.fr/api/v1/repositories/lookup?url=<repo_url>&purl=<package_url> |
+| repository_url | r | repository_url | https://data.code.gouv.fr/api/v1/repositories/lookup?url=<repo_url>&purl=<package_url> |
+| description | d | description | https://data.code.gouv.fr/api/v1/repositories/lookup?url=<repo_url>&purl=<package_url> |
+| default_branch | nan | default_branch | https://data.code.gouv.fr/api/v1/repositories/lookup?url=<repo_url>&purl=<package_url> |
+| is_fork | f? | fork | https://data.code.gouv.fr/api/v1/repositories/lookup?url=<repo_url>&purl=<package_url> |
+| is_archived | a? | archived | https://data.code.gouv.fr/api/v1/repositories/lookup?url=<repo_url>&purl=<package_url> |
+| creation_date | nan | created_at | https://data.code.gouv.fr/api/v1/repositories/lookup?url=<repo_url>&purl=<package_url> |
+| last_update | u | update_at ? | https://data.code.gouv.fr/api/v1/repositories/lookup?url=<repo_url>&purl=<package_url> |
+| last_modification | nan | pushed_at ? | https://data.code.gouv.fr/api/v1/repositories/lookup?url=<repo_url>&purl=<package_url> |
+| homepage | nan | homepage | https://data.code.gouv.fr/api/v1/repositories/lookup?url=<repo_url>&purl=<package_url> |
+| stars_count | s | stargazers_count | https://data.code.gouv.fr/api/v1/repositories/lookup?url=<repo_url>&purl=<package_url> |
+| licence | li | license | https://data.code.gouv.fr/api/v1/repositories/lookup?url=<repo_url>&purl=<package_url> |
+| open_issues_count | nan | open_issues_count | https://data.code.gouv.fr/api/v1/repositories/lookup?url=<repo_url>&purl=<package_url> |
+| language | l | language | https://data.code.gouv.fr/api/v1/repositories/lookup?url=<repo_url>&purl=<package_url> |
+| topics | nan | topics | https://data.code.gouv.fr/api/v1/repositories/lookup?url=<repo_url>&purl=<package_url> |
+| publiccode | nan | metadata: publiccode | https://data.code.gouv.fr/api/v1/repositories/lookup?url=<repo_url>&purl=<package_url> |
+| codemeta | nan | metadata: codemeta | https://data.code.gouv.fr/api/v1/repositories/lookup?url=<repo_url>&purl=<package_url> |
+| 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/<HostName>/owners/lookup |
+| description | d | description | https://data.code.gouv.fr/api/v1/hosts/<HostName>/owners/lookup |
+| name | n | name | https://data.code.gouv.fr/api/v1/hosts/<HostName>/owners/lookup |
+| organization_url | o | html_url | https://data.code.gouv.fr/api/v1/hosts/<HostName>/owners/lookup |
+| avatar_url | au | icon_url | https://data.code.gouv.fr/api/v1/hosts/<HostName>/owners/lookup |
+| website | h | website | https://data.code.gouv.fr/api/v1/hosts/<HostName>/owners/lookup |
+| location | a | location | https://data.code.gouv.fr/api/v1/hosts/<HostName>/owners/lookup |
+| email | e | email | https://data.code.gouv.fr/api/v1/hosts/<HostName>/owners/lookup |
+| is_verified | v? | nan | nan |
+| repositories_count | r | repositories_count | https://data.code.gouv.fr/api/v1/hosts/<HostName>/owners/lookup |
+| creation_date | c | created_at | https://data.code.gouv.fr/api/v1/hosts/<HostName>/owners/lookup |
+| platform | p | nan (but can be found in "html_url") | https://data.code.gouv.fr/api/v1/hosts/<HostName>/owners/lookup |
-* Tableau
+* Bibliothèques
-| champ long | champ court | nouveau champ | url | | | |
-|------------------------------------+-------------+--------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---+---+---|
-| repos | | | | | | |
-|------------------------------------+-------------+--------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---+---+---|
-| id | ? | ? | ? | | | |
-| name | n | full_name | https://data.code.gouv.fr/api/v1/repositories/lookup?url=<repo_url>&purl=<package_url> | | | |
-| platform | p | "host" : { "name" : "string" } | https://data.code.gouv.fr/api/v1/repositories/lookup?url=<repo_url>&purl=<package_url> | | | |
-| repository_url | r | repository_url | https://data.code.gouv.fr/api/v1/repositories/lookup?url=<repo_url>&purl=<package_url> | | | |
-| description | d | description | https://data.code.gouv.fr/api/v1/repositories/lookup?url=<repo_url>&purl=<package_url> | | | |
-| default_branch | nan | default_branch | https://data.code.gouv.fr/api/v1/repositories/lookup?url=<repo_url>&purl=<package_url> | | | |
-| is_fork | f? | fork | https://data.code.gouv.fr/api/v1/repositories/lookup?url=<repo_url>&purl=<package_url> | | | |
-| is_archived | a? | archived | https://data.code.gouv.fr/api/v1/repositories/lookup?url=<repo_url>&purl=<package_url> | | | |
-| creation_date | nan | created_at | https://data.code.gouv.fr/api/v1/repositories/lookup?url=<repo_url>&purl=<package_url> | | | |
-| last_update | u | update_at ? | https://data.code.gouv.fr/api/v1/repositories/lookup?url=<repo_url>&purl=<package_url> | | | |
-| last_modification | nan | pushed_at ? | https://data.code.gouv.fr/api/v1/repositories/lookup?url=<repo_url>&purl=<package_url> | | | |
-| homepage | nan | homepage | https://data.code.gouv.fr/api/v1/repositories/lookup?url=<repo_url>&purl=<package_url> | | | |
-| stars_count | s | stargazers_count | https://data.code.gouv.fr/api/v1/repositories/lookup?url=<repo_url>&purl=<package_url> | | | |
-| licence | li | license | https://data.code.gouv.fr/api/v1/repositories/lookup?url=<repo_url>&purl=<package_url> | | | |
-| open_issues_count | nan | open_issues_count | https://data.code.gouv.fr/api/v1/repositories/lookup?url=<repo_url>&purl=<package_url> | | | |
-| language | l | language | https://data.code.gouv.fr/api/v1/repositories/lookup?url=<repo_url>&purl=<package_url> | | | |
-| topics | nan | topics | https://data.code.gouv.fr/api/v1/repositories/lookup?url=<repo_url>&purl=<package_url> | | | |
-| publiccode | nan | metadata: publiccode | https://data.code.gouv.fr/api/v1/repositories/lookup?url=<repo_url>&purl=<package_url> | | | |
-| codemeta | nan | metadata: codemeta | https://data.code.gouv.fr/api/v1/repositories/lookup?url=<repo_url>&purl=<package_url> | | | |
-| software_heritage_exists | nan | nan | nan | | | |
-| software_heritage_url | nan | nan | nan | | | |
-|------------------------------------+-------------+--------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---+---+---|
-| organizations | | | | | | |
-|------------------------------------+-------------+--------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---+---+---|
-| login | l | login | https://data.code.gouv.fr/api/v1/hosts/<HostName>/owners/lookup | | | |
-| description | d | description | https://data.code.gouv.fr/api/v1/hosts/<HostName>/owners/lookup | | | |
-| name | n | name | https://data.code.gouv.fr/api/v1/hosts/<HostName>/owners/lookup | | | |
-| organization_url | o | html_url | https://data.code.gouv.fr/api/v1/hosts/<HostName>/owners/lookup | | | |
-| avatar_url | au | icon_url | https://data.code.gouv.fr/api/v1/hosts/<HostName>/owners/lookup | | | |
-| website | h | website | https://data.code.gouv.fr/api/v1/hosts/<HostName>/owners/lookup | | | |
-| location | a | location | https://data.code.gouv.fr/api/v1/hosts/<HostName>/owners/lookup | | | |
-| email | e | email | https://data.code.gouv.fr/api/v1/hosts/<HostName>/owners/lookup | | | |
-| is_verified | v? | nan | nan | | | |
-| repositories_count | r | repositories_count | https://data.code.gouv.fr/api/v1/hosts/<HostName>/owners/lookup | | | |
-| creation_date | c | created_at | https://data.code.gouv.fr/api/v1/hosts/<HostName>/owners/lookup | | | |
-| platform | p | nan (but can be found in "html_url") | https://data.code.gouv.fr/api/v1/hosts/<HostName>/owners/lookup | | | |
-|------------------------------------+-------------+-a-------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---+---+---|
-| libraries | | | | | | |
-|------------------------------------+-------------+--------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---+---+---|
-| deprecation_reason | | nan | nan | | | |
-| description | d | description | (from packages software) https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=<repo_url>&purl=<package_url> (other possible fields include: ecosystem, name, sort, order) | | | |
-| name | | name | (from packages software) https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=<repo_url>&purl=<package_url> | | | |
-| forks | | fork | (from packages software) https://data.code.gouv.fr/api/v1/repositories/lookup?repository_url=<repo_url>&purl=<package_url> | | | |
-| homepage | | homepage | (from packages software) https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=<repo_url>&purl=<package_url> | | | |
-| keywords | | keywords_array | (from packages software) https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=<repo_url>&purl=<package_url> | | | |
-| language | | nan | nan | | | |
-| stars | | stargazers_count | https://data.code.gouv.fr/api/v1/repositories/lookup?repository_url=<repo_url>&purl=<package_url> | | | |
-| latest_download_url | | download_url | https://data.code.gouv.fr/api/v1/repositories/lookup?repository_url=<repo_url>&purl=<package_url> | | | |
-| latest_stable_release_number | | latest_release_number | (from packages software) https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=<repo_url> | | | |
-| latest_stable_release_published_at | | latest_release_published_at | (from packages software) https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=<repo_url> | | | |
-| license_normalized | | normalized_licenses | (from packages software) https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=<repo_url> | | | |
-| library_manager_url | | registry_url | (from packages software) https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=<repo_url> | | | |
-| platform | | host: name | (from packages software) https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=<repo_url> | | | |
-| rank | | rankings ? | (from packages software) https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=<repo_url>&purl=<package_url> | | | |
-| status | | status | (from packages software) https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=<repo_url>&purl=<package_url> | | | |
+| 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=<repo_url>&purl=<package_url> (other possible fields include: ecosystem, name, sort, order) |
+| name | | name | (from packages software) https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=<repo_url>&purl=<package_url> |
+| forks | | fork | (from packages software) https://data.code.gouv.fr/api/v1/repositories/lookup?repository_url=<repo_url>&purl=<package_url> |
+| homepage | | homepage | (from packages software) https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=<repo_url>&purl=<package_url> |
+| keywords | | keywords_array | (from packages software) https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=<repo_url>&purl=<package_url> |
+| language | | nan | nan |
+| stars | | stargazers_count | https://data.code.gouv.fr/api/v1/repositories/lookup?repository_url=<repo_url>&purl=<package_url> |
+| latest_download_url | | download_url | https://data.code.gouv.fr/api/v1/repositories/lookup?repository_url=<repo_url>&purl=<package_url> |
+| latest_stable_release_number | | latest_release_number | (from packages software) https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=<repo_url> |
+| latest_stable_release_published_at | | latest_release_published_at | (from packages software) https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=<repo_url> |
+| license_normalized | | normalized_licenses | (from packages software) https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=<repo_url> |
+| library_manager_url | | registry_url | (from packages software) https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=<repo_url> |
+| platform | | host: name | (from packages software) https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=<repo_url> |
+| rank | | rankings ? | (from packages software) https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=<repo_url>&purl=<package_url> |
+| status | | status | (from packages software) https://data.code.gouv.fr/api/v1/packages/lookup?repository_url=<repo_url>&purl=<package_url> |