Skip to main content

Real-time third-party API reliability benchmarks from production traffic

Project description

reliably

Real-time third-party API reliability benchmarks from production traffic — not status pages.

Install

pip install reliably

Quick Start

from reliably import reliably

# Wrap any API client — zero config, no signup required
stripe = reliably.wrap(stripe.StripeClient(os.environ["STRIPE_KEY"]))
openai_client = reliably.wrap(OpenAI(api_key=os.environ["OPENAI_KEY"]))

# Use them exactly as before
charge = stripe.charges.create(amount=2000, currency="usd")
completion = openai_client.chat.completions.create(
    model="gpt-4o",
    messages=[{"role": "user", "content": "Hello"}]
)

With Project ID

from reliably import Reliably

r = Reliably(project_id="proj_xxx")
stripe = r.wrap(stripe_client)

What Gets Tracked

  • Provider name (e.g., "stripe", "openai")
  • Endpoint (e.g., "charges.create")
  • Status code
  • Latency (ms)
  • Error classification

Never tracked: request/response bodies, API keys, URLs, headers, or any PII.

Configuration

from reliably import Reliably

r = Reliably(
    project_id="proj_xxx",       # Optional
    endpoint="https://...",      # Custom ingest (self-hosted)
    flush_interval=30.0,         # Seconds between flushes
    max_batch_size=100,          # Max events before flush
    enabled=True,                # Disable in tests
    debug=False,                 # Print events to console
)

Design Principles

  • Zero dependencies (stdlib only)
  • Never crashes your app
  • Async telemetry (background thread)
  • Fire and forget — if ingest is down, your app doesn't notice

License

MIT

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

reliably_sdk-0.1.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

reliably_sdk-0.1.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for reliably_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fa4a96b8a47a9aef879b403455f89e9dc2454264079435557128205e88fb03b9
MD5 b6a5ede96265135f61b0204fc27c9886
BLAKE2b-256 cc6c6fc72d31c01c69c10824ceda69bcec3e47cde401b242ce6f305b51b5af5d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for reliably_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b9d5ea355a3bbea7197b3c3498055570681aa599a28be0296eb267ffcb622e92
MD5 75a33d77e2e63c934087fc82eb078fa6
BLAKE2b-256 ff1c54612fe20eae131966c631a586ed8ad357883ba30580c7dd4c7af98befdd

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