Skip to main content

Preview DC data on DCOR

Project description

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 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ckanext_dc_view-1.0.2.tar.gz (655.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ckanext_dc_view-1.0.2-py3-none-any.whl (654.5 kB view details)

Uploaded Python 3

File details

Details for the file ckanext_dc_view-1.0.2.tar.gz.

File metadata

  • Download URL: ckanext_dc_view-1.0.2.tar.gz
  • Upload date:
  • Size: 655.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.24

File hashes

Hashes for ckanext_dc_view-1.0.2.tar.gz
Algorithm Hash digest
SHA256 19e49a25e9df8d9e689ad7d126c97397d0806490132a0695ba8ec8501370a722
MD5 ce8c6446c5a035f0240393a79b49be08
BLAKE2b-256 96be0cf6fc4877c61e0d749e690ab45dc6f74157f37e762b03625f1aa08f9068

See more details on using hashes here.

File details

Details for the file ckanext_dc_view-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for ckanext_dc_view-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1e54505ee6a61855afe4b3a7b21c74bbfd7c20cf7d317babc0ce260482205cbc
MD5 ea86cf7ed6811db287285caa36565acf
BLAKE2b-256 191d41403565b1ca6010d97e618ed9471e6fd21c8ad839a05d9acb1fe1fe7d6e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page