Skip to main content

Tests

ckanext-charts

This extension, ckanext-charts, provides additional functionality for working with charts in CKAN. It allows users to create, manage, and visualize charts based on data stored in CKAN datasets.

The extension includes features such as chart creation, chart editing, chart embedding, and chart sharing. It also supports various chart types, including bar charts, line charts, pie charts, and more.

With ckanext-charts, users can easily generate interactive and visually appealing charts to enhance data analysis and presentation in CKAN.

See the documentation for more information.

Quick start

  • Install it with PyPi with pip install ckanext-charts[pyarrow]
  • Add charts_view to the list of plugins in your CKAN config (ckan.plugins = charts_view charts_builder_view)

Developer installation

To install ckanext-charts for development, activate your CKAN virtualenv and do:

git clone https://github.com/DataShades/ckanext-charts.git
cd ckanext-charts
pip install -e '.[dev]'

Tests

To run the tests, do:

pytest --ckan-ini=test.ini

Building the documentation

We are using mkdocs to build the documentation. To build and deploy the documentation, do:

CHARTS_FIELDS=1 mkdocs build && CHARTS_FIELDS=1 mkdocs gh-deploy

We need to set the CHARTS_FIELDS for our custom handler, that autogenerate documentation for chart types fields.

The CKAN instance will be initialized, because we will call validators and helpers in this code. Therefore, you'll need another environment variable to set the CKAN configuration file path:

export CKAN_INI=$PWD/config/ckan.ini

The config file must enable the ckanext-charts plugin:

ckan.plugins = ... charts_view charts_builder_view ...

If you're working on the documentation, you can run the following command to start a live-reloading server without gathering the chart types fields data. It will speed up the process significantly, as we won't need to wait for the CKAN initialization:

mkdocs serve -a 127.0.0.1:8001

License

AGPL

Metadata

Release files for ckanext-charts 1.13.5

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-charts 1.13.5
File Size Uploaded Provenance
ckanext_charts-1.13.5.tar.gz 2.2 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ckanext-charts 1.13.5
File Interpreter ABI Platform
ckanext_charts-1.13.5-py3-none-any.whl Python 3 none any Details

Total release size: 4.4 MB

Release files / ckanext_charts-1.13.5.tar.gz

Download URL ckanext_charts-1.13.5.tar.gz
Size 2.2 MB
Tags Source
SHA-256 checksum
How to use checksums
3c94d2eb7fa8b9d2aee15f64d6a1bf049ea5872ad1364f6472673ad208a94178
BLAKE2b-256 checksum
How to use checksums
ec3c8968f3ad1068d64d93731e3a7308ce1efbee710cc3360daebe5117e833b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / ckanext_charts-1.13.5-py3-none-any.whl

Download URL ckanext_charts-1.13.5-py3-none-any.whl
Size 2.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
a2aa8ba22113f7eba7429c550ae2bcab84cb4291d4139e9d1b2988530bcae34b
BLAKE2b-256 checksum
How to use checksums
cfdd5e8f5d609584f8e63fead9a200f451f101afac755a2d690b5e5002afdb26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Security for ckanext-charts 1.13.5

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.

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