https://github.com/ckan/example-update-datastore
Example script that uses the CKAN API to create a dataset and upload some data to its DataStore
https://github.com/ckan/example-update-datastore
Last synced: about 2 months ago
JSON representation
Example script that uses the CKAN API to create a dataset and upload some data to its DataStore
- Host: GitHub
- URL: https://github.com/ckan/example-update-datastore
- Owner: ckan
- Created: 2014-02-06T13:16:23.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-02-06T13:33:31.000Z (almost 12 years ago)
- Last Synced: 2025-02-26T07:17:59.909Z (11 months ago)
- Language: Python
- Size: 195 KB
- Stars: 1
- Watchers: 8
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
example-update-datastore
========================
Example script that uses the CKAN API to create a dataset and upload some data to its DataStore (By default to a CKAN instance running on http://localhost:5000).
The script will keep updating the DataStore with random values until stopped. When loaded in the browser, the `visualization.html` file will display the current values, refreshing every few seconds as well.
Requires [ckanapi](https://github.com/ckan/ckanapi) and [requests](http://docs.python-requests.org/).
Usage:
python datastore_example.py API-KEY
Originally written by [@seanh](https://github.com/seanh)