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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for france_opendata-0.37.0.tar.gz
Algorithm Hash digest
SHA256 a635aed3304025aefb426971612b5d3c665ba0c921c13be23d3fcf5cb17244b9
MD5 9eac268424c97a3db0f94413adc0b0eb
BLAKE2b-256 a40c9b916c4d74fc3c8c65fb12c7a266f707efa2ca1b3c7e522ee004c9b66679

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for france_opendata-0.37.0-py3-none-any.whl
Algorithm Hash digest
SHA256 47110981d847048da2ee38558fac2bc68418accf83a2cc0774f9e9ca4dba7239
MD5 fca600651d74af03cca9d23fe6bdb848
BLAKE2b-256 d67936cb9a647c3f1a72285b2f81fb4e5384a160f16e154ad213d0713c3650e8

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