skelion
Official Drop-in Fail-Open Resilience & Telemetry Middleware for FastAPI, Starlette, and ASGI
Intercepts unhandled edge crashes fail-open, scrubs PII, and streams sanitized telemetry to Skelion SaaS for autonomous AST patch generation and replay verification.
Installation
pip install skelion
Quickstart
Add 2 lines to your FastAPI / ASGI application:
from fastapi import FastAPI
from skelion import SkelionMiddleware
app = FastAPI()
# Mount Skelion Resilience Middleware
app.add_middleware(
SkelionMiddleware,
api_key="skl_live_...", # Or pass via SKELION_API_KEY env var
fail_open=True # Returns buffered 200 OK so users never see 500 downtime
)
@app.get("/api/checkout")
def checkout():
# If an unexpected crash occurs:
raise RuntimeError("Payment gateway network partition")
Features
- Guaranteed Fail-Open: Never crashes or blocks user traffic. Buffers failed requests with synthetic fallbacks.
- Zero-PII Scrubbing: Authorization headers, cookies, passwords, and credit card patterns are masked client-side before dispatch.
- Deterministic Error Fingerprinting: Crash groups are deduplicated automatically in the Skelion dashboard.
- Autonomous Patch Synthesis: Integrates with Skelion GitHub bot to open 0-regression pull requests for verified fixes.
Configuration Options
| Option | Type | Default | Description |
|---|---|---|---|
api_key |
str |
os.getenv("SKELION_API_KEY") |
Scoped API key (skl_live_...) |
endpoint |
str |
http://127.0.0.1:8003 |
Skelion SaaS Ingress URL |
fail_open |
bool |
True |
Return buffered 200 instead of unhandled 500 |
debug |
bool |
False |
Enable console telemetry logging |
License
Apache-2.0
Metadata
Release files for skelion 1.0.0
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 |
|---|---|---|---|---|
| skelion-1.0.0.tar.gz | 3.7 kB | Without provenance | Details for skelion-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| skelion-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for skelion-1.0.0-py3-none-any.whl |
Total release size: 7.4 kB
Release files / skelion-1.0.0.tar.gz
| Download URL | skelion-1.0.0.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5e5076417bc11e77343d70c626b9ddda4bd7bab44f9e279e7dcd3a66562a21ca
|
|
BLAKE2b-256 checksum How to use checksums |
b294f8f0400713780b1822ca03950bf615795b51bb7ce09490e859e54ec30e52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / skelion-1.0.0-py3-none-any.whl
| Download URL | skelion-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cfd494a591da3423048345f7d329714c729689623051498f579df012c8efa728
|
|
BLAKE2b-256 checksum How to use checksums |
3d1b46dbf5f2e66e2e659a9900d4320aed9b19ed7a5946c8ccbe0e559544b4be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Security for skelion 1.0.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.