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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1b3f9563b1edab65d012e2e0b9452a4f32f177aa7ffe612cbc808a490c4299a |
|
MD5 | 3ce40408bf8ef6f4a243d3e61e44bb2c |
|
BLAKE2b-256 | d66f64ea04a04f2b13b4699a1d23a872f3559788136ffb4cc880c20a7085daab |
Hashes for ckanext_create_typed_package-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f417066f5ffd600a1b2442321a02a82d3397659843b9322631b30bd9eba89dd1 |
|
MD5 | 31216915e502032992a830c3eff3c72b |
|
BLAKE2b-256 | 3400e9702db5da1bf519045ad7400f943cc6ca497e74ee9fcc8818288177eaca |