This release is a pre-release and may not be stable for production use.
StackGen Python SDK
Documentation: https://appcd-dev.github.io/stackgen-sdk/ — Aiden guide, code samples, FAQ, and CI integration.
Install:
pip install stackgen-sdk
Import package name is stackgen. Construct the client with an explicit config:
from pathlib import Path
from stackgen import StackgenClient, StackgenConfig
client = StackgenClient(
StackgenConfig(
base_url="https://app.stackgen.com",
api_token="stackgen_…",
org_id="<project-uuid>",
webhook_token="sg_aios_…", # webhook journeys only
)
)
result = client.aiden.run_webhook_and_download_report(
Path("alert.json").read_text(encoding="utf-8")
)
print(result.session_id, result.output_path)
ask = client.aiden.run_ask_and_download_artifact(
message="Run triage for checkout CPU alert",
entity_refs=[{"name": "observe-uber-triage", "type": "workflow"}],
)
print(ask.trace_id, ask.output_path)
alerts = client.sre.list_alerts()
Default environment variables
StackgenConfig.from_env() reads only these (optional convenience):
| Variable | Purpose |
|---|---|
STACKGEN_URL |
Mothership URL (no path suffix) |
STACKGEN_TOKEN |
API token (stackgen_…) |
STACKGEN_PROJECT |
Project / org UUID (orgId) |
Pass webhook_token, webhook_id, timeouts, and artifact paths as StackgenConfig fields — not via env.
from dataclasses import replace
from stackgen import StackgenClient, StackgenConfig
client = StackgenClient(
replace(StackgenConfig.from_env(), webhook_token="sg_aios_…")
)
Namespaces
client.aiden— webhooks, Ask Guild, sessions, artifact downloadclient.sre— alerts and investigationsclient.vault— secrets (not enabled in this release)
Prefer StackgenClient over stackgen.generated.
Pin versions in CI: pip install stackgen-sdk==0.1.5.
Documentation: https://appcd-dev.github.io/stackgen-sdk/ (Aiden guide, FAQ, code samples)
Metadata
Release files for stackgen-sdk 0.4.0rc9
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 | |
|---|---|---|---|---|
| stackgen_sdk-0.4.0rc9.tar.gz | 196.9 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| stackgen_sdk-0.4.0rc9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 667.9 kB
Release files / stackgen_sdk-0.4.0rc9.tar.gz
| Download URL | stackgen_sdk-0.4.0rc9.tar.gz |
|---|---|
| Size | 196.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9be06b05fb6c07186aec8a264f2f881103d8b817f7ee1f1d241f759911cc55c9
|
|
BLAKE2b-256 checksum How to use checksums |
35ec0f83dd2856036e3960eef0413abadfcd8f85cbdd151547201aeb55353ea2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 21, 2026.
Transparency logRelease files / stackgen_sdk-0.4.0rc9-py3-none-any.whl
| Download URL | stackgen_sdk-0.4.0rc9-py3-none-any.whl |
|---|---|
| Size | 471.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
840c6316f60e25c3bb9d4cd2e2ea19d34a7c12e24b07cf70c73eccbda9f13afe
|
|
BLAKE2b-256 checksum How to use checksums |
3701790dbdc684bc83bac23f4c0b4268fc001fd5355b5afefc14afca0009ed7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 21, 2026.
Transparency logSecurity for stackgen-sdk 0.4.0rc9
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.
Attestation for stackgen_sdk-0.4.0rc9.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 Oct 21, 2026.
Transparency logA 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.