Skip to main content

c3-charm

PyPI version License Python

Python SDK for CHARM, C3 AI's foundation model for multivariate time series.

  • Embeddings: turn (T, C) windows into dense vectors for search, clustering, anomaly detection and features.
  • Zero-shot forecasting: quantile forecasts and backcasts with no training data.
  • Imputation: fill missing values, with quantiles.
  • Toolkit (charm_toolkit): anomaly-detection recipes, retrieval metrics, and small trainable heads for forecasting, reconstruction and classification.

The model is channel-aware (channel names are part of the input) and normalizes internally, so you send raw values. It runs server-side; this package is the client. To get an endpoint and key, see Getting access on the model card.

Install

pip install c3-charm                            # core SDK (Python >= 3.10), no torch

# Toolkit (anomaly detection, retrieval, trainable heads) needs PyTorch.
# Install the CPU wheel first, then the toolkit:
pip install torch --index-url https://download.pytorch.org/whl/cpu
pip install "c3-charm[toolkit]" nest-asyncio

See installation.md for details.

Quick look

from charm import CharmClient

client = CharmClient(base_url="https://your-charm-server:8080", api_key="...", timeout=300)

fc = client.prediction.create(
    descriptions=[["load_mw", "ambient_temp"]],  # (N, C) channel names
    ts_array=[history],                          # (N, T, C) raw values as nested lists
    target_len=24,                               # > 0 forecast, < 0 backcast
    return_tensors="np",
)
fc.median                     # (N, 24, C) point forecast
fc.denormalized_predictions   # (N, 24, C, Q) quantiles

emb = client.embeddings.create(descriptions=..., ts_array=..., return_tensors="np").embeds  # (N, D)

Using an AI coding agent?

There's a CHARM agent skill that teaches Claude Code, Cursor, Codex and others when and how to apply CHARM, routing them to these docs for the exact API. Install it from https://huggingface.co/c3aiia3c/CHARM.

Documentation

Full documentation ships with the package. Find it with python -c "import charm.docs as d; print(d.get_docs_path())" and start at index.md. It covers concepts and a decision guide, data format, client configuration, embeddings and retrieval, forecasting, anomaly detection, trained heads, and errors plus the raw HTTP API.

License

Apache License 2.0. See LICENSE.

Metadata

Release files for c3-charm 0.1.19

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

Source distribution (sdist)

Source distribution for c3-charm 0.1.19
File Size Uploaded Provenance Actions
c3_charm-0.1.19.tar.gz 10.4 MB With provenance Details for c3_charm-0.1.19.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for c3-charm 0.1.19
File Interpreter ABI Platform Actions
c3_charm-0.1.19-py3-none-any.whl Python 3 none any Details for c3_charm-0.1.19-py3-none-any.whl

Total release size: 20.8 MB

Release files / c3_charm-0.1.19.tar.gz

Download URL c3_charm-0.1.19.tar.gz
Size 10.4 MB
Tags Source
SHA-256 checksum
How to use checksums
04edf3b619d2d556ecb41e56264c6795c6c8749e20ea8ea10e84ec4c2c0efa97
BLAKE2b-256 checksum
How to use checksums
9014a33dddc46c9a8f8ab8a95d6ac54dc44ee8fd78837b7af92bf3a3f2d60696
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Release files / c3_charm-0.1.19-py3-none-any.whl

Download URL c3_charm-0.1.19-py3-none-any.whl
Size 10.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
5e67b6deef39b6dbf4bb2bb4a82a77cabf814b6d3c99b222585f893ec5c2b00c
BLAKE2b-256 checksum
How to use checksums
4ac7719adef2dd6673ac8fca689f0559c45751b537496c0637961e9c1e49102b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Security for c3-charm 0.1.19

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for c3_charm-0.1.19.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

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