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.1.

Metadata

Release files for stackgen-sdk 0.1.2

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.2
File Size Uploaded Provenance
stackgen_sdk-0.1.2.tar.gz 51.3 kB With provenance Details

Built distribution (wheel)

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

Total release size: 156.5 kB

Release files / stackgen_sdk-0.1.2.tar.gz

Download URL stackgen_sdk-0.1.2.tar.gz
Size 51.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1fb2328c3c7ee69667e8b354ba477bfee3d076ba4ded5d26605dc7423ff4f956
BLAKE2b-256 checksum
How to use checksums
ced76e9c76f8f8e38ddf1d7257c14580142f2aab1440d0a3c949e557247fabad
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.2-py3-none-any.whl

Download URL stackgen_sdk-0.1.2-py3-none-any.whl
Size 105.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4915d3f8b40854e753ecb4f394b150bb5ec77b13f7a220276401468c7acd000b
BLAKE2b-256 checksum
How to use checksums
a7a2496086e3cde60ffcc62e89be622628ac8732689623a5264ac1a4ced50ab4
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.2

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.2.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