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 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 is implemented via GitHub Actions. You may also set up a local docker container with CKAN and MinIO. Take a look at the GitHub Actions workflow for more information.
Metadata
Release files for ckanext-dc-view 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ckanext_dc_view-1.0.2.tar.gz | 655.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ckanext_dc_view-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.3 MB
Release files / ckanext_dc_view-1.0.2.tar.gz
| Download URL | ckanext_dc_view-1.0.2.tar.gz |
|---|---|
| Size | 655.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
19e49a25e9df8d9e689ad7d126c97397d0806490132a0695ba8ec8501370a722
|
|
BLAKE2b-256 checksum How to use checksums |
96be0cf6fc4877c61e0d749e690ab45dc6f74157f37e762b03625f1aa08f9068
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.24
|
Release files / ckanext_dc_view-1.0.2-py3-none-any.whl
| Download URL | ckanext_dc_view-1.0.2-py3-none-any.whl |
|---|---|
| Size | 654.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1e54505ee6a61855afe4b3a7b21c74bbfd7c20cf7d317babc0ce260482205cbc
|
|
BLAKE2b-256 checksum How to use checksums |
191d41403565b1ca6010d97e618ed9471e6fd21c8ad839a05d9acb1fe1fe7d6e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.24
|
Security for ckanext-dc-view 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.