argus-python
Argus Python SDK — instrumentation for AI-native observability, monitoring, and security.
Installation
pip install argus-ai-sdk
With framework extras:
pip install argus-ai-sdk[fastapi]
pip install argus-ai-sdk[flask]
Quick Start
Initialize the SDK
import argus
argus.init(
server_url="https://argus.example.com",
api_key="your-api-key",
service_name="my-service",
)
Framework Middleware
FastAPI:
from fastapi import FastAPI
from argus.middleware.fastapi import ArgusMiddleware
app = FastAPI()
app.add_middleware(ArgusMiddleware)
Flask:
from flask import Flask
from argus.middleware.flask import ArgusFlask
app = Flask(__name__)
ArgusFlask(app)
Trace Functions
from argus.decorators import trace
@trace("fetch_user")
async def fetch_user(user_id: str):
# Automatically creates a span with timing and error capture
...
Capture Exceptions
try:
risky_operation()
except Exception:
argus.capture_exception()
Breadcrumbs
argus.add_breadcrumb(
category="http",
message="GET /api/users",
data={"status_code": 200}
)
Custom Events
argus.event("payment_processed", {"amount": 99.99, "currency": "USD"})
Features
- Distributed Tracing — W3C Traceparent propagation across services
- Framework Middleware — FastAPI and Flask integrations
- Function Tracing —
@tracedecorator for sync and async functions - Exception Capture — Automatic stack traces with breadcrumb context
- Breadcrumbs — Trail of events leading up to errors
- Custom Events — Send arbitrary telemetry data
- HTTP Instrumentation — Auto-instrument outgoing httpx requests
- Serverless Support — Auto-detects AWS Lambda, Vercel, GCP Functions, and more
- Non-blocking — Events are batched and flushed asynchronously
License
MIT — see LICENSE for details.
Metadata
Release files for argus-ai-sdk 0.2.3
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 | |
|---|---|---|---|---|
| argus_ai_sdk-0.2.3.tar.gz | 54.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| argus_ai_sdk-0.2.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 76.4 kB
Release files / argus_ai_sdk-0.2.3.tar.gz
| Download URL | argus_ai_sdk-0.2.3.tar.gz |
|---|---|
| Size | 54.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
57f6571e2c6524f3a2c859abce7da92821c9828be6a596f5409d8a8d30a3f414
|
|
BLAKE2b-256 checksum How to use checksums |
907e72f7814fca0c6f48ed9f161e7a8c73a086316a23a7034816ff2b5f39cd83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / argus_ai_sdk-0.2.3-py3-none-any.whl
| Download URL | argus_ai_sdk-0.2.3-py3-none-any.whl |
|---|---|
| Size | 22.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b8199fe854407a6e9011fa4c4ee961994e23df7f5128fe2aab27ef8909ac0384
|
|
BLAKE2b-256 checksum How to use checksums |
9b5c923a8ea5655efb7ae2021aa96f8e20dc28420e2f33b35e32d1b9c7fc149b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for argus-ai-sdk 0.2.3
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.