Skip to main content

Customizable visualization toolkit for science

Project description



cachai (Custom Axes and CHarts Advanced Interface) is a fully customizable Python visualization toolkit designed to deliver polished, publication-ready plots built on top of Matplotlib. Currently, the package includes the ChordDiagram module as its primary feature. For details on the toolkit’s capabilities, motivations and future projections, refer to this paper.

The code documentation is currently consolidated in docs/documentation.md. To contribute or report bugs, please visit the issues page.

:cookie: Fun fact:

"Cachai" (/kɑːˈtʃaɪ/) is a slang word from Chilean informal speech, similar to saying "ya know?" or "get it?" in English. Don't know how to pronounce it? Think of "kah-CHAI" (like "cut" + "chai" tea, with stress on "CHAI").

:gear: Installation guide

Installing cachai

All official releases of cachai are published on PyPI. To install, simply run:

pip install cachai

If you want to verify that cachai works correctly on your system, you can install it with optional testing dependencies by running:

pip install cachai[testing]

Requirements

cachai has been tested on Python >= 3.10.

Core dependencies: This Python packages are mandatory:

Optional dependencies:
This Python packages are optional:

  • pytest >= 7.1.0 (Only required for testing)

To verify that cachai installed correctly and is functioning properly on your system, you can run:

import cachai

cachai.run_tests()

Alternatively, execute this in your terminal:

cachai-test -v

:hatching_chick: Getting started

You’ll typically need the following imports to begin using cachai:

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import cachai.chplot as chp

To quickly test cachai, you can load one of the included datasets. Currently, the available datasets are tailored for Chord Diagram use cases. Here’s a minimal example using the large_correlations dataset to generate a Chord Diagram:

import cachai.data as chd
import cachai.chplot as chp

data = chd.load_dataset('large_correlations')
chp.chord(data)

[!NOTE] Downloading datasets requires an internet connection. If the files are already cached (i.e., you’ve accessed them before), cachai will use the local copies, allowing offline work.

For more advanced examples, explore the Jupyter notebooks in the docs/notebooks.

:black_nib: Citing cachai

If cachai contributed to a project that resulted in a publication, please cite this paper.

Example citation format:

@article{Beltran2025,
    author ={{Beltrán}, D. and {Dantas}, M. L. L.} ,
    title = "{CACHAI's first module: a fully customizable chord diagram for astronomy and beyond}",
    journal = {Research Notes of the American Astronomical Society},
    year = 2025,
    month = aug,
    doi = {}
}

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

cachai-0.0.2.tar.gz (33.7 kB view details)

Uploaded Source

Built Distribution

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

cachai-0.0.2-py3-none-any.whl (37.6 kB view details)

Uploaded Python 3

File details

Details for the file cachai-0.0.2.tar.gz.

File metadata

  • Download URL: cachai-0.0.2.tar.gz
  • Upload date:
  • Size: 33.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for cachai-0.0.2.tar.gz
Algorithm Hash digest
SHA256 e4f76bbdd8abae1d08de48fba8c6fdd598349ee1ce2ce01de647fe640c4e3b4a
MD5 b26374a584b558718e2da409bf7032bf
BLAKE2b-256 2695fff0058657b304cee27cca8b1cc0070646ea319449b7d3397464ba95348c

See more details on using hashes here.

Provenance

The following attestation bundles were made for cachai-0.0.2.tar.gz:

Publisher: release.yaml on DD-Beltran-F/cachai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cachai-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: cachai-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 37.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for cachai-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fc17d265ce19888245843363bb18529dfca7c667008a153e4462430d74473068
MD5 2b08f3c9805e3c522636b179dc7402bb
BLAKE2b-256 219290612e9b0cae376743b50454b4f051c633b0dafdc2633fcbfb6ce1a00f74

See more details on using hashes here.

Provenance

The following attestation bundles were made for cachai-0.0.2-py3-none-any.whl:

Publisher: release.yaml on DD-Beltran-F/cachai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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