Skip to main content

loopview-sdk

Connect any Python agent to loopview in one call.

import loopview_sdk
loopview_sdk.connect()

connect() does what every agent needs:

  • sends traces to loopview (LOOPVIEW_URL, else OTEL_EXPORTER_OTLP_TRACES_ENDPOINT, else http://127.0.0.1:4318), every 100 ms;
  • switches on the OpenTelemetry instrumentation of every installed agent framework or model SDK. Instrumentor packages register themselves, so any OpenInference package, OpenTelemetry's GenAI instrumentations and OpenLLMetry are found; when two cover the same library, OpenInference's is used. Pydantic AI is switched on directly;
  • turns on message content capture where an instrumentation leaves it off;
  • reports span starts, so steps light up the moment they begin;
  • flushes at exit, so short scripts don't lose their last spans.

Options: connect(service_name=..., url=..., instrument=["openai"] or False, capture_content=False, live=False, provider=my_provider, quiet=True).

A loop you wrote yourself

Model SDK instrumentation records model calls only. Wrap your loop so it is one run, drawn as an agent:

with loopview_sdk.agent("weather_assistant"):
    ...  # your loop

Only the live start reports

LiveStartProcessor is the start reporter connect() adds, usable on its own next to your own exporter:

from loopview_sdk import LiveStartProcessor
provider.add_span_processor(LiveStartProcessor())

Metadata

Release files for loopview-sdk 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 loopview-sdk 0.2.0
File Size Uploaded
loopview_sdk-0.2.0.tar.gz 7.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for loopview-sdk 0.2.0
File Interpreter ABI Platform
loopview_sdk-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.0 kB

Release files / loopview_sdk-0.2.0.tar.gz

Download URL loopview_sdk-0.2.0.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0494b46755a7d696f3acbc4931351ebd8b44b4ea39656f12a3f4dbc903c22a89
BLAKE2b-256 checksum
How to use checksums
4c12283448faa77600a1f03c4c74b9952f5ca362c57bd095b1c8a96c26a1f105
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

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

Download URL loopview_sdk-0.2.0-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f7196e1aa17892bb179681b8ed0b46d609df73bd3589bad5652147a04f0a92ca
BLAKE2b-256 checksum
How to use checksums
4f5cf5e75738370884b695401cf3a6b248cd84e6cfae29c8ce8da112894a7b73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

Release history Release notifications | RSS feed

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