Metadata-Version: 2.4
Name: cygnos
Version: 0.1.0
Summary: Cygnos Path B SDK — in-process OpenTelemetry capture for AI API usage; content never leaves the process.
Author-email: Cygnos AI Private Limited <hello@cygnos.ai>
License-Expression: LicenseRef-Proprietary
Project-URL: Homepage, https://cygnos.ai
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: Topic :: System :: Monitoring
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: cygnos-shared>=0.1.0
Requires-Dist: opentelemetry-sdk==1.43.0
Requires-Dist: opentelemetry-exporter-otlp-proto-http==1.43.0
Requires-Dist: opentelemetry-instrumentation-anthropic==0.62.1
Requires-Dist: opentelemetry-instrumentation-openai==0.62.1
Provides-Extra: anthropic
Requires-Dist: anthropic==0.116.0; extra == "anthropic"
Provides-Extra: openai
Requires-Dist: openai<2,>=1.0; extra == "openai"
Provides-Extra: dev
Requires-Dist: pytest>=8; extra == "dev"
Requires-Dist: httpx>=0.27; extra == "dev"
Dynamic: license-file

# cygnos

In-process OpenTelemetry capture for AI API usage. Content never leaves your process.

`cygnos` is the SDK capture path for [Cygnos](https://cygnos.ai) — for applications
running where you cannot put a separate process alongside them: managed platforms,
serverless, containers you do not control.

**If you can run a process next to your AI tooling, you almost certainly want
[`cygnos-capture-proxy`](https://pypi.org/project/cygnos-capture-proxy/) instead.**
It is the primary capture path, it needs no code change, and it is the more mature
of the two.

## Install

```
pip install cygnos
```

Requires Python 3.10 or later. Installs OpenTelemetry and standard library only —
no provider SDKs are pulled in, because your application already has its own.

## What is transmitted

Content is filtered at the export boundary by a deny-by-default allowlist: only
explicitly named attributes are transmitted and anything unrecognised is dropped.
Prompt and completion attributes are not on that list. The receiver independently
rejects any batch carrying a content key.

Your provider API credentials never reach Cygnos.

## Status

Early. This release is functional but less finished than the proxy path in two
ways you should know about before you rely on it:

- It performs **no startup binding check**. If your Cygnos API key is wrong, it
  will not tell you clearly at startup the way the proxy does. Confirm your first
  event reaches the dashboard before assuming an integration is working.
- Export failures are logged **per span and unthrottled**, so a sustained backend
  problem produces one log line per model call.

Both are being addressed. Until they are, treat the proxy as the recommended path
and this as the option for environments where the proxy cannot run.

## Licence

Proprietary. See `LICENSE`. Use requires a current written agreement with
Cygnos AI Private Limited.

Contact: hello@cygnos.ai
