Skip to main content

atlas-chai

Python bindings for CHAI (Conditions High-level Application Interface), the ATLAS library for reading and writing conditions data. One API covers several backends, each a plugin selected by the connection string's scheme:

Scheme Backend
crest: A CREST server, e.g. crest:https://crest.cern.ch/api-v6.0
crest_fs: CREST's on-disk format in a local directory
coolr: Legacy COOL data through the COOLR REST service (read-only)

Install

python3.12 -m venv ~/chai-env
~/chai-env/bin/pip install atlas-chai
Platform Status
Linux x86_64 (glibc 2.28+, e.g. EL8/EL9, Ubuntu 20.04+), CPython 3.12 and newer One cp312-abi3 wheel per release
macOS Not on PyPI yet; build a wheel locally
Free-threaded CPython (3.13t, 3.14t) Not supported

The import name is chai. Releases up to 2.6.0 were published only to the GitLab Package Registry, as chai-db; uninstall that first if you have it.

Example

Write one payload to a local crest_fs directory and read it back:

import chai

db = chai.Database("crest_fs:/tmp/chai-demo")
spec = chai.PayloadSpec(chai.FieldSpec([chai.Field("hv", chai.Type.Float)]),
                        chai.ChannelSpec([chai.Channel(0, "barrel")]))
tag = db.create_tag("DemoTag", "Example tag", spec)
payload = tag.build_container()
payload[0]["hv"] = 1500.0
tag.add_payload(payload, since=0)
print(tag.get_payload_at(42).payload.get(0, "hv"))   # 1500.0

Documentation

Metadata

Release files for atlas-chai 2.7.0

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

Built distribution (wheel)

Table of built distributions (wheels) for atlas-chai 2.7.0
File Interpreter ABI Platform Actions
atlas_chai-2.7.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 abi3 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for atlas_chai-2.7.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Release files / atlas_chai-2.7.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL atlas_chai-2.7.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 6.1 MB
Tags CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
8d95ed2022fbe1c9d9f9a6b3cf1d96ad89ede9e78aeafa5889419d71cdf44cf4
BLAKE2b-256 checksum
How to use checksums
a24b909f72aefe2107ffbc2eb07775be2047517b8c5cf735a9f4a19dc694000e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for atlas-chai 2.7.0

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.7.0 This release

1 release file No provenance

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