Skip to main content

Apirelio Python Core

Dependency-free, fail-safe asynchronous delivery core shared by official Apirelio Python SDKs. It creates the same customer-aware event contract as the PHP and TypeScript SDKs without capturing bodies, credentials, cookies, query strings, email addresses or IP addresses.

pip install apirelio

Framework applications should normally install their adapter. Custom integrations can enqueue completed requests directly:

from apirelio import ApirelioClient

client = ApirelioClient(
    api_key="apr_project_key",
    service="billing-api",
    environment="production",
    metadata_keys=("region",),
)

client.capture({
    "method": "GET",
    "route": "/api/invoices/{invoice_id}",
    "status": 200,
    "duration_ms": 24,
    "sdk": "custom-python",
    "sdk_version": "1.0.0",
    "customer": {"id": "customer_42", "plan": "growth"},
})

capture() only builds and enqueues an event. A daemon worker sends bounded batches in the background. Network and callback failures never alter the observed API response. Call client.shutdown() during graceful shutdown to flush pending events.

Python 3.9 and newer are supported. The core has no runtime dependencies.

Download files

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

Source Distribution

apirelio-0.2.0.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

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

apirelio-0.2.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file apirelio-0.2.0.tar.gz.

File metadata

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

File hashes

Hashes for apirelio-0.2.0.tar.gz
Algorithm Hash digest
SHA256 33e52a6a4885d2e87316f400d615e36cca671324bc82d32d1b53ed8e6a58b90b
MD5 2bad25623c2de2ebaec4d3f3e4162452
BLAKE2b-256 88e99adf2339fb5f0e28916f128714edfd1e56ddc3f5fc7bc19269763910c754

See more details on using hashes here.

Provenance

The following attestation bundles were made for apirelio-0.2.0.tar.gz:

Publisher: release-packages.yml on pryznar/apirelio-app

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

File details

Details for the file apirelio-0.2.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for apirelio-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2fd8aa2614a175bd5a406e1413b4bcd96f64382157ed5012e1feb3a6df2f50d0
MD5 c84fd5badae136d3400751b80275b375
BLAKE2b-256 b522e7047705a2e699fdd2f0b00e3f8710e6b7b9a3b0a6add38057c7cbd892eb

See more details on using hashes here.

Provenance

The following attestation bundles were made for apirelio-0.2.0-py3-none-any.whl:

Publisher: release-packages.yml on pryznar/apirelio-app

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

Supported by

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