AuraProtector in-process agent for Python ASGI runtimes.
Project description
auraprotector-agent (Python)
Python in-process agent for ASGI runtimes (FastAPI/Starlette/etc).
Install
pip install auraprotector-agent
FastAPI usage
from fastapi import FastAPI
from auraprotector_agent.asgi import UltimateProtectorMiddleware
app = FastAPI()
app.add_middleware(
UltimateProtectorMiddleware,
license_key="UP_LIVE_...",
api_url="https://YOUR_CLOUD/api",
)
Zero-code-ish usage (env wrapper)
If you can change how the app is created (but don't want to paste config into code), wrap the ASGI app using env vars:
import os
from fastapi import FastAPI
from auraprotector_agent import wrap_asgi_app
app = wrap_asgi_app(FastAPI())
# env:
# UP_LICENSE_KEY=UP_LIVE_...
# UP_API_URL=https://YOUR_CLOUD/api
Optional: sitecustomize bootstrap
The platform can generate a sitecustomize.py helper inside the Python auto bundle.
If that file is on PYTHONPATH, Python auto-imports it on startup.
Set UP_ASGI_APP="module:app" and it will best-effort wrap that object automatically (fail-open).
Notes
- PyPI distribution name:
auraprotector-agent - Import path:
auraprotector_agent(recommended) - Legacy import path still supported:
ultimateprotector_agent
Options
license_key(required)api_url(required) e.g.https://cloud.example/apisync_interval_seconds(default:60)allow_sample_rate(default:0.01)only_paths: list[str] exact (/checkout) or prefix (/product/*)except_paths: list[str]only_regex: str (Python regex)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file auraprotector_agent-0.1.1.tar.gz.
File metadata
- Download URL: auraprotector_agent-0.1.1.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4479bd042366d58020b0adf9e30786fbea515151d2827e6e3074837bc4667df
|
|
| MD5 |
81eb305e704aad32fe4f2f4cefdae9f8
|
|
| BLAKE2b-256 |
0a76713ce3dda6f7955778c1cff14a3c06bde3093e0ff7aa4f34471f5531dd4d
|
Provenance
The following attestation bundles were made for auraprotector_agent-0.1.1.tar.gz:
Publisher:
release-python.yml on auraguard-co/AuraProtector
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
auraprotector_agent-0.1.1.tar.gz -
Subject digest:
e4479bd042366d58020b0adf9e30786fbea515151d2827e6e3074837bc4667df - Sigstore transparency entry: 1004660918
- Sigstore integration time:
-
Permalink:
auraguard-co/AuraProtector@570531ebafa9ed2231229e58209f3692de658f18 -
Branch / Tag:
refs/tags/agent-python-v0.1.1 - Owner: https://github.com/auraguard-co
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-python.yml@570531ebafa9ed2231229e58209f3692de658f18 -
Trigger Event:
push
-
Statement type:
File details
Details for the file auraprotector_agent-0.1.1-py3-none-any.whl.
File metadata
- Download URL: auraprotector_agent-0.1.1-py3-none-any.whl
- Upload date:
- Size: 18.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46e0b56106f5cb9cc02d0571a073c8d07d365a71cda46fbfd843d9bb91d19caa
|
|
| MD5 |
b0e04678bbba0acf91bbc1f2b9a363a7
|
|
| BLAKE2b-256 |
c7c76eedbb1fad94d6ab10d8fac7a760a602562432cfb8eac20383fb41c5574b
|
Provenance
The following attestation bundles were made for auraprotector_agent-0.1.1-py3-none-any.whl:
Publisher:
release-python.yml on auraguard-co/AuraProtector
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
auraprotector_agent-0.1.1-py3-none-any.whl -
Subject digest:
46e0b56106f5cb9cc02d0571a073c8d07d365a71cda46fbfd843d9bb91d19caa - Sigstore transparency entry: 1004660920
- Sigstore integration time:
-
Permalink:
auraguard-co/AuraProtector@570531ebafa9ed2231229e58209f3692de658f18 -
Branch / Tag:
refs/tags/agent-python-v0.1.1 - Owner: https://github.com/auraguard-co
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-python.yml@570531ebafa9ed2231229e58209f3692de658f18 -
Trigger Event:
push
-
Statement type: