Skip to main content

seshi

The typed Python client for a seshi server: store, read, search and tail coding-agent sessions. The Python counterpart of @dosu/seshi-client, released at the same version as the server.

pip install seshi        # or: uv add seshi

Python 3.10+, on httpx and pydantic v2, with a sync and an async client.

import os
from seshi import OffsetMismatch, SeshiClient, Upload

with SeshiClient(
    "https://seshi.acme.internal",
    os.environ["ACME_SESHI_TOKEN"],  # a device, service, admin or static token, or the org key
    user="alice@acme.com",  # with the org key only: the username to write as
) as db:
    answer = db.ingest(Upload(format="claude-code", session_id="8f1c…", transcript=log))
    # Stored(status='stored', content_hash='…', records_total=41, bytes_total=48213, …)

    # As the log grows, send only what it gained, from where the last answer ended.
    db.ingest(
        Upload(format="claude-code", session_id="8f1c…", transcript=tail, offset=answer.bytes_total)
    )

    session = db.get_session("claude-code", "8f1c…")
    trace = db.get_trace("claude-code", "8f1c…", render="otlp")
    for entry in db.iter_changes(after=cursor):
        ...
    found = db.search("flaky checkout test", repo="widget", sort="recent")

AsyncSeshiClient has the same calls as coroutines:

async with AsyncSeshiClient(server, token) as db:
    async for entry in db.iter_all_changes(since="2026-11-01T00:00:00.000Z"):
        ...

The calls, options and errors are documented in docs/client.md; the HTTP contract is spec/openapi.yaml.

Metadata

Release files for seshi 0.21.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 seshi 0.21.0
File Size Uploaded Provenance Actions
seshi-0.21.0.tar.gz 24.1 kB Without provenance Details for seshi-0.21.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for seshi 0.21.0
File Interpreter ABI Platform Actions
seshi-0.21.0-py3-none-any.whl Python 3 none any Details for seshi-0.21.0-py3-none-any.whl

Total release size: 50.7 kB

Release files / seshi-0.21.0.tar.gz

Download URL seshi-0.21.0.tar.gz
Size 24.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d99f3b4baf08598caab5429f8e9b55e1ac3f0a42f33808054db2b1ad1f476848
BLAKE2b-256 checksum
How to use checksums
e2a707d9d70cfa6bf78fa02ebf77fe4163c8fff750e60bc248ebaca8a850c6c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / seshi-0.21.0-py3-none-any.whl

Download URL seshi-0.21.0-py3-none-any.whl
Size 26.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
283c02c47a31128b9cbe3a0cce5d9b85cc514fa7264d488243ec9d9e1f9de8da
BLAKE2b-256 checksum
How to use checksums
0771b6ba1a77bd872f742e53d73fcc062f9265c0b71c2c1a8feb7aa7dd6a10ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for seshi 0.21.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.21.0 This release

2 release files No provenance

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