infrawrench-sdk 0.1.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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Infrawrench LLC
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,105 @@
1
+ Metadata-Version: 2.4
2
+ Name: infrawrench-sdk
3
+ Version: 0.1.1
4
+ Summary: Generated Python client for the Infrawrench API (v0.1.1).
5
+ Project-URL: Homepage, https://infrawrench.com/docs/team-and-billing/client-sdks
6
+ Project-URL: Repository, https://github.com/Infrawrench/Infrawrench
7
+ Project-URL: Issues, https://github.com/Infrawrench/Infrawrench/issues
8
+ Author-email: Infrawrench LLC <astrid@infrawrench.com>
9
+ Maintainer-email: Astrid Gealer <astrid@infrawrench.com>
10
+ License: MIT
11
+ License-File: LICENSE
12
+ Keywords: api-client,cloud,devops,infrastructure,infrawrench,openapi,sdk
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.9
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Programming Language :: Python :: Implementation :: CPython
23
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
24
+ Classifier: Typing :: Typed
25
+ Requires-Python: >=3.9
26
+ Description-Content-Type: text/markdown
27
+
28
+ # infrawrench-sdk
29
+
30
+ Generated Python client for the Infrawrench API (API version `0.1.1`).
31
+
32
+ **Do not edit this package by hand** — it is regenerated from `openapi.json` and
33
+ is not checked into the repository. Run
34
+ `pnpm --filter @infrawrench/web generate:sdk` to rebuild it; the generator lives
35
+ in [`app/packages/web/scripts/sdk`](https://github.com/Infrawrench/Infrawrench/tree/main/app/packages/web/scripts/sdk).
36
+
37
+ ## Install
38
+
39
+ ```sh
40
+ pip install infrawrench-sdk
41
+ ```
42
+
43
+ Requires Python 3.9+ and nothing else: the client is built on
44
+ `urllib.request` and `json` from the standard library.
45
+
46
+ ## Usage
47
+
48
+ ```python
49
+ import os
50
+
51
+ from infrawrench_sdk import APIV1Client, ApiError
52
+
53
+ client = APIV1Client(
54
+ api_key=os.environ["INFRAWRENCH_API_KEY"],
55
+ org_id=os.environ["INFRAWRENCH_ORG_ID"],
56
+ )
57
+
58
+ try:
59
+ accounts = client.accounts.list()
60
+ except ApiError as error:
61
+ print(error.status, error.code, error.body)
62
+ ```
63
+
64
+ Calls are namespaced to mirror the URL structure, so
65
+ `POST /api/org/{orgId}/accounts/{id}/sync` is `client.accounts.sync(id=...)`.
66
+ Every argument is keyword-only. Set `org_id` once on the client and every
67
+ org-scoped call can omit it; pass `org_id=` on an individual call to
68
+ override it there.
69
+
70
+ Every method also takes `request_options=RequestOptions(...)` for per-call
71
+ `headers` and `timeout`. Non-2xx responses raise `ApiError`, which carries
72
+ `status`, the parsed `body`, and the machine-readable `code` when the API sends
73
+ one.
74
+
75
+ ## Types
76
+
77
+ Models are `TypedDict`s, so responses are ordinary dicts and request bodies can
78
+ be written as literals:
79
+
80
+ ```python
81
+ client.resources.secret_versions.add(
82
+ plugin_id="aws",
83
+ type_id="s3_bucket",
84
+ body={"resourceId": resource_id, "value": "..."},
85
+ )
86
+ ```
87
+
88
+ The package ships `py.typed` (PEP 561), so mypy and pyright check those calls
89
+ against the spec without a stub package.
90
+
91
+ ## Scope
92
+
93
+ This package covers the published API surface only. Operations marked
94
+ `x-internal` in the spec — the admin surface, webhook receivers, desktop sync,
95
+ push registration, and the browser auth redirects — are not generated.
96
+
97
+ ## License
98
+
99
+ MIT — see [`LICENSE`](./LICENSE). Copyright (c) 2026 Infrawrench LLC.
100
+
101
+ Note that this client is more permissively licensed than the service it talks
102
+ to: the Infrawrench source is BUSL-1.1, but the generated clients are MIT
103
+ so you can link one into your own software without inheriting those terms.
104
+
105
+ Issues: <https://github.com/Infrawrench/Infrawrench/issues>
@@ -0,0 +1,78 @@
1
+ # infrawrench-sdk
2
+
3
+ Generated Python client for the Infrawrench API (API version `0.1.1`).
4
+
5
+ **Do not edit this package by hand** — it is regenerated from `openapi.json` and
6
+ is not checked into the repository. Run
7
+ `pnpm --filter @infrawrench/web generate:sdk` to rebuild it; the generator lives
8
+ in [`app/packages/web/scripts/sdk`](https://github.com/Infrawrench/Infrawrench/tree/main/app/packages/web/scripts/sdk).
9
+
10
+ ## Install
11
+
12
+ ```sh
13
+ pip install infrawrench-sdk
14
+ ```
15
+
16
+ Requires Python 3.9+ and nothing else: the client is built on
17
+ `urllib.request` and `json` from the standard library.
18
+
19
+ ## Usage
20
+
21
+ ```python
22
+ import os
23
+
24
+ from infrawrench_sdk import APIV1Client, ApiError
25
+
26
+ client = APIV1Client(
27
+ api_key=os.environ["INFRAWRENCH_API_KEY"],
28
+ org_id=os.environ["INFRAWRENCH_ORG_ID"],
29
+ )
30
+
31
+ try:
32
+ accounts = client.accounts.list()
33
+ except ApiError as error:
34
+ print(error.status, error.code, error.body)
35
+ ```
36
+
37
+ Calls are namespaced to mirror the URL structure, so
38
+ `POST /api/org/{orgId}/accounts/{id}/sync` is `client.accounts.sync(id=...)`.
39
+ Every argument is keyword-only. Set `org_id` once on the client and every
40
+ org-scoped call can omit it; pass `org_id=` on an individual call to
41
+ override it there.
42
+
43
+ Every method also takes `request_options=RequestOptions(...)` for per-call
44
+ `headers` and `timeout`. Non-2xx responses raise `ApiError`, which carries
45
+ `status`, the parsed `body`, and the machine-readable `code` when the API sends
46
+ one.
47
+
48
+ ## Types
49
+
50
+ Models are `TypedDict`s, so responses are ordinary dicts and request bodies can
51
+ be written as literals:
52
+
53
+ ```python
54
+ client.resources.secret_versions.add(
55
+ plugin_id="aws",
56
+ type_id="s3_bucket",
57
+ body={"resourceId": resource_id, "value": "..."},
58
+ )
59
+ ```
60
+
61
+ The package ships `py.typed` (PEP 561), so mypy and pyright check those calls
62
+ against the spec without a stub package.
63
+
64
+ ## Scope
65
+
66
+ This package covers the published API surface only. Operations marked
67
+ `x-internal` in the spec — the admin surface, webhook receivers, desktop sync,
68
+ push registration, and the browser auth redirects — are not generated.
69
+
70
+ ## License
71
+
72
+ MIT — see [`LICENSE`](./LICENSE). Copyright (c) 2026 Infrawrench LLC.
73
+
74
+ Note that this client is more permissively licensed than the service it talks
75
+ to: the Infrawrench source is BUSL-1.1, but the generated clients are MIT
76
+ so you can link one into your own software without inheriting those terms.
77
+
78
+ Issues: <https://github.com/Infrawrench/Infrawrench/issues>
@@ -0,0 +1,67 @@
1
+ # infrawrench-sdk v0.1.1 | MIT | Copyright (c) 2026 Infrawrench LLC
2
+ # https://github.com/Infrawrench/Infrawrench
3
+ #
4
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.1.1).
5
+ #
6
+ # DO NOT EDIT. Regenerate with:
7
+ # pnpm --filter @infrawrench/web generate:sdk
8
+ #
9
+ # Internal routes are absent by construction: the generator consumes the same
10
+ # published spec that /openapi.json serves, which drops every operation
11
+ # marked x-internal.
12
+
13
+ [build-system]
14
+ requires = ["hatchling>=1.21"]
15
+ build-backend = "hatchling.build"
16
+
17
+ [project]
18
+ name = "infrawrench-sdk"
19
+ version = "0.1.1"
20
+ description = "Generated Python client for the Infrawrench API (v0.1.1)."
21
+ readme = "README.md"
22
+ requires-python = ">=3.9"
23
+ license = { text = "MIT" }
24
+ authors = [
25
+ { name = "Infrawrench LLC", email = "astrid@infrawrench.com" },
26
+ ]
27
+ maintainers = [
28
+ { name = "Astrid Gealer", email = "astrid@infrawrench.com" },
29
+ ]
30
+ keywords = [
31
+ "infrawrench",
32
+ "sdk",
33
+ "api-client",
34
+ "openapi",
35
+ "infrastructure",
36
+ "cloud",
37
+ "devops",
38
+ ]
39
+ classifiers = [
40
+ "Development Status :: 4 - Beta",
41
+ "Intended Audience :: Developers",
42
+ "License :: OSI Approved :: MIT License",
43
+ "Programming Language :: Python :: 3",
44
+ "Programming Language :: Python :: 3.9",
45
+ "Programming Language :: Python :: 3.10",
46
+ "Programming Language :: Python :: 3.11",
47
+ "Programming Language :: Python :: 3.12",
48
+ "Programming Language :: Python :: 3.13",
49
+ "Programming Language :: Python :: Implementation :: CPython",
50
+ "Topic :: Software Development :: Libraries :: Python Modules",
51
+ "Typing :: Typed",
52
+ ]
53
+
54
+ # Deliberately empty: the client speaks HTTP through urllib and JSON through
55
+ # the json module, so installing it never pulls a tree in behind it.
56
+ dependencies = []
57
+
58
+ [project.urls]
59
+ Homepage = "https://infrawrench.com/docs/team-and-billing/client-sdks"
60
+ Repository = "https://github.com/Infrawrench/Infrawrench"
61
+ Issues = "https://github.com/Infrawrench/Infrawrench/issues"
62
+
63
+ [tool.hatch.build.targets.wheel]
64
+ packages = ["src/infrawrench_sdk"]
65
+
66
+ [tool.hatch.build.targets.sdist]
67
+ include = ["src", "README.md", "LICENSE", "pyproject.toml"]