Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

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]

Release History

This version
History Node


History Node


History Node


History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(14.0 kB) Copy SHA256 Hash SHA256
Wheel py3 Jan 14, 2016
(9.5 kB) Copy SHA256 Hash SHA256
Source None Jan 14, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers