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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.