Skip to main content

Python tool to fetch data from Canada's open data portal

Project description


odcantoolkit is a command line tool used to fetch datasets directly from Canada’s open data portal. The data is then converted to JSON format and can be loaded directly into a MongoDB database.

Currently supported file formats: * CSV


The script can be simply installed via pip

pip install odcantoolkit


JSON mode

odcantoolkit json [--filetype FILETYPE] id

The id is taken from a dataset’s URL. To fecth this dataset, the command would be :

odcantoolkit json 4deb7637-3613-4012-84a2-882b06ab7458

MongoDB mode

odcantoolkit mongo [-h] [--fileformat FILEFORMAT FILEFORMAT]
                    [--dbname DBNAME] [--collection COLLECTION] [--host HOST]
                    [--port PORT]

Project details

Download files

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

Files for odcantoolkit, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size odcantoolkit-0.1.3-py3-none-any.whl (14.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size odcantoolkit-0.1.3.tar.gz (9.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page