stratonext-sdk 0.0.1__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.
- stratonext_sdk-0.0.1/.gitignore +3 -0
- stratonext_sdk-0.0.1/.python-version +1 -0
- stratonext_sdk-0.0.1/PKG-INFO +7 -0
- stratonext_sdk-0.0.1/README.md +0 -0
- stratonext_sdk-0.0.1/main.py +17 -0
- stratonext_sdk-0.0.1/pyproject.toml +31 -0
- stratonext_sdk-0.0.1/schema.graphql +4052 -0
- stratonext_sdk-0.0.1/stratonext_sdk/__init__.py +685 -0
- stratonext_sdk-0.0.1/stratonext_sdk/add_organization_admin.py +17 -0
- stratonext_sdk-0.0.1/stratonext_sdk/add_organization_domain.py +21 -0
- stratonext_sdk-0.0.1/stratonext_sdk/add_workspace_member.py +23 -0
- stratonext_sdk-0.0.1/stratonext_sdk/async_base_client.py +393 -0
- stratonext_sdk-0.0.1/stratonext_sdk/aws_list_stacks.py +7 -0
- stratonext_sdk-0.0.1/stratonext_sdk/base_model.py +28 -0
- stratonext_sdk-0.0.1/stratonext_sdk/cancel_task.py +16 -0
- stratonext_sdk-0.0.1/stratonext_sdk/claim_organization.py +18 -0
- stratonext_sdk-0.0.1/stratonext_sdk/client.py +2048 -0
- stratonext_sdk-0.0.1/stratonext_sdk/confirm_asset.py +20 -0
- stratonext_sdk-0.0.1/stratonext_sdk/create_agent.py +19 -0
- stratonext_sdk-0.0.1/stratonext_sdk/create_deployment.py +16 -0
- stratonext_sdk-0.0.1/stratonext_sdk/create_dossier.py +26 -0
- stratonext_sdk-0.0.1/stratonext_sdk/create_environment.py +16 -0
- stratonext_sdk-0.0.1/stratonext_sdk/create_job.py +28 -0
- stratonext_sdk-0.0.1/stratonext_sdk/create_project.py +14 -0
- stratonext_sdk-0.0.1/stratonext_sdk/create_task.py +14 -0
- stratonext_sdk-0.0.1/stratonext_sdk/create_workspace.py +15 -0
- stratonext_sdk-0.0.1/stratonext_sdk/deactivate_agent.py +14 -0
- stratonext_sdk-0.0.1/stratonext_sdk/delete_agent.py +7 -0
- stratonext_sdk-0.0.1/stratonext_sdk/delete_asset.py +7 -0
- stratonext_sdk-0.0.1/stratonext_sdk/delete_deployment.py +7 -0
- stratonext_sdk-0.0.1/stratonext_sdk/delete_dossier.py +7 -0
- stratonext_sdk-0.0.1/stratonext_sdk/delete_environment.py +7 -0
- stratonext_sdk-0.0.1/stratonext_sdk/delete_job.py +7 -0
- stratonext_sdk-0.0.1/stratonext_sdk/delete_project.py +7 -0
- stratonext_sdk-0.0.1/stratonext_sdk/delete_task.py +7 -0
- stratonext_sdk-0.0.1/stratonext_sdk/delete_workspace.py +7 -0
- stratonext_sdk-0.0.1/stratonext_sdk/disable_job.py +16 -0
- stratonext_sdk-0.0.1/stratonext_sdk/dispatch_task.py +17 -0
- stratonext_sdk-0.0.1/stratonext_sdk/enums.py +188 -0
- stratonext_sdk-0.0.1/stratonext_sdk/exceptions.py +83 -0
- stratonext_sdk-0.0.1/stratonext_sdk/get_agent.py +36 -0
- stratonext_sdk-0.0.1/stratonext_sdk/get_agents.py +34 -0
- stratonext_sdk-0.0.1/stratonext_sdk/get_approval.py +33 -0
- stratonext_sdk-0.0.1/stratonext_sdk/get_approvals.py +42 -0
- stratonext_sdk-0.0.1/stratonext_sdk/get_asset_download_url.py +9 -0
- stratonext_sdk-0.0.1/stratonext_sdk/get_audit_logs.py +39 -0
- stratonext_sdk-0.0.1/stratonext_sdk/get_dossier.py +28 -0
- stratonext_sdk-0.0.1/stratonext_sdk/get_dossiers.py +38 -0
- stratonext_sdk-0.0.1/stratonext_sdk/get_environment.py +35 -0
- stratonext_sdk-0.0.1/stratonext_sdk/get_environments.py +46 -0
- stratonext_sdk-0.0.1/stratonext_sdk/get_job.py +31 -0
- stratonext_sdk-0.0.1/stratonext_sdk/get_job_run.py +26 -0
- stratonext_sdk-0.0.1/stratonext_sdk/get_job_runs.py +37 -0
- stratonext_sdk-0.0.1/stratonext_sdk/get_jobs.py +41 -0
- stratonext_sdk-0.0.1/stratonext_sdk/get_me.py +19 -0
- stratonext_sdk-0.0.1/stratonext_sdk/get_organization.py +20 -0
- stratonext_sdk-0.0.1/stratonext_sdk/get_organization_admins.py +16 -0
- stratonext_sdk-0.0.1/stratonext_sdk/get_project.py +107 -0
- stratonext_sdk-0.0.1/stratonext_sdk/get_projects.py +34 -0
- stratonext_sdk-0.0.1/stratonext_sdk/get_task.py +81 -0
- stratonext_sdk-0.0.1/stratonext_sdk/get_tasks.py +41 -0
- stratonext_sdk-0.0.1/stratonext_sdk/get_user.py +22 -0
- stratonext_sdk-0.0.1/stratonext_sdk/get_users.py +34 -0
- stratonext_sdk-0.0.1/stratonext_sdk/get_workspace.py +51 -0
- stratonext_sdk-0.0.1/stratonext_sdk/get_workspace_info.py +19 -0
- stratonext_sdk-0.0.1/stratonext_sdk/get_workspace_members.py +28 -0
- stratonext_sdk-0.0.1/stratonext_sdk/get_workspace_metrics.py +26 -0
- stratonext_sdk-0.0.1/stratonext_sdk/get_workspaces.py +30 -0
- stratonext_sdk-0.0.1/stratonext_sdk/input_types.py +2340 -0
- stratonext_sdk-0.0.1/stratonext_sdk/lookup_organization_by_domain.py +21 -0
- stratonext_sdk-0.0.1/stratonext_sdk/lookup_organization_by_slug.py +21 -0
- stratonext_sdk-0.0.1/stratonext_sdk/pause_job.py +16 -0
- stratonext_sdk-0.0.1/stratonext_sdk/ping_agent.py +18 -0
- stratonext_sdk-0.0.1/stratonext_sdk/refresh_deployment.py +16 -0
- stratonext_sdk-0.0.1/stratonext_sdk/register_asset.py +43 -0
- stratonext_sdk-0.0.1/stratonext_sdk/remove_organization_admin.py +7 -0
- stratonext_sdk-0.0.1/stratonext_sdk/remove_organization_domain.py +7 -0
- stratonext_sdk-0.0.1/stratonext_sdk/remove_workspace_member.py +7 -0
- stratonext_sdk-0.0.1/stratonext_sdk/resolve_approval.py +21 -0
- stratonext_sdk-0.0.1/stratonext_sdk/resume_job.py +16 -0
- stratonext_sdk-0.0.1/stratonext_sdk/search_users.py +23 -0
- stratonext_sdk-0.0.1/stratonext_sdk/set_organization_domains.py +17 -0
- stratonext_sdk-0.0.1/stratonext_sdk/submit_approval.py +25 -0
- stratonext_sdk-0.0.1/stratonext_sdk/submit_task_input.py +17 -0
- stratonext_sdk-0.0.1/stratonext_sdk/trigger_job_run.py +25 -0
- stratonext_sdk-0.0.1/stratonext_sdk/update_agent.py +14 -0
- stratonext_sdk-0.0.1/stratonext_sdk/update_dossier.py +26 -0
- stratonext_sdk-0.0.1/stratonext_sdk/update_environment.py +16 -0
- stratonext_sdk-0.0.1/stratonext_sdk/update_job.py +28 -0
- stratonext_sdk-0.0.1/stratonext_sdk/update_organization.py +21 -0
- stratonext_sdk-0.0.1/stratonext_sdk/update_project.py +14 -0
- stratonext_sdk-0.0.1/stratonext_sdk/update_task.py +20 -0
- stratonext_sdk-0.0.1/stratonext_sdk/update_workspace.py +15 -0
- stratonext_sdk-0.0.1/stratonext_sdk/update_workspace_member_role.py +19 -0
- stratonext_sdk-0.0.1/uv.lock +259 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.14
|
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import asyncio
|
|
2
|
+
|
|
3
|
+
from stratonext_sdk import Client
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
async def run() -> None:
|
|
7
|
+
client = Client(url="http://localhost:5555/v1/graphql")
|
|
8
|
+
result = await client.get_tasks(workspace_id="XXX")
|
|
9
|
+
print(result)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def main() -> None:
|
|
13
|
+
asyncio.run(run())
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
if __name__ == "__main__":
|
|
17
|
+
main()
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "stratonext-sdk"
|
|
3
|
+
dynamic = ["version"]
|
|
4
|
+
description = "StratoNext API Python SDK"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
requires-python = ">=3.14"
|
|
7
|
+
dependencies = ["httpx>=0.28", "pydantic>=2.0"]
|
|
8
|
+
|
|
9
|
+
[build-system]
|
|
10
|
+
requires = ["hatchling", "hatch-vcs"]
|
|
11
|
+
build-backend = "hatchling.build"
|
|
12
|
+
|
|
13
|
+
# Version derived from git tags (cli-vX.Y.Z). fallback_version keeps local
|
|
14
|
+
# builds/`uv sync` working when no release tag is present in the checkout.
|
|
15
|
+
[tool.hatch.version]
|
|
16
|
+
source = "vcs"
|
|
17
|
+
raw-options = { tag_regex = '^cli-v(?P<version>\d+\.\d+\.\d+([abrc]+\d+)?)$', fallback_version = "0.0.0" }
|
|
18
|
+
|
|
19
|
+
[dependency-groups]
|
|
20
|
+
dev = ["ariadne-codegen>=0.18.0"]
|
|
21
|
+
|
|
22
|
+
# Fetches the SDL schema directly from the API via GET into schema.graphql — no
|
|
23
|
+
# introspection, no auth required. Requires the API to be running on localhost:5555.
|
|
24
|
+
# Run `task gen_sdk_python` from src/libs/sdks, not this tool directly, so the schema
|
|
25
|
+
# fetch always happens first.
|
|
26
|
+
[tool.ariadne-codegen]
|
|
27
|
+
schema_path = "schema.graphql"
|
|
28
|
+
queries_path = "../documents"
|
|
29
|
+
target_package_name = "stratonext_sdk"
|
|
30
|
+
client_name = "Client"
|
|
31
|
+
include_comments = "none"
|