Skip to main content

SledTrace Python SDK

SledTrace is a local-first observability and debugging SDK for RAG pipelines.

Current release: 0.7.0 — External Developer Readiness

Project and visual overview: github.com/Schromeo/SledTrace

Distribution status

Install the released SDK and CLI from production PyPI:

python -m pip install sledtrace==0.7.0

The immutable 0.7.0rc1 publication candidate remains available on TestPyPI for release-history purposes.

Install from source for development

cd sdk/python
python -m pip install -e .

Build a local wheel or sdist

cd sdk/python
python -m pip install --upgrade pip
python -m pip install build
python -m build

This produces wheel and source-distribution artifacts in dist/.

Install the built wheel

python -m pip install dist/*.whl

CLI

Editable and wheel installations provide:

sledtrace --help
sledtrace serve --help
sledtrace version

sledtrace version reports 0.7.0 for this release.

sledtrace serve must be run from inside a SledTrace source checkout. It locates the repository from the current working directory and delegates to scripts/start-sledtrace.py. The wheel does not bundle the Collector, Dashboard, Docker assets, or a standalone serving runtime; outside a checkout, serve exits with actionable guidance.

Basic usage

from sledtrace import trace

with trace("example") as t:
    t.retrieval(
        query="What is the refund policy?",
        chunks=[
            {
                "id": "chunk-1",
                "text": "Refunds are accepted within 30 days with proof of purchase.",
                "score": 0.92,
                "metadata": {"source": "refund_policy.md"},
            }
        ],
        top_k=1,
    )

    t.llm(
        model="demo-model",
        prompt="Question: What is the refund policy?",
        response="Refunds are accepted within 30 days with proof of purchase.",
        provider="local-demo",
    )

t.flush()

Collector URL configuration

The default collector URL is http://localhost:4319.

Use the SledTrace environment variable:

export SLEDTRACE_COLLECTOR_URL=http://localhost:4319

PowerShell:

$env:SLEDTRACE_COLLECTOR_URL="http://localhost:4319"

Legacy compatibility remains temporarily supported for migration:

export RAGLENS_COLLECTOR_URL=http://localhost:4319

The precedence is:

  1. SLEDTRACE_COLLECTOR_URL
  2. RAGLENS_COLLECTOR_URL
  3. http://localhost:4319

Legacy compatibility note

Legacy raglens imports remain temporarily supported during migration, but new code should use the SledTrace package path:

from sledtrace import trace

More docs

Repository examples such as examples.custom_pipeline_demo are local developer examples and not a separate public SDK surface.

Download files

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

Source Distribution

sledtrace-0.7.0.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

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

sledtrace-0.7.0-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file sledtrace-0.7.0.tar.gz.

File metadata

  • Download URL: sledtrace-0.7.0.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for sledtrace-0.7.0.tar.gz
Algorithm Hash digest
SHA256 a47b144a68a1c6d540a5e7beeb9b7d7bb73a077d2d7f319c27945eeced9d57dd
MD5 8c265577dec67907b639f341870f9cba
BLAKE2b-256 f9fb8094d660442f62e264d29540396c248fe5da2e820a755f30e4f503eb39dc

See more details on using hashes here.

Provenance

The following attestation bundles were made for sledtrace-0.7.0.tar.gz:

Publisher: publish-python.yml on Schromeo/SledTrace

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sledtrace-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: sledtrace-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for sledtrace-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d490385d787b115317063bc3ca4d6652302b0ec2b760cfde64be54092a4dc636
MD5 6a850fef73a5ab671bc374c5c9ede58d
BLAKE2b-256 9a712f4a599e527f2be69745b17c30d42721b0efeddf2b7ec05b7643d51074a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for sledtrace-0.7.0-py3-none-any.whl:

Publisher: publish-python.yml on Schromeo/SledTrace

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.7.0 This release

2 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