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.31.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.31.0-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for france_opendata-0.31.0.tar.gz
Algorithm Hash digest
SHA256 1f641017de8cbff06775c5e8efee68ae153f33390bb450d9eb8cbd5c0de967cf
MD5 21a03fbe6774b55d90263455660a61fd
BLAKE2b-256 8b6413be7b0950d2593035c3fee53fb99268635c61f4ae3b55baffccd77bb07f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for france_opendata-0.31.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6502e6f1bda228e82c0afce1973b9809df68f2c189e2be3de55456e7de8ca337
MD5 98c4aaf9562aae1fc627d46a464c0149
BLAKE2b-256 1f65db964d85627270b5c5b6e30b898ac3ec9234521409b46b4150fad97236ef

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