ckanext-datapackage-creator
CKAN extension to use the Frictionless library.
Installation
pip install ckanext-datapackage-creator
Configuration
Once installed, add the datapackage_creator plugin to the ckan.plugins configuration option in your INI file.
ckan.plugins = ... datapackage_creator
The plugin allows you to configure which fields of the resource and package are mandatory and/or ‘readonly’. For this you just need to add a configuration in your INI file:
datapackage_creator = /path/to/datapackage_creator.json
We suggest that the file path would be /etc/ckan/default/datapackage_creator.json or in the same folder as ckan.ini file.
Configuration example file:
{
"package": {
"required": [],
"readonly": []
},
"resource": {
"required": [],
"readonly": []
},
"token": ""
}
Mandatory possible package fields
- description, source, version, license, frequency, tags, author, author_email
Mandatory possible resource fields
- title, description, format, type, encoding, field.name, field.title, field.description, field.format
Possible read-only resource fields
Token
It is necessary to configure an administrator token so that the plugin can query private data.
Entity Diagram
To generate the entity diagram it is necessary to install the library: graphviz.
On Ubuntu: sudo apt-get install graphviz
License
MIT