This simple command-line tool automates the process of updating an existing resource (file) in a CKAN based repository such as data.gov.au or data.vic.gov.au. It is intended to allow councils to automate the regular updating of data.
Developed by Steve Bennett, as part of the OpenCouncilData toolkit funded by MAV Technology, and released under the MIT License.
Pre-requisites: Python 2 (not Python 3), Pip, Git
git clone https://github.com/OpenCouncilData/Ckan-Upload
cd Ckan-Upload
pip install ckanapi argparse
python ckan-upload.py --apikey YOURAPIKEYHERE --resource http://YOURRESOURCEURLHERE /path/to/MYFILE.csv