ckanext-dc_view
===============
|PyPI Version| |Build Status| |Coverage Status|
A CKAN resource view for DC data. The preview includes metadata from
the HDF5 attributes and a summary plot (scatter plot of brightness vs. area
and image, contour, mask, and fluorescence data for one event). This plugin
registers a background job for generating the overview plot after a DC
resource has been created.
This extensione implements:
- A default view for RT-DC (mimetype) resources
- A background job that generates the preview image
- A background job that uploads preview images to the S3 object store
- A route that makes the preview image available via
"/dataset/{id}/resource/{resource_id}/preview.jpg"
- CLI:
- add CKAN command `run-jobs-dc-view` that runs all background
jobs for all resources (if not already done)
Installation
------------
::
pip install ckanext-dc_view
Add this extension to the plugins and defaul_views in ckan.ini:
::
ckan.plugins = [...] dc_view
ckan.views.default_views = [...] dc_view
Testing
-------
Testing can be done via vagrant in a virtual machine 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_view.svg
:target: https://pypi.python.org/pypi/ckanext.dc_view
.. |Build Status| image:: https://img.shields.io/github/actions/workflow/status/DCOR-dev/ckanext-dc_view/check.yml
:target: https://github.com/DCOR-dev/ckanext-dc_view/actions?query=workflow%3AChecks
.. |Coverage Status| image:: https://img.shields.io/codecov/c/github/DCOR-dev/ckanext-dc_view
:target: https://codecov.io/gh/DCOR-dev/ckanext-dc_view
Raw data
{
"_id": null,
"home_page": "https://github.com/DCOR-dev/ckanext-dc_view",
"name": "ckanext-dc-view",
"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/55/0e/40e3b6e5cd905a9f2b44f2505833ff2ef46ad9b24d4783713db3047b6c1a/ckanext-dc_view-0.9.0.tar.gz",
"platform": null,
"description": "ckanext-dc_view\n===============\n\n|PyPI Version| |Build Status| |Coverage Status|\n\nA CKAN resource view for DC data. The preview includes metadata from\nthe HDF5 attributes and a summary plot (scatter plot of brightness vs. area\nand image, contour, mask, and fluorescence data for one event). This plugin\nregisters a background job for generating the overview plot after a DC\nresource has been created.\n\nThis extensione implements:\n\n- A default view for RT-DC (mimetype) resources\n- A background job that generates the preview image\n- A background job that uploads preview images to the S3 object store\n- A route that makes the preview image available via\n \"/dataset/{id}/resource/{resource_id}/preview.jpg\"\n\n\n- CLI:\n\n - add CKAN command `run-jobs-dc-view` that runs all background\n jobs for all resources (if not already done)\n\nInstallation\n------------\n\n::\n\n pip install ckanext-dc_view\n\n\nAdd this extension to the plugins and defaul_views in ckan.ini:\n\n::\n\n ckan.plugins = [...] dc_view\n ckan.views.default_views = [...] dc_view\n\n\nTesting\n-------\nTesting can be done via vagrant in a virtual machine 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_view.svg\n :target: https://pypi.python.org/pypi/ckanext.dc_view\n.. |Build Status| image:: https://img.shields.io/github/actions/workflow/status/DCOR-dev/ckanext-dc_view/check.yml\n :target: https://github.com/DCOR-dev/ckanext-dc_view/actions?query=workflow%3AChecks\n.. |Coverage Status| image:: https://img.shields.io/codecov/c/github/DCOR-dev/ckanext-dc_view\n :target: https://codecov.io/gh/DCOR-dev/ckanext-dc_view\n\n\n",
"bugtrack_url": null,
"license": "AGPLv3+",
"summary": "Preview DC data in DCOR",
"version": "0.9.0",
"project_urls": {
"Homepage": "https://github.com/DCOR-dev/ckanext-dc_view"
},
"split_keywords": [
"ckan",
" dcor",
" rt-dc"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d8665254803d260657873833a2fff99efe4c551783a5cf486b4f502c663259f2",
"md5": "99e9e8d2c634dec47242d01f586e3d19",
"sha256": "179ba66ca0d955a2582f2406284e335171c92b741d4ba495eeee0ea15f48d8db"
},
"downloads": -1,
"filename": "ckanext_dc_view-0.9.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "99e9e8d2c634dec47242d01f586e3d19",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 29832,
"upload_time": "2024-04-16T10:38:01",
"upload_time_iso_8601": "2024-04-16T10:38:01.563466Z",
"url": "https://files.pythonhosted.org/packages/d8/66/5254803d260657873833a2fff99efe4c551783a5cf486b4f502c663259f2/ckanext_dc_view-0.9.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "550e40e3b6e5cd905a9f2b44f2505833ff2ef46ad9b24d4783713db3047b6c1a",
"md5": "0d300d2dbde7a5c79611203f3dc6b6d3",
"sha256": "c017775350cc8114b2ed55d750a6112523df4ae2b893e4046b8653f9c3ed29e5"
},
"downloads": -1,
"filename": "ckanext-dc_view-0.9.0.tar.gz",
"has_sig": false,
"md5_digest": "0d300d2dbde7a5c79611203f3dc6b6d3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 27984,
"upload_time": "2024-04-16T10:38:03",
"upload_time_iso_8601": "2024-04-16T10:38:03.455459Z",
"url": "https://files.pythonhosted.org/packages/55/0e/40e3b6e5cd905a9f2b44f2505833ff2ef46ad9b24d4783713db3047b6c1a/ckanext-dc_view-0.9.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-16 10:38:03",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "DCOR-dev",
"github_project": "ckanext-dc_view",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "ckanext-dc-view"
}