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

Uploaded Python 3

File details

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

File metadata

  • Download URL: france_opendata-0.33.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.33.0.tar.gz
Algorithm Hash digest
SHA256 799993667ce807b5fdcc0a6ce2926542b6a2f24f09feecb777dfc8f63d80672b
MD5 2031e64ce02d11426891de69cc0dfb4b
BLAKE2b-256 4458e20c8c1406520317dd53d548ec7dbbef495a24b7a176155fd1e3d93093e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for france_opendata-0.33.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3f20a4c042538e1dcdcd98d8267e519754615c6046934188d7537518b67f96d8
MD5 a560711a4d8e4923b134b95e130b8482
BLAKE2b-256 2fef51b2b9f26e3eb537d3585b6da9041693eedefe27dd678cbd61b6c9a3e08a

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