Data Package Creator.
Project description
CKNEXT Data Package Creator
CKAN extension to use the fritioncless library
Table of Contents
Publish or Update Package to Pypi
- Check the last version published on Pypi.
- Update
CHANGELOG.md
file with a short review of what had been done. - Update
setup.py
file with the new version number. - Commit all the above changes with the new version number (one above that publish on Pypi). Example:
git commit -am 'v0.1.1'
. - Push the created commit to the online repository: Example:
git push origin master
. - Create a new tag with the new version number (same as used to commit last changes). Example:
git tag v0.1.1 HEAD
. - Push the new created tag to the online repository: Example:
git push origin v0.1.1
. - Publish on Pypi with
make update-package
.
Instalation
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
Datapackage Creator Configuration
Opening the file with vi editor
sudo vi /etc/ckan/default/datapackage_creator.json
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
Possible read-only package fields:
Nothing
Mandatory possible resource fields:
- title
- description
- format
- type
- encoding
- field.name (Column field)
- field.title (Column field)
- field.description (Column field)
- field.format (Column field)
Possible read-only package fields:
- format
- type
- encoding
Token
It is necessary to configure an administrator token so that the plugin can query private data
Project details
Release history Release notifications | RSS feed
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
Close
Hashes for ckanext-datapackage-creator-0.0.47.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81c119d56fdede803ca2ec5b0980e5fc89fb08587f2ec7afa735711ed4fe3bfd |
|
MD5 | e26bfd81a253a31615995b6f5280a252 |
|
BLAKE2b-256 | 38b8df35317a81ed0bce1e741e265fbc73aaddfc3d227924dc18da387c01d14f |
Close
Hashes for ckanext_datapackage_creator-0.0.47-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b77c9ebfa5de454fdc65e5a13aae6b6aa9ec55482030da4ab67f9950363a2be |
|
MD5 | a656b1a6f013e8acd1e9afd6805bb2f9 |
|
BLAKE2b-256 | b13e912a079b6dc7dd42d6e9347ab06f21834e7d2454d86730472b0a5d08bc84 |