Skip to main content

ica-instrumentation

One line to capture, govern, and seal every AI call your Python app makes. Content never leaves the process — only a hash travels. Standard library only.

from openai import OpenAI
import ica_instrumentation as ica

ica.init(org="org_acme", token=os.environ["ICA_INGEST_TOKEN"])
client = ica.instrument(OpenAI())

# used exactly as before — now captured + governed
r = client.chat.completions.create(model="gpt-4o", messages=messages)
  • Captured: every request (model, prompt hash, tokens) and response, sealed into the ICA ledger with a court-grade receipt.
  • Governed: when the operator has armed enforcement and policy denies a call, create() raises ICABlockedError before the model is reached. Shadow mode (the default) records without blocking.
  • Private: prompts/outputs are hashed, never sent.

Config via ica.init(...) or env: ICA_ORG, ICA_INGEST_TOKEN, ICA_INGEST_URL, ICA_AGENT_HANDLE, ICA_SESSION_ID. Instruments OpenAI (chat.completions, responses) and Anthropic (messages).

Metadata

Release files for ica-instrumentation 0.1.0

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

Source distribution (sdist)

Source distribution for ica-instrumentation 0.1.0
File Size Uploaded Provenance Actions
ica_instrumentation-0.1.0.tar.gz 3.9 kB Without provenance Details for ica_instrumentation-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ica-instrumentation 0.1.0
File Interpreter ABI Platform Actions
ica_instrumentation-0.1.0-py3-none-any.whl Python 3 none any Details for ica_instrumentation-0.1.0-py3-none-any.whl

Total release size: 8.2 kB

Release files / ica_instrumentation-0.1.0.tar.gz

Download URL ica_instrumentation-0.1.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9d52d72b346836d027d7b945f5570d8854e21c77f493c14a8821281ad307d83c
BLAKE2b-256 checksum
How to use checksums
aa35e02cc3a7b8a350124777eab544e74f4d4cce5ba384a0ae6642cf23a3b4c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / ica_instrumentation-0.1.0-py3-none-any.whl

Download URL ica_instrumentation-0.1.0-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d44d3150cc56350a6c065d8614194b3ab4a69868f1ee02d1cd34091147784f9d
BLAKE2b-256 checksum
How to use checksums
cb0e24f282e3c096edcf1c29c3eb6a95568ee03c0eeb28b720ab9600432ce3aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Security for ica-instrumentation 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files 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