Skip to main content

No project description provided

Project description

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

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_charts-1.10.4.tar.gz (2.2 MB view details)

Uploaded Source

Built Distribution

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

ckanext_charts-1.10.4-py3-none-any.whl (2.2 MB view details)

Uploaded Python 3

File details

Details for the file ckanext_charts-1.10.4.tar.gz.

File metadata

  • Download URL: ckanext_charts-1.10.4.tar.gz
  • Upload date:
  • Size: 2.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for ckanext_charts-1.10.4.tar.gz
Algorithm Hash digest
SHA256 5be01ad9c952175e851f69ec85747a8b70b90cd9befc4da2971594336adaa4a6
MD5 017767d66c58e0fa8570c40ed4b75201
BLAKE2b-256 f1a0fe1eced26c67b24f0621bef4d0d9c5eaaaacfc120e8964ffa1d00b395810

See more details on using hashes here.

File details

Details for the file ckanext_charts-1.10.4-py3-none-any.whl.

File metadata

File hashes

Hashes for ckanext_charts-1.10.4-py3-none-any.whl
Algorithm Hash digest
SHA256 316364f4151c9536b0dd50de5e17991493912595c66c09900c171b3423b0e93e
MD5 9744d81f418b6b254102553d5d01e1aa
BLAKE2b-256 2220afd3c19f05ddfe07ba5bf545f48f19a05d7d199b928a441ba0f10f853e72

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