stackgen-sdk 0.1.1__tar.gz → 0.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/PKG-INFO +18 -19
- stackgen_sdk-0.1.2/README.md +41 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/pyproject.toml +1 -4
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/_version.py +2 -2
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/errors.py +1 -2
- stackgen_sdk-0.1.1/README.md +0 -39
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/.gitignore +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/__init__.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/_http.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/aiden/__init__.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/aiden/namespace.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/aiden/runs.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/aiden/webhook.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/cli.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/client.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/config.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/.openapi-generator/FILES +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/.openapi-generator/VERSION +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/.openapi-generator-ignore +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/__init__.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/api/__init__.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/api/aiden_api.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/api/sre_api.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/api_client.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/api_response.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/configuration.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/exceptions.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/__init__.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/alert_analysis_status.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/alert_attention.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/alert_categorization_summary.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/alert_role.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/alert_sort_by.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/alert_status.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/alert_summary.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/alert_sync_run_status.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/alert_v1.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/artifact_info.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/error_response.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/investigate_alert_request.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/investigate_response.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/investigation.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/investigation_evidence.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/investigation_evidence_kind.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/investigation_evidence_source.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/investigation_hypothesis.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/investigation_plain_summary.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/investigation_prior_incident.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/investigation_recommended_next_step.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/investigation_ref.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/investigation_status.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/investigation_structured_hypothesis_entry.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/investigation_structured_limitation_entry.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/investigation_structured_rca.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/investigation_triage_metadata.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/json_error.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/list_alerts_response.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/list_investigations_response.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/pagination.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/schedule_run_status.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/schedule_target_type.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/session.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/session_responder_kind.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/signal_severity.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/sync_response.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/trigger_webhook202_response.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/webhook_run.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/webhook_run_detail.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/webhook_run_list_response.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/rest.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/sre/__init__.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/sre/namespace.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/vault/__init__.py +0 -0
- {stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/vault/namespace.py +0 -0
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: stackgen-sdk
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: StackGen SDK — Aiden, SRE, and Vault from one client
|
|
5
|
-
Project-URL: Homepage, https://
|
|
6
|
-
Project-URL: Documentation, https://github.com/appcd-dev/stackgen-sdk/tree/main/docs
|
|
7
|
-
Project-URL: Repository, https://github.com/appcd-dev/stackgen-sdk
|
|
8
|
-
Project-URL: Issues, https://github.com/appcd-dev/stackgen-sdk/issues
|
|
5
|
+
Project-URL: Homepage, https://pypi.org/project/stackgen-sdk/
|
|
9
6
|
Author: StackGen
|
|
10
7
|
License-Expression: Apache-2.0
|
|
11
8
|
Keywords: aiden,openapi,sre,stackgen
|
|
@@ -21,19 +18,13 @@ Description-Content-Type: text/markdown
|
|
|
21
18
|
|
|
22
19
|
# StackGen Python SDK
|
|
23
20
|
|
|
24
|
-
Install
|
|
21
|
+
Install:
|
|
25
22
|
|
|
26
23
|
```bash
|
|
27
|
-
pip install stackgen-sdk
|
|
24
|
+
pip install stackgen-sdk
|
|
28
25
|
```
|
|
29
26
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
```bash
|
|
33
|
-
pip install "git+ssh://git@github.com/appcd-dev/stackgen-sdk.git@v0.1.1#subdirectory=clients/python"
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
Quick start:
|
|
27
|
+
Import package name is `stackgen`:
|
|
37
28
|
|
|
38
29
|
```python
|
|
39
30
|
from stackgen import StackgenClient
|
|
@@ -45,16 +36,24 @@ print(result.session_id, result.output_path)
|
|
|
45
36
|
alerts = client.sre.list_alerts()
|
|
46
37
|
```
|
|
47
38
|
|
|
48
|
-
Environment
|
|
39
|
+
## Environment
|
|
49
40
|
|
|
50
41
|
| Variable | Purpose |
|
|
51
42
|
|----------|---------|
|
|
52
|
-
| `STACKGEN_URL` | Mothership URL (no
|
|
43
|
+
| `STACKGEN_URL` | Mothership URL (no path suffix) |
|
|
53
44
|
| `STACKGEN_TOKEN` | API token (`stackgen_…`) |
|
|
54
45
|
| `WEBHOOK_TOKEN` | Webhook token (`sg_aios_…`) for triggers |
|
|
55
46
|
| `ORG_ID` | Organization UUID |
|
|
56
|
-
| `WEBHOOK_ID` | Optional; older trigger
|
|
47
|
+
| `WEBHOOK_ID` | Optional; needed when older trigger responses omit `session_id` |
|
|
48
|
+
|
|
49
|
+
Optional: `ARTIFACT_NAME`, `OUTPUT_PATH`, `POLL_INTERVAL_SECONDS`, `TIMEOUT_SECONDS`.
|
|
50
|
+
|
|
51
|
+
## Namespaces
|
|
52
|
+
|
|
53
|
+
- `client.aiden` — webhooks, sessions, session-report download
|
|
54
|
+
- `client.sre` — alerts and investigations
|
|
55
|
+
- `client.vault` — secrets (not enabled in this release)
|
|
57
56
|
|
|
58
|
-
|
|
57
|
+
Prefer `StackgenClient` over the generated OpenAPI modules under `stackgen.generated`.
|
|
59
58
|
|
|
60
|
-
|
|
59
|
+
Pin versions in CI, for example `pip install stackgen-sdk==0.1.1`.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# StackGen Python SDK
|
|
2
|
+
|
|
3
|
+
Install:
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
pip install stackgen-sdk
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Import package name is `stackgen`:
|
|
10
|
+
|
|
11
|
+
```python
|
|
12
|
+
from stackgen import StackgenClient
|
|
13
|
+
|
|
14
|
+
client = StackgenClient.from_env()
|
|
15
|
+
result = client.aiden.run_webhook_and_download_report(open("alert.json").read())
|
|
16
|
+
print(result.session_id, result.output_path)
|
|
17
|
+
|
|
18
|
+
alerts = client.sre.list_alerts()
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Environment
|
|
22
|
+
|
|
23
|
+
| Variable | Purpose |
|
|
24
|
+
|----------|---------|
|
|
25
|
+
| `STACKGEN_URL` | Mothership URL (no path suffix) |
|
|
26
|
+
| `STACKGEN_TOKEN` | API token (`stackgen_…`) |
|
|
27
|
+
| `WEBHOOK_TOKEN` | Webhook token (`sg_aios_…`) for triggers |
|
|
28
|
+
| `ORG_ID` | Organization UUID |
|
|
29
|
+
| `WEBHOOK_ID` | Optional; needed when older trigger responses omit `session_id` |
|
|
30
|
+
|
|
31
|
+
Optional: `ARTIFACT_NAME`, `OUTPUT_PATH`, `POLL_INTERVAL_SECONDS`, `TIMEOUT_SECONDS`.
|
|
32
|
+
|
|
33
|
+
## Namespaces
|
|
34
|
+
|
|
35
|
+
- `client.aiden` — webhooks, sessions, session-report download
|
|
36
|
+
- `client.sre` — alerts and investigations
|
|
37
|
+
- `client.vault` — secrets (not enabled in this release)
|
|
38
|
+
|
|
39
|
+
Prefer `StackgenClient` over the generated OpenAPI modules under `stackgen.generated`.
|
|
40
|
+
|
|
41
|
+
Pin versions in CI, for example `pip install stackgen-sdk==0.1.1`.
|
|
@@ -19,10 +19,7 @@ dependencies = [
|
|
|
19
19
|
]
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
|
-
Homepage = "https://
|
|
23
|
-
Documentation = "https://github.com/appcd-dev/stackgen-sdk/tree/main/docs"
|
|
24
|
-
Repository = "https://github.com/appcd-dev/stackgen-sdk"
|
|
25
|
-
Issues = "https://github.com/appcd-dev/stackgen-sdk/issues"
|
|
22
|
+
Homepage = "https://pypi.org/project/stackgen-sdk/"
|
|
26
23
|
|
|
27
24
|
[project.optional-dependencies]
|
|
28
25
|
dev = ["pytest>=8.0", "build>=1.2"]
|
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '0.1.
|
|
22
|
-
__version_tuple__ = version_tuple = (0, 1,
|
|
21
|
+
__version__ = version = '0.1.2'
|
|
22
|
+
__version_tuple__ = version_tuple = (0, 1, 2)
|
|
23
23
|
|
|
24
24
|
__commit_id__ = commit_id = None
|
|
@@ -36,6 +36,5 @@ class NotAllowlistedError(StackgenError):
|
|
|
36
36
|
self.operation = operation
|
|
37
37
|
super().__init__(
|
|
38
38
|
f"{namespace}.{operation} is not allowlisted in this SDK release. "
|
|
39
|
-
"
|
|
40
|
-
"(see docs/UPSTREAM.md)."
|
|
39
|
+
"Ask your StackGen contact to publish the operation in a newer SDK version."
|
|
41
40
|
)
|
stackgen_sdk-0.1.1/README.md
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
# StackGen Python SDK
|
|
2
|
-
|
|
3
|
-
Install (PyPI):
|
|
4
|
-
|
|
5
|
-
```bash
|
|
6
|
-
pip install stackgen-sdk==0.1.1
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
Developers with private repo access:
|
|
10
|
-
|
|
11
|
-
```bash
|
|
12
|
-
pip install "git+ssh://git@github.com/appcd-dev/stackgen-sdk.git@v0.1.1#subdirectory=clients/python"
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
Quick start:
|
|
16
|
-
|
|
17
|
-
```python
|
|
18
|
-
from stackgen import StackgenClient
|
|
19
|
-
|
|
20
|
-
client = StackgenClient.from_env()
|
|
21
|
-
result = client.aiden.run_webhook_and_download_report(open("alert.json").read())
|
|
22
|
-
print(result.session_id, result.output_path)
|
|
23
|
-
|
|
24
|
-
alerts = client.sre.list_alerts()
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
Environment:
|
|
28
|
-
|
|
29
|
-
| Variable | Purpose |
|
|
30
|
-
|----------|---------|
|
|
31
|
-
| `STACKGEN_URL` | Mothership URL (no `/guild`) |
|
|
32
|
-
| `STACKGEN_TOKEN` | API token (`stackgen_…`) |
|
|
33
|
-
| `WEBHOOK_TOKEN` | Webhook token (`sg_aios_…`) for triggers |
|
|
34
|
-
| `ORG_ID` | Organization UUID |
|
|
35
|
-
| `WEBHOOK_ID` | Optional; older trigger 202 bodies |
|
|
36
|
-
|
|
37
|
-
See [docs/PRODUCT.md](../../docs/PRODUCT.md), [docs/python/IMPLEMENTATION.md](../../docs/python/IMPLEMENTATION.md), and [docs/PUBLISH.md](../../docs/PUBLISH.md).
|
|
38
|
-
|
|
39
|
-
Generated OpenAPI client code lives under `stackgen.generated` (unstable; prefer `StackgenClient`).
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/alert_analysis_status.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/alert_sync_run_status.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/investigate_alert_request.py
RENAMED
|
File without changes
|
{stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/investigate_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/investigation_evidence.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/investigation_hypothesis.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/investigation_ref.py
RENAMED
|
File without changes
|
{stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/investigation_status.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/list_alerts_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/schedule_run_status.py
RENAMED
|
File without changes
|
{stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/schedule_target_type.py
RENAMED
|
File without changes
|
|
File without changes
|
{stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/session_responder_kind.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/webhook_run_detail.py
RENAMED
|
File without changes
|
{stackgen_sdk-0.1.1 → stackgen_sdk-0.1.2}/src/stackgen/generated/models/webhook_run_list_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|