ai-parrot-openlit-bridge
Minimal OTLP endpoint validation helper for AI-Parrot's OpenLIT integration (FEAT-462 — Unified Telemetry Bus).
AI-Parrot no longer depends on the openlit Python SDK (a monkey-patching
LLM SDK instrumentor whose pinned openai version range conflicted with
ai-parrot's own openai dependency). OpenLIT is now a pure deployment-time
OTLP endpoint — configure ObservabilityConfig.otlp_targets (multi-endpoint
OTLP export) or OpenLitUsageRecorder (usage-only spans) in ai-parrot
itself. This package provides two small, optional helpers on top of that:
validate_endpoint(url)— an async probe that checks whether an OTLP collector is reachable, with zero heavy dependencies (onlyaiohttp, already a workspace dependency).parrot-openlit-check— a CLI wrapper around the same probe.- A bundled
docker-compose.openlit.ymlto run an OpenLIT collector + dashboard locally.
Installation
pip install ai-parrot-openlit-bridge
# or, via the ai-parrot extra:
pip install "ai-parrot[observability-openlit]"
Usage
Python
from ai_parrot_openlit_bridge import validate_endpoint
status = await validate_endpoint("http://localhost:4318")
if status.reachable:
print(f"OTLP collector reachable (status={status.status_code})")
else:
print(f"Unreachable: {status.error}")
CLI
parrot-openlit-check http://localhost:4318
# ✅ Endpoint reachable: http://localhost:4318
# Status: 200
Exit code is 0 when reachable, 1 otherwise — suitable for health-check
scripts / CI smoke tests.
Local OpenLIT collector
docker compose -f docker-compose.openlit.yml up -d
parrot-openlit-check http://localhost:4318
Then point ai-parrot at it, e.g.:
export OBSERVABILITY_ENABLED=true
export OBSERVABILITY_BACKEND=otel
export OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318
Metadata
Release files for ai-parrot-openlit-bridge 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ai_parrot_openlit_bridge-0.2.1.tar.gz | 5.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ai_parrot_openlit_bridge-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.8 kB
Release files / ai_parrot_openlit_bridge-0.2.1.tar.gz
| Download URL | ai_parrot_openlit_bridge-0.2.1.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
538702d26d18eac58731b1b3d1d385674403829a4aac6d542aefe30f9dded3bc
|
|
BLAKE2b-256 checksum How to use checksums |
853a858533133a90f5db447ff320a94447f3fbfb562d93fec2d7a0052659b74b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.3
|
Release files / ai_parrot_openlit_bridge-0.2.1-py3-none-any.whl
| Download URL | ai_parrot_openlit_bridge-0.2.1-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
29edbcf258436351e893e74997e4719fe3ba4adf5b8a7a6fcd06213b233090cb
|
|
BLAKE2b-256 checksum How to use checksums |
d006f5c437f376df7206d685eacb12c8c0717ee8b014edfc4e96af49cf66cdfd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.3
|