claroshq — ClarosHQ Python SDK
claroshq is the official Python SDK for the ClarosHQ AI observability and
governance platform. The core client is provider-neutral and
model-neutral; provider-specific instrumentations (OpenAI, Anthropic Claude,
LangChain) are shipped as optional extras and normalize events into a
generic ClarosHQ trace and span schema.
Installation
Install the pinned 0.1.0 release from production PyPI:
python -m pip install claroshq==0.1.0
ClarosHQ Sprint 2 (S2-019) gates the public release on a clean-machine install proof against the same hosted index that external customers use. Until that proof has been recorded against production PyPI, the command above is the intended install path — the production upload of
0.1.0is performed by thePublish SDKworkflow on asdk/v0.1.0tag push and is gated by Omar's release decision. See docs/sprint-2/s2-019-builder-package.md for the current status and the release-target decision.
Install from TestPyPI (staging only)
TestPyPI is the staging index — it is used for the final dry-run of
upload, metadata rendering, and fresh-environment install before the
package is promoted to production PyPI. TestPyPI does not mirror
production PyPI, so the --extra-index-url https://pypi.org/simple/ flag
is required to resolve claroshq's runtime dependency httpx>=0.27 and
any transitive dependencies:
python -m pip install claroshq==0.1.0 \
--index-url https://test.pypi.org/simple/ \
--extra-index-url https://pypi.org/simple/
A successful install from TestPyPI is a useful staging milestone, but it does not satisfy the ClarosHQ Sprint 1 commercial-completion gate — production PyPI is the release target for that.
Optional provider adapters
Optional provider adapters can be installed via extras (use the same
==0.1.0 pin to keep your install reproducible until you intentionally
move to a newer release):
python -m pip install "claroshq[anthropic]==0.1.0"
python -m pip install "claroshq[langchain]==0.1.0"
python -m pip install "claroshq[all]==0.1.0" # anthropic + langchain + openai
Note: there is no dedicated
openaiextra —openaiis bundled withclaroshq[all]. If you only need the OpenAI adapter, install the OpenAI client directly alongsideclaroshq(e.g.pip install claroshq==0.1.0 openai).
Editable install (contributors)
If you are working inside the ClarosHQ platform monorepo, install the SDK in editable mode with the development extras:
python -m venv sdk/.venv
sdk/.venv/Scripts/python -m pip install -U pip # Windows
# source sdk/.venv/bin/activate # macOS / Linux
sdk/.venv/Scripts/python -m pip install -e "./sdk[dev]"
The dev extra installs pytest, ruff, black, mypy, pre-commit,
build, and twine — everything needed to develop, lint, test, build, and
publish the package.
Verify the install
After installing, confirm the SDK loaded correctly and reports the expected version:
python -c "import claroshq; print(claroshq.__version__)"
This should print:
0.1.0
Quickstart
import claroshq
claroshq.init(
api_key="YOUR_CLAROSHQ_INGEST_KEY",
endpoint="https://ingest.claroshq.ai",
)
# Auto-instrument every supported provider that is importable in this process:
claroshq.instrument_all()
# ... your existing OpenAI / Anthropic / LangChain code runs unchanged ...
claroshq.flush()
See the main repository README for the full local development and backend setup.
License
Apache-2.0. See the project metadata in pyproject.toml.
Metadata
Release files for claroshq 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| claroshq-0.1.0.tar.gz | 15.7 kB | Without provenance | Details for claroshq-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| claroshq-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for claroshq-0.1.0-py3-none-any.whl |
Total release size: 36.0 kB
Release files / claroshq-0.1.0.tar.gz
| Download URL | claroshq-0.1.0.tar.gz |
|---|---|
| Size | 15.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
99cb41eae7795ee87956c69f4ee7d08607e883f0392450fc3075608ff6864f82
|
|
BLAKE2b-256 checksum How to use checksums |
86cfa722b9f728b6021dfc0f9911ebcbd8051c51d8064811b85f085e0f625adb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / claroshq-0.1.0-py3-none-any.whl
| Download URL | claroshq-0.1.0-py3-none-any.whl |
|---|---|
| Size | 20.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6b577e04452f9a1250c3ae704e83fd81542931a467a01206ba63b555a87dce93
|
|
BLAKE2b-256 checksum How to use checksums |
fba9449b7122765c61ee0152e79d9ddcb7b5cd9c40a5efc4b6a8e12700bf38fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Security for claroshq 0.1.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.