Python tool to fetch data from Canada's open data portal
Project description
Overview
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
Installation
The script can be simply installed via pip
pip install odcantoolkit
Usage
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] id
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
odcantoolkit-0.1.tar.gz
(9.6 kB
view hashes)
Built Distribution
odcantoolkit-0.1-py3-none-any.whl
(14.1 kB
view hashes)
Close
Hashes for odcantoolkit-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16da02d73da9c857f21c0af2ff2e023ec04e00f0e99c33225736401845ce8776 |
|
MD5 | ea461e84c2f57138cfe9876b8593c69f |
|
BLAKE2b-256 | e9188999b007c21d03ded787062440b919357ff12783ec348fd61fb9f6950ab8 |