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
File details
Details for the file ckanext-create_typed_package-0.0.2a2.tar.gz
.
File metadata
- Download URL: ckanext-create_typed_package-0.0.2a2.tar.gz
- Upload date:
- Size: 21.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b34a08788432ddd3e7945163d72edf45c4030ddc0ae9e6fe99dd8ddf2d509c6f |
|
MD5 | 356634990f803355e6767b027d183e77 |
|
BLAKE2b-256 | 70781b870df0ee3bb34d11061137e25cbdcaecbfaeb042702a4d35fbfcdba08e |