Serve DC files via GET requests on DCOR
Project description
This CKAN plugin provides an API for accessing DC data. The python package dclab implements a client library (dclab.rtdc_dataset.fmt_dcor) to access this API. Shape-Out 2 offers a GUI via File - Load DCOR data.
This plugin implements:
The DCOR API for accessing DC datasets online.
A background job that generates a condensed dataset after a resource has been created.
A route that makes the condensed dataset available via “/dataset/{id}/resource/{resource_id}/condensed.rtdc”
Installation
pip install ckanext-dc_serve
Add this extension to the plugins and defaul_views in ckan.ini:
ckan.plugins = [...] dc_serve
Testing
If CKAN/DCOR is installed and setup for testing, this extension can be tested with pytest:
pytest ckanext
Testing can also be done via vagrant in a virtualmachine using the dcor-test <https://app.vagrantup.com/paulmueller/boxes/dcor-test/> image. Make sure that vagrant and virtualbox are installed and run the following commands in the root of this repository:
# Setup virtual machine using `Vagrantfile` vagrant up # Run the tests vagrant ssh -- sudo bash /testing/vagrant-run-tests.sh
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
File details
Details for the file ckanext-dc_serve-0.4.8.tar.gz
.
File metadata
- Download URL: ckanext-dc_serve-0.4.8.tar.gz
- Upload date:
- Size: 21.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4c894ba0c80aab3ea86a5325d2548b847c8f536fc2fb762cd74c264e1936631 |
|
MD5 | 9793089bbb4798e75759237b644c3f36 |
|
BLAKE2b-256 | 7915a0c050051963b77c5a8545631291bad8c0025b2df3738daa7a4169812893 |
File details
Details for the file ckanext_dc_serve-0.4.8-py3-none-any.whl
.
File metadata
- Download URL: ckanext_dc_serve-0.4.8-py3-none-any.whl
- Upload date:
- Size: 22.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48cf97007978370f372cc7f4acebc16d05d8e4067bf5e3e19cc232057946e66c |
|
MD5 | 1ba7d38d46c8bbaf6670b2eb65c197e3 |
|
BLAKE2b-256 | 9a0c3460ccdddea73874504e664f99fd063f75fa723a66249b72aedb60630f87 |