Skip to main content

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/api
  • sync_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


Download files

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

Source Distribution

auraprotector_agent-0.1.1.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

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

auraprotector_agent-0.1.1-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

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

Hashes for auraprotector_agent-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e4479bd042366d58020b0adf9e30786fbea515151d2827e6e3074837bc4667df
MD5 81eb305e704aad32fe4f2f4cefdae9f8
BLAKE2b-256 0a76713ce3dda6f7955778c1cff14a3c06bde3093e0ff7aa4f34471f5531dd4d

See more details on using hashes here.

Provenance

The following attestation bundles were made for auraprotector_agent-0.1.1.tar.gz:

Publisher: release-python.yml on auraguard-co/AuraProtector

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

File details

Details for the file auraprotector_agent-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for auraprotector_agent-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 46e0b56106f5cb9cc02d0571a073c8d07d365a71cda46fbfd843d9bb91d19caa
MD5 b0e04678bbba0acf91bbc1f2b9a363a7
BLAKE2b-256 c7c76eedbb1fad94d6ab10d8fac7a760a602562432cfb8eac20383fb41c5574b

See more details on using hashes here.

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

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 Pingdom Monitoring Sentry Error logging StatusPage Status page