Screenshot of the module
Example of dataset

This project is not covered by Drupal’s security advisory policy.

Framework for registering and synchronising open datasets from
data.gouv.fr in Drupal.

This module is for French Drupal developers who want to integrate public
service data into their sites. It provides the infrastructure; companion
dataset modules supply the import logic for specific datasets.

How it works

  • Register datasets as config entities — exportable and deployment-safe.
  • Schedule retrieval on a daily, weekly, or monthly basis.
  • Sync via cron or trigger manually from the admin UI.
  • Change detection using SHA-256 hashing — unchanged data is skipped.
  • Queue-based processing to avoid PHP timeouts on large datasets.

Available dataset modules

Module Dataset
Data.gouv.fr Dataset - Waste Disposal Centers (Annuaire des déchèteries DMA) SINOE national registry of waste disposal centers (déchèteries)
Data.gouv.fr Dataset - Co-marquage Service Public Coming soon for that dataset https://www.data.gouv.fr/datasets/fiches-pratiques-et-ressources-de-serv...

More dataset modules are planned.

Configuration

  1. Navigate to Administration > Configuration > System > Data.gouv.fr Datasets.
  2. Add or manage registered datasets.
  3. Trigger syncs manually or let cron handle them automatically.

For developers

The module uses a plugin system to support new datasets. To add support for a
new data.gouv.fr dataset:

  1. Create a new module.
  2. Implement a @DatagouvDatasetSync plugin (extend DatagouvDatasetSyncBase).
  3. Ship a config entity YAML that registers the dataset URL, schedule, and
    plugin ID.

See datagouv_dataset_wdc for a complete working example.

Translation

French translations are included in translations/.

Project information

Releases