Select dataset type when adding new data
Project description
ckanext-create_typed_package
Installation
To install ckanext-create_typed_package:
Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
Install the ckanext-create_typed_package Python package into your virtual environment:
pip install ckanext-create-typed-package
Add create_typed_package to the ckan.plugins setting in your CKAN config file (by default the config file is located at /etc/ckan/default/ckan.ini).
Restart CKAN. For example if you’ve deployed CKAN with Apache on Ubuntu:
sudo service apache2 reload
Config settings
# The minimum number of hours to wait before re-checking a resource # (optional, default: false). create_typed_package.use_scheming = true # The minimum number of hours to wait before re-checking a resource # (optional, default: []). create_typed_package.additional_types = custom_type another_type # The minimum number of hours to wait before re-checking a resource # (optional, default: []). create_typed_package.exclude_types = custom_type another_type # The minimum number of hours to wait before re-checking a resource # (optional, default: false). create_typed_package.use_separate_route = true # The minimum number of hours to wait before re-checking a resource # (optional, default: /dataset/select-type). create_typed_package.route_path = /create-package/select-type
Developer installation
To install ckanext-create_typed_package for development, activate your CKAN virtualenv and do:
git clone https://github.com/DataShades/ckanext-create_typed_package.git cd ckanext-create_typed_package python setup.py develop
Tests
To run the tests, do:
pytest --ckan-ini=test.ini
To run the tests and produce a coverage report, first make sure you have pytest-cov installed in your virtualenv (pip install pytest-cov) then run:
pytest --ckan-ini=test.ini --cov=ckanext.create_typed_package
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
Hashes for ckanext-create_typed_package-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76e3928a3088b5760e68ebb4c39f77a45b890566983f04cc4b6474e6ff950f40 |
|
MD5 | 69a955ce7ddb40b91062c27c9f7e6212 |
|
BLAKE2b-256 | 377bba52e4a325818b87304b956deb6f21d3a3b2add8186ea1c9d7e9083bbe7f |
Hashes for ckanext_create_typed_package-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e098120409a2ba743a7a791c5d8ab2241f1689de83ae2a762c01ef39987dfd01 |
|
MD5 | bd709327c379b8cb95c5cb65e39bd737 |
|
BLAKE2b-256 | b51735ee5639994d6e1add9ff9d3c79a5b0d5dc83cd953632cce2c8a092ec604 |