ckanext-dc_serve
================
|PyPI Version| |Build Status| |Coverage Status|
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 (dcserv).
- A background job that generates a condensed dataset after a resource
has been created.
- A background job that uploads the condensed dataset to the S3 object
store. The temporary location of the condensed dataset that is created
can be set by setting the `ckanext.dc_serve.tmp_dir` configuration
option.
- A route that makes the condensed dataset available via
"/dataset/{id}/resource/{resource_id}/condensed.rtdc"
(S3 object store data is made available via a redirect)
- A route overriding the default route for downloading a resource via
"/dataset/{id}/resource/{resource_id}/download/resource_name"
(S3 object store data is made available via a redirect)
- Extends the template to show a condensed resource download button
- CLI:
- add CKAN command `run-jobs-dc-serve` that runs all background
jobs for all resources (if not already done)
Installation
------------
::
pip install ckanext-dc_serve
Add this extension to the plugins and defaul_views in ckan.ini:
::
ckan.plugins = [...] dc_serve
Testing
-------
Testing is 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
.. |PyPI Version| image:: https://img.shields.io/pypi/v/ckanext.dc_serve.svg
:target: https://pypi.python.org/pypi/ckanext.dc_serve
.. |Build Status| image:: https://img.shields.io/github/actions/workflow/status/DCOR-dev/ckanext-dc_serve/check.yml
:target: https://github.com/DCOR-dev/ckanext-dc_serve/actions?query=workflow%3AChecks
.. |Coverage Status| image:: https://img.shields.io/codecov/c/github/DCOR-dev/ckanext-dc_serve
:target: https://codecov.io/gh/DCOR-dev/ckanext-dc_serve
Raw data
{
"_id": null,
"home_page": "https://github.com/DCOR-dev/ckanext-dc_serve",
"name": "ckanext-dc-serve",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "CKAN, DCOR, RT-DC",
"author": "Paul M\u00fcller",
"author_email": "dev@craban.de",
"download_url": "https://files.pythonhosted.org/packages/db/a5/33047458ed384217d058c0452a5124feb5a9b964454697761fd48a306f8d/ckanext-dc_serve-0.15.4.tar.gz",
"platform": null,
"description": "ckanext-dc_serve\n================\n\n|PyPI Version| |Build Status| |Coverage Status|\n\nThis CKAN plugin provides an API for accessing DC data. The python\npackage dclab implements a client library (``dclab.rtdc_dataset.fmt_dcor``)\nto access this API. Shape-Out 2 offers a GUI via *File - Load DCOR data*.\n\nThis plugin implements:\n\n- The DCOR API for accessing DC datasets online (dcserv).\n- A background job that generates a condensed dataset after a resource\n has been created.\n- A background job that uploads the condensed dataset to the S3 object\n store. The temporary location of the condensed dataset that is created\n can be set by setting the `ckanext.dc_serve.tmp_dir` configuration\n option.\n- A route that makes the condensed dataset available via\n \"/dataset/{id}/resource/{resource_id}/condensed.rtdc\"\n (S3 object store data is made available via a redirect)\n- A route overriding the default route for downloading a resource via\n \"/dataset/{id}/resource/{resource_id}/download/resource_name\"\n (S3 object store data is made available via a redirect)\n- Extends the template to show a condensed resource download button\n\n- CLI:\n\n - add CKAN command `run-jobs-dc-serve` that runs all background\n jobs for all resources (if not already done)\n\n\nInstallation\n------------\n\n::\n\n pip install ckanext-dc_serve\n\n\nAdd this extension to the plugins and defaul_views in ckan.ini:\n\n::\n\n ckan.plugins = [...] dc_serve\n\n\nTesting\n-------\nTesting is done via vagrant in a virtualmachine using the\n`dcor-test <https://app.vagrantup.com/paulmueller/boxes/dcor-test/>` image.\nMake sure that `vagrant` and `virtualbox` are installed and run the\nfollowing commands in the root of this repository:\n\n::\n\n # Setup virtual machine using `Vagrantfile`\n vagrant up\n # Run the tests\n vagrant ssh -- sudo bash /testing/vagrant-run-tests.sh\n\n\n.. |PyPI Version| image:: https://img.shields.io/pypi/v/ckanext.dc_serve.svg\n :target: https://pypi.python.org/pypi/ckanext.dc_serve\n.. |Build Status| image:: https://img.shields.io/github/actions/workflow/status/DCOR-dev/ckanext-dc_serve/check.yml\n :target: https://github.com/DCOR-dev/ckanext-dc_serve/actions?query=workflow%3AChecks\n.. |Coverage Status| image:: https://img.shields.io/codecov/c/github/DCOR-dev/ckanext-dc_serve\n :target: https://codecov.io/gh/DCOR-dev/ckanext-dc_serve\n\n\n",
"bugtrack_url": null,
"license": "AGPLv3+",
"summary": "Serve DC files via GET requests on DCOR",
"version": "0.15.4",
"project_urls": {
"Homepage": "https://github.com/DCOR-dev/ckanext-dc_serve"
},
"split_keywords": [
"ckan",
" dcor",
" rt-dc"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "fa09ab39f2017685f3ff1e80e26e2c7027970ad5ca9e8f5c0e0adfd0e65346e2",
"md5": "347f6b22d1399db3448e8e298505df75",
"sha256": "a94df902f4c76920b94866bfd4b8263dd6d2ba109dee00c5cb97529c5488f5af"
},
"downloads": -1,
"filename": "ckanext_dc_serve-0.15.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "347f6b22d1399db3448e8e298505df75",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 36173,
"upload_time": "2024-04-23T09:42:37",
"upload_time_iso_8601": "2024-04-23T09:42:37.847743Z",
"url": "https://files.pythonhosted.org/packages/fa/09/ab39f2017685f3ff1e80e26e2c7027970ad5ca9e8f5c0e0adfd0e65346e2/ckanext_dc_serve-0.15.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "dba533047458ed384217d058c0452a5124feb5a9b964454697761fd48a306f8d",
"md5": "0503fc3e4c3bf35e3a40dd1143c499a4",
"sha256": "cf1faf41e2c68654973fccc748efc03e33eaf462631dfeff813ba797022a565e"
},
"downloads": -1,
"filename": "ckanext-dc_serve-0.15.4.tar.gz",
"has_sig": false,
"md5_digest": "0503fc3e4c3bf35e3a40dd1143c499a4",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 32671,
"upload_time": "2024-04-23T09:42:39",
"upload_time_iso_8601": "2024-04-23T09:42:39.710630Z",
"url": "https://files.pythonhosted.org/packages/db/a5/33047458ed384217d058c0452a5124feb5a9b964454697761fd48a306f8d/ckanext-dc_serve-0.15.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-23 09:42:39",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "DCOR-dev",
"github_project": "ckanext-dc_serve",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "ckanext-dc-serve"
}