Apirelio Flask SDK
Documentation · PyPI · Apirelio
Connect Flask errors, latency and releases to affected customers without capturing request or response payloads.
Native Flask request-lifecycle instrumentation for privacy-safe, customer-aware API analytics. It records the resolved URL rule and only enqueues after Flask has produced the response.
pip install apirelio-flask
import os
from flask import Flask, g
from apirelio_flask import install_apirelio
app = Flask(__name__)
install_apirelio(
app,
api_key=os.environ.get("APIRELIO_API_KEY", ""),
endpoint=os.environ.get("APIRELIO_ENDPOINT", "https://apirelio.com"),
service="billing-api",
environment="production",
include_routes=("/api/**",),
exclude_routes=("/api/health", "/api/internal/**"),
resolve_customer=lambda request: {
"id": str(g.account.id),
"name": g.account.name,
"plan": g.account.plan,
} if getattr(g, "account", None) else None,
)
Authentication must run before Apirelio's after_request resolver executes. Use get_request_context() inside a view to attach allow-listed scalar metadata or a stable error code.
The extension stores itself at app.extensions["apirelio"]. Bodies, query strings, cookies, authorization values, email addresses and IP addresses are never captured. Python 3.9+, Flask 2.3 and Flask 3.x are supported.
Metadata
Release files for apirelio-flask 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| apirelio_flask-0.2.1.tar.gz | 6.9 kB | With provenance | Details for apirelio_flask-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| apirelio_flask-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for apirelio_flask-0.2.1-py3-none-any.whl |
Total release size: 13.2 kB
Release files / apirelio_flask-0.2.1.tar.gz
| Download URL | apirelio_flask-0.2.1.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e6a868169649a1a6d89a24d8437a16c6a464a102b169e50287e378192a9e5445
|
|
BLAKE2b-256 checksum How to use checksums |
0b682826c4819b58fa1a409d984d8a0afde1f58f8250400fa2e7d8547dbbefd8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 20, 2026.
Transparency logRelease files / apirelio_flask-0.2.1-py3-none-any.whl
| Download URL | apirelio_flask-0.2.1-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8d85d48665c222ae153dca38f172c313ff15a31e3376a23c4fcf75565badaaa3
|
|
BLAKE2b-256 checksum How to use checksums |
7161ef8a69cf6d869235b69c1bb6ab191d607c44f167494dd94199a91a93bd22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 20, 2026.
Transparency logSecurity for apirelio-flask 0.2.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for apirelio_flask-0.2.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 20, 2026.
Transparency logA 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.