What could possibly go wrong? Well, quite a lot actually when working with heterogeneous datasets. This program provides examples on what does work and what does not work when uploading resources (CSV, shape file, GeoPackage) to Dataplatform/Datacatalog. In addition, this program can be used to quickly test a Datacatalog/Dataplatform instance.
To run the program:
- Create a virtual environment;
- Activate the virtual environment;
- Install dependencies from requirements.txt
pip install -r requirements.txt
The program requires two arguments:
- the URL of the CKAN instance in which the resources must be created. This CKAN should contain a package with the "data-trial" package ID. If not present, this package should be created manually. If this package is not present, the program will raise an exception;
- an API token for the user who has permissions to create resources in this package. Log in to CKAN, click the user name in the upper right corner of the screen and go to the "API tokens" tab to generate an API token.