Skip to main content

Deterministic replay for AI agents

Project description

ghostline Python SDK

Not yet published. Coming soon.

pip install ghostline  # soon

Usage

import ghostline
from anthropic import Anthropic

client = ghostline.wrap(Anthropic())

# Record
with ghostline.record("run.ghostline"):
    response = client.messages.create(...)

# Replay (zero API calls)
with ghostline.replay("run.ghostline"):
    response = client.messages.create(...)  # served from file

Supported providers

  • Anthropic
  • OpenAI
  • LiteLLM (any provider via proxy)

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

ghostline-0.1.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

ghostline-0.1.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file ghostline-0.1.0.tar.gz.

File metadata

  • Download URL: ghostline-0.1.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for ghostline-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bd7f2d75aaa56f8bdd4d34d7383f0fb19f78834e9d43c38f261a32737cd18336
MD5 d97af25cc10d9e060dc12356e035a5b1
BLAKE2b-256 0c3eb99eaa3c48711c951416d6fca3ee3e3cd4b69cd2911c4e4448603eebafca

See more details on using hashes here.

File details

Details for the file ghostline-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ghostline-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for ghostline-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 845b84a8db21424c4b8d51a1f760a6868369b640a9941a7a5957f6437b51a377
MD5 dceae2d0e3c18e3922f2ca3f8da1e94b
BLAKE2b-256 ee668afa449a7a7f1683c0f52697663d4e6631f3a31a37f286e8c0929ea69463

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