Skip to main content

StackGen Python SDK

Install:

pip install stackgen-sdk

Import package name is stackgen:

from stackgen import StackgenClient

client = StackgenClient.from_env()
result = client.aiden.run_webhook_and_download_report(open("alert.json").read())
print(result.session_id, result.output_path)

alerts = client.sre.list_alerts()

Environment

Variable Purpose
STACKGEN_URL Mothership URL (no path suffix)
STACKGEN_TOKEN API token (stackgen_…)
WEBHOOK_TOKEN Webhook token (sg_aios_…) for triggers
ORG_ID Organization UUID
WEBHOOK_ID Optional; needed when older trigger responses omit session_id

Optional: ARTIFACT_NAME, OUTPUT_PATH, POLL_INTERVAL_SECONDS, TIMEOUT_SECONDS.

Namespaces

  • client.aiden — webhooks, sessions, session-report download
  • client.sre — alerts and investigations
  • client.vault — secrets (not enabled in this release)

Prefer StackgenClient over the generated OpenAPI modules under stackgen.generated.

Pin versions in CI, for example pip install stackgen-sdk==0.1.2.

Metadata

Release files for stackgen-sdk 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stackgen-sdk 0.1.3
File Size Uploaded Provenance
stackgen_sdk-0.1.3.tar.gz 51.3 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for stackgen-sdk 0.1.3
File Interpreter ABI Platform
stackgen_sdk-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 156.5 kB

Release files / stackgen_sdk-0.1.3.tar.gz

Download URL stackgen_sdk-0.1.3.tar.gz
Size 51.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b84f691d6c3c6b82fcb84133e8abd6f774a663546c1ea55849062bd56dafba21
BLAKE2b-256 checksum
How to use checksums
7b0fe929d8cfe1eb4182deef5f5dcb2ea3655c81b34f63e5ad7f283be706d679
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 25, 2026.

Transparency log

Release files / stackgen_sdk-0.1.3-py3-none-any.whl

Download URL stackgen_sdk-0.1.3-py3-none-any.whl
Size 105.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
339c26d9b5525f5ba3be80791bfac9f8e2512d11a4f1b1b9d1988a9c14dcfa12
BLAKE2b-256 checksum
How to use checksums
bf930ec4fad61e4afabfcd0d951659bca5b6e9b85917e1375ea4c1d2c5734bb7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 25, 2026.

Transparency log

Security for stackgen-sdk 0.1.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for stackgen_sdk-0.1.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 25, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page