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.4.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.4-py3-none-any.whl (37.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cachai-0.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 664839b7ea8a654b967a707eb07c8786b0d985b35b6c08c8f9323cbb12b8b277
MD5 c68616f65206d403a99ca1db7e11f1e3
BLAKE2b-256 972347c988b1d1ed57ab1ab10e923fee76ff8094249411f0686a6da1628197cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for cachai-0.0.4.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.4-py3-none-any.whl.

File metadata

  • Download URL: cachai-0.0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 be01aa447e124d8ed597143f422ca844c05b15a443810f5fd477afa047c18190
MD5 65f01b53b3f80e15b6f7bd1c57014284
BLAKE2b-256 d0e79acc602758e79cfe64e0bc95249f020ee9ff3517a0179f24915ed081358a

See more details on using hashes here.

Provenance

The following attestation bundles were made for cachai-0.0.4-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