Skip to main content

france-opendata

Connecteurs Python pour la data publique française (open data), extraits pour être partagés entre projets (source unique, pas de duplication).

Client Source Clé
EntreprisesClient recherche-entreprises.api.gouv.fr (identité, dirigeants, finances) —
InpiClient INPI/BCE (bilans, ratios) —
BodaccClient BODACC (créations, ventes, procédures collectives) —
BoampClient BOAMP (avis de marchés publics, DILA OpenDataSoft) —
acco (module) ACCO (accords d'entreprise, base nationale des accords collectifs, DILA, depuis 09/2017) — parser acco.parse_acco + crawler acco_ingest, extra [stock] (defusedxml). Stockage/recherche au consommateur (oto-backend = PostgreSQL). —
DvfClient DVF+ Cerema (transactions immobilières, comparables, depuis 2014) —
SireneClient INSEE Sirene (SIRET, siège) SIRENE_API_KEY (env)
BdTopoClient IGN BDTOPO V3 via WFS (bâti existant d'une parcelle : emprise au sol, CES réel, usages, hauteurs) —
SitadelClient Sit@del SDES/DiDo (permis de construire/aménager, demandeurs SIREN) — fichiers nationaux à pré-fetcher, pas d'API query-able —
BofipClient BOFiP-Impôts, doctrine fiscale en vigueur (DGFiP, jeu bofip-vigueur de data.economie.gouv.fr, Licence Ouverte v2.0) : rechercher(query) (tous les mots, extrait autour du premier trouvé), lire("BOI-…") (texte intégral, suffixe de version -AAAAMMJJ toléré) —
gels_avoirs (module) Registre national des gels d'avoirs (DG Trésor, ~7 400 inscrits, un JSON de ~13 Mo) : gels_avoirs_ingest.telecharger() → (publication, lignes) ; gels_avoirs.controler(lignes, nom, prenom) → TOUTES les correspondances sur le nom, chacune marquée nom_et_prenom ou nom_seul (prénom en tête) ; noms normalisés sans accents ni casse, lettres latines non décomposables (ł, ø, ß, æ, œ, ı, ə…) translittérées. Lève RegistreInvalide sur un registre vide, tronqué (< 1 000 inscrits) ou trop ancien (verifier_fraicheur) au lieu de conclure « aucune correspondance ». Pur, stockage au consommateur. —
FrenchTechClient Capitale French Tech (WordPress REST live) : annuaire écosystème (startups/structures/prestataires, dirigeant+email+tel), événements, appels à projet, financements + French Tech Central (Synbird) — défaut Aix-Marseille, base_url paramétrable —
compact (module) Lecture agent des fiches entreprise et ICPE, pure (clients passés en paramètre) : compact_identity, rechercher (seconde passe « SCI ASC » → forme juridique, avertissement CA), profil_entreprise / profils_entreprises (identité + dernier bilan + bilans_outline + BODACC, pannes partielles dites, lot de 20), compact_icpe / compact_rubriques (rubriques énergie en tête). Réduit les données, jamais les avertissements. —
from france_opendata import EntreprisesClient, DvfClient
EntreprisesClient().search(query="SCI", code_postal="94500", naf=["68.20A"])
DvfClient().stats(code_commune="94017")
# bâti d'une parcelle (géométrie GeoJSON du cadastre) → emprise au sol, CES réel
BdTopoClient().bati_parcelle(parcelle_geometry, contenance_m2=2493)
# Sit@del : download du fichier national puis itération normalisée filtrée
from france_opendata.sitadel import RID_LOGEMENTS
c = SitadelClient()
c.download(RID_LOGEMENTS, "/tmp/logements.csv")
permis = list(c.iter_permis("/tmp/logements.csv", kind="logements", depts={"94"}))

Clé Sirene (optionnelle)

Seul SireneClient (SIRET / siège précis) nécessite une clé INSEE. Tout le reste fonctionne sans clé — pour les données société, EntreprisesClient (recherche-entreprises) couvre l'essentiel.

Obtenir la clé (gratuite) :

  1. Créer un compte sur le portail API de l'INSEE : https://portail-api.insee.fr/
  2. Souscrire à l'API « Sirene » (catalogue) et générer une clé d'intégration.
  3. La fournir via l'environnement ou le constructeur :
export SIRENE_API_KEY="votre_cle"
from france_opendata import SireneClient
SireneClient().get_siret("39860733300059")      # lit SIRENE_API_KEY depuis l'env
SireneClient(api_key="…").get_headquarters("398607333")

Catalogue complet (toutes les sources par domaine, vue « grosse maille » + candidats à brancher) : docs/catalogue.md.

Dépend de requests uniquement. Consommé par ogic-foncier-mcp et oto-cli.

Metadata

Release files for france-opendata 0.52.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for france-opendata 0.52.0
File Size Uploaded Provenance Actions
france_opendata-0.52.0.tar.gz 1.2 MB Without provenance Details for france_opendata-0.52.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for france-opendata 0.52.0
File Interpreter ABI Platform Actions
france_opendata-0.52.0-py3-none-any.whl Python 3 none any Details for france_opendata-0.52.0-py3-none-any.whl

Total release size: 2.4 MB

Release files / france_opendata-0.52.0.tar.gz

Download URL france_opendata-0.52.0.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
7928d6ae1d4632d21194c2ed1d12cd45de0a18d9013c29dea06679eb9bce1cbd
BLAKE2b-256 checksum
How to use checksums
8542ffde9fab0d24ae4abf30bd3288ec82cdd55906ed524dd90eb68e6348c2af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / france_opendata-0.52.0-py3-none-any.whl

Download URL france_opendata-0.52.0-py3-none-any.whl
Size 1.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
c5523d0798cd10502785905560f08bf215ba288eb2cb9489382cb12b06eb96c3
BLAKE2b-256 checksum
How to use checksums
cf46f1912d2450290fc19eca3205616fb30e93d8e8df96c2d6880e91d3989543
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Security for france-opendata 0.52.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.52.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page