Skip to main content

Travis (.org) GitHub All Releases GitHub Issues GitHub PR Licence Pypi py version Last Commit

CKAN dataset preview

Still in a develpment status

Adds automatically charts for all datasets in the dataset list. Uses messytables to discover field types.

How to set up?

General extension config values

Available config options

# Define if the extension should draw chart for
# - 'ALL'    All datasets with a CSV resource
# - 'EXTRA' Just datasets with the 'dataset_preview' extra dictionary defined
# - 'NO'     No datasets with show any preview
ckanext.datasetpreview.draw = 'ALL'  # default draw all
ckanext.datasetpreview.chart_height = 300  # pixels

Each dataset could add and extra value with nthe key dataset_preview:

extras["dataset_preview"] = {
    // field to use in the chart. Could be:
    // - A list of field names (valids in the CSV resource)
    // Default will be [0, 1] ( the first two columns in the CSV). You could use numbers instead of field names
    "fields": ["Field1", "Field2"],  
    "chart_type": "Bar", // Allows 'Pie', 'Bar', 'Column'
    // URL could be:
    // - A external url
    // - No use this value: will be "csv_resource" with pick the first CSV resource in the dataset
    // - Name of the resource in the datasets (must be a CSV one)
    "url": "csv_resource",
    "height": 450,  // pixels
    "chart_color": "#AA5521"
}

If you don't setup each dataset it will show the first CSV resource in the dataset (using the first two columns)

dataset-list dataset-list

Metadata

Release files for ckanext-datasetpreview 0.2.38

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ckanext-datasetpreview 0.2.38
File Size Uploaded Provenance
ckanext-datasetpreview-0.2.38.tar.gz 9.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ckanext-datasetpreview 0.2.38
File Interpreter ABI Platform
ckanext_datasetpreview-0.2.38-py2-none-any.whl Python 2 none any Details

Total release size: 20.6 kB

Release files / ckanext-datasetpreview-0.2.38.tar.gz

Download URL ckanext-datasetpreview-0.2.38.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
87b9184988060b935ec8af004ae0a8cd7b9c32f0ee36793a14c079a8da881746
BLAKE2b-256 checksum
How to use checksums
faafd40501aba21e4520ce271e948c11f9f5313c7920d14b0ebdbf85710dc26c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.10.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/2.7.15

Release files / ckanext_datasetpreview-0.2.38-py2-none-any.whl

Download URL ckanext_datasetpreview-0.2.38-py2-none-any.whl
Size 11.1 kB
Tags Python 2
SHA-256 checksum
How to use checksums
376eb809f075cc1681b4333e58a31bf9c5f1032b1103783689e16c1b8b6649c6
BLAKE2b-256 checksum
How to use checksums
e993e662545faa4976a981cb1d915192dbe19c34e1b1e4eb0bfa74bf08760f4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.10.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/2.7.15

Security for ckanext-datasetpreview 0.2.38

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page