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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file odcantoolkit-0.1.3.tar.gz.
File metadata
- Download URL: odcantoolkit-0.1.3.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ce1e1d4fdf7f40ce7f9a3bd8593a7d759da526feb77398ca0565d712ebd38ff
|
|
| MD5 |
d4b847b8b9cb6a00c90fb1dec422ceaf
|
|
| BLAKE2b-256 |
2e645305e1790b396365f815b0d6b9430a623eb07e7dbe2ee1dc17968e244091
|
File details
Details for the file odcantoolkit-0.1.3-py3-none-any.whl.
File metadata
- Download URL: odcantoolkit-0.1.3-py3-none-any.whl
- Upload date:
- Size: 14.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f48d46fc12948ad0e1f1f234868acb55c4447cb9c457a22114b5764f3421c2d
|
|
| MD5 |
e12032f7c3dbd490dc9b046d224dda46
|
|
| BLAKE2b-256 |
491b04e8dc3307cd3495a50e3534078cec43e4a6d2ba32abd8a275fe39ceb6c4
|