Skip to main content

Connecteurs Python data publique France (open data) : entreprises (Recherche Entreprises, Sirene, INPI bilans, BODACC), accords collectifs d'entreprise (ACCO), index égalité F-H (Egapro), marchés publics (BOAMP), immobilier (DVF+ Cerema), foncier/cadastre/urbanisme (BAN, API Carto, BDTOPO, Sit@del, GPU, QPV, Géorisques, EPFIF), énergie (Enedis, PVGIS), socio-démo (INSEE Mélodi commune, INSEE IRIS quartier), culture, santé (FINESS, ESSMS HAS). Sans clé sauf Sirene. Détail : README.

Project description

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
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
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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

france_opendata-0.36.0.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

france_opendata-0.36.0-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file france_opendata-0.36.0.tar.gz.

File metadata

  • Download URL: france_opendata-0.36.0.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.4

File hashes

Hashes for france_opendata-0.36.0.tar.gz
Algorithm Hash digest
SHA256 6f52255460b49de7ac08660d5722524ebef22c48e1fac54963269dfc81de2b53
MD5 9dacb0d23128c27ad120440906b82fe6
BLAKE2b-256 657b16c01d287139e921d1c277d8ae75301f99918801e2f9d15362f2c829ee16

See more details on using hashes here.

File details

Details for the file france_opendata-0.36.0-py3-none-any.whl.

File metadata

File hashes

Hashes for france_opendata-0.36.0-py3-none-any.whl
Algorithm Hash digest
SHA256 87e611cb3420438a7ca827f4ca2e6b29a3bdd4c3c3284ed25a55449cc4ceb396
MD5 a2735fa8b6c25bf3b9af9f28b90a3c60
BLAKE2b-256 3254b880c6947007a397b1c543432842aa48543040921c1c7f4cf827a819d38c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page