Skip to main content

API wrapper for data.gouv.fr

Project description

pygouv

pygouv is a Python API wrapper for data.gouv.fr, the French Official Open Data Portal.

Installation

pip install pygouv

Usage

from pygouv import *

home()

Displays the most important information about the datasets that are currently displayed within the home page of the data.gouv.fr portal:

home()

search()


Searches for specific data sets through the data.gouv API according to the pattern provided into the query parameter:

search(query = 'paris', n_pages=20)

explain()


Provides in French a detailed description of a data set:

# mind that we're using the print function so that we get a well formatted text
print(explain(dataset_id = '5f2bc22ff6bf657d74f48375'))

resources()


resources() lists all the resources available within a specific data set:

resources(dataset_id = '5f2bc22ff6bf657d74f48375')

Developing pygouv

To install pygouv along with the tools that you need to develop and run tests, run the following in your virtualenv:

$ pip install -e .[dev]

Code of Conduct

Please note that the pygouv project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pygouv-0.0.5-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

Supported by

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