Skip to main content

Lookspan Python SDK — emit spans from AI agents to the local-first observability dashboard.

Project description

lookspan

Python SDK for Lookspan — emit spans from your AI agents to the local-first observability dashboard.

Install

pip install lookspan

Quick start

from lookspan import LookspanClient, Span, SpanType, SpanStatus

client = LookspanClient(endpoint="http://127.0.0.1:3100/api/ingest")

trace_id = client.new_trace_id()
span_id = client.new_span_id()

client.send([
    Span(
        trace_id=trace_id,
        span_id=span_id,
        parent_span_id=None,
        type=SpanType.LLM_CALL,
        name="my-agent.completion",
        started_at="2026-05-08T12:00:00Z",
        ended_at="2026-05-08T12:00:01Z",
        status=SpanStatus.OK,
        framework="custom",
        model="claude-opus-4-7",
        provider="anthropic",
    )
])

client.flush()

For framework-specific adapters, see lookspan-langgraph and lookspan-crewai.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lookspan-0.1.1.tar.gz (32.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lookspan-0.1.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file lookspan-0.1.1.tar.gz.

File metadata

  • Download URL: lookspan-0.1.1.tar.gz
  • Upload date:
  • Size: 32.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for lookspan-0.1.1.tar.gz
Algorithm Hash digest
SHA256 eb390394f42bf40fbe7592817555b920225543309ddb2c1ae77eda9a71b16526
MD5 f0ed22f8b1475510d48a37b77fc59a1c
BLAKE2b-256 0121e4ea00d55571b341859a32bc5ed959a28a4ac27ad2cef72d14aec057673b

See more details on using hashes here.

File details

Details for the file lookspan-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: lookspan-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for lookspan-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7ede02256a2f49bda94df7897ab7d7ef79107780804c282bcfec07ab5d6213e7
MD5 8a5cd7beacfa03d989bb5e0ba98fd89c
BLAKE2b-256 b5779323a83bf55a1900b881422b2f440ab26acd5b7208069a67d32ee2cff423

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page