Catalog PyPI
PACKAGE EXPLORERView in registry

aida-sdk

PyPI

AIDA — AI DevOps Incident Intelligence SDK. Auto-captures logs, errors, and exceptions, streams them to your AIDA backend, and triggers AI-powered incident analysis.

aidevopsincidentloggingobservability
Versions collected1
Direct dependencies4From release 1.0.2
Last observed21 Oct, 10:22 UTC

README

Version 1.0.2 documentation

aida-sdk

AI DevOps Incident Intelligence SDK for Python. Auto-captures logs, errors, and exceptions — triggers AI-powered incident analysis automatically.

Install

pip install aida-sdk

Quick Start

import aida

aida.init(
    api_key="sk-...",          # from GET /api/v1/sdk/keys
    project_id="owner/my-repo",  # your GitHub repo full name
    repo_name="owner/my-repo",
    base_url="https://your-aida-backend.com",
    environment="production",
    service="my-backend-api",
)

# ✅ After this line — ALL print() and logging output is auto-captured.
# ✅ Uncaught exceptions are auto-captured and trigger the incident pipeline.
# ✅ Error-level entries automatically trigger the 4-agent AI analysis.

print("Server started")          # → captured as info log
import logging
logging.error("DB connection failed")  # → captured as error, triggers incident AI
raise ValueError("Something broke")    # → captured as error with traceback

What Gets Captured Automatically

SourceLevelNotes
print()infoAll stdout output
sys.stderrerrorAll stderr output
logging.debug/info/warning/errormappedFull logging module
Uncaught exceptionserrorIncludes full traceback

Manual Logging (Optional)

aida.get_client().error("Payment gateway timeout", metadata={"gateway": "stripe", "latency_ms": 5000})
aida.get_client().info("User signed up", metadata={"user_id": "123"})

Configuration

ParameterDefaultDescription
api_keyrequiredBearer token from /api/v1/sdk/keys
project_idrequiredRepo full name for linking logs to incidents
repo_namerequiredSame as project_id
base_urlrequiredYour backend URL
environment"production"Environment tag
service"app"Service name tag
batch_size20Max logs per HTTP request
flush_interval2.0Seconds between flushes
intercept_stdoutTrueCapture print()
intercept_loggingTrueCapture logging module
intercept_exceptionsTrueCapture uncaught exceptions

Publish to PyPI

CI publish (GitHub Actions):

  • Tag the repo with python-sdk-v* or run workflow_dispatch.
  • Required secret: PYPI_API_TOKEN.
cd python-sdk
pip install build twine
python -m build
twine upload dist/*

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.213 May 20264

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
your-org/aida-sdk

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 10:22 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:1fd015a4a94e9cb0e84f321ae0cee1a17675546d340a231b5da094065b03f11b