Skip to main content

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:

  1. validate_endpoint(url) — an async probe that checks whether an OTLP collector is reachable, with zero heavy dependencies (only aiohttp, already a workspace dependency).
  2. parrot-openlit-check — a CLI wrapper around the same probe.
  3. A bundled docker-compose.openlit.yml to 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.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 ai-parrot-openlit-bridge 0.2.0
File Size Uploaded
ai_parrot_openlit_bridge-0.2.0.tar.gz 5.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ai-parrot-openlit-bridge 0.2.0
File Interpreter ABI Platform
ai_parrot_openlit_bridge-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.7 kB

Release files / ai_parrot_openlit_bridge-0.2.0.tar.gz

Download URL ai_parrot_openlit_bridge-0.2.0.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1e9039ec3a4c1c9fe2a764952a53935fc617d5b00592b8055c8ef44488a947f2
BLAKE2b-256 checksum
How to use checksums
f603f72fbc6e8c3bd9c80237deae702cabbce74ad4fdef59729cb78d4193b7eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / ai_parrot_openlit_bridge-0.2.0-py3-none-any.whl

Download URL ai_parrot_openlit_bridge-0.2.0-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
749eb2dda5dc92ddd9b996af8b75f4f6f03a2aa26467e76cae65943b8ed31e5f
BLAKE2b-256 checksum
How to use checksums
f0bba97a3ded89d8cd5af1168d35f87ee21086448dc38eda1ec517340f47ce9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

0.3.0

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

This release

0.2.0 This release

2 release files

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