basaltic-sdk-python 0.1.1__py3-none-any.whl
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.
- basaltic/__init__.py +26 -0
- basaltic/_client.py +136 -0
- basaltic/_common.py +284 -0
- basaltic/_transport.py +196 -0
- basaltic/_version.py +3 -0
- basaltic/auth.py +231 -0
- basaltic/client.py +144 -0
- basaltic/config.py +151 -0
- basaltic/errors.py +73 -0
- basaltic/models/__init__.py +17 -0
- basaltic/models/audit.py +85 -0
- basaltic/models/billing.py +284 -0
- basaltic/models/catalog.py +35 -0
- basaltic/models/certificate.py +127 -0
- basaltic/models/compute.py +905 -0
- basaltic/models/dns.py +256 -0
- basaltic/models/iam.py +736 -0
- basaltic/models/kms.py +157 -0
- basaltic/models/loadbalancer.py +574 -0
- basaltic/models/network.py +985 -0
- basaltic/models/quota.py +30 -0
- basaltic/models/secrets.py +136 -0
- basaltic/models/storage.py +789 -0
- basaltic/models/telemetry.py +393 -0
- basaltic/models/workspace.py +734 -0
- basaltic/py.typed +0 -0
- basaltic/response.py +152 -0
- basaltic/services/__init__.py +1 -0
- basaltic/services/audit.py +211 -0
- basaltic/services/billing.py +777 -0
- basaltic/services/catalog.py +172 -0
- basaltic/services/certificate.py +395 -0
- basaltic/services/compute.py +2395 -0
- basaltic/services/dns.py +1079 -0
- basaltic/services/iam.py +3405 -0
- basaltic/services/kms.py +742 -0
- basaltic/services/loadbalancer.py +1727 -0
- basaltic/services/network.py +4691 -0
- basaltic/services/quota.py +75 -0
- basaltic/services/secrets.py +550 -0
- basaltic/services/storage.py +3059 -0
- basaltic/services/telemetry.py +1316 -0
- basaltic/services/workspace.py +3899 -0
- basaltic_sdk_python-0.1.1.dist-info/METADATA +211 -0
- basaltic_sdk_python-0.1.1.dist-info/RECORD +47 -0
- basaltic_sdk_python-0.1.1.dist-info/WHEEL +4 -0
- basaltic_sdk_python-0.1.1.dist-info/licenses/LICENSE +202 -0
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: basaltic-sdk-python
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: Official typed synchronous and asynchronous Python SDK for Basaltic
|
|
5
|
+
Project-URL: Homepage, https://basaltic.sh
|
|
6
|
+
Project-URL: Documentation, https://docs.basaltic.sh
|
|
7
|
+
Project-URL: Repository, https://github.com/basaltic-sh/sdk-python
|
|
8
|
+
License-Expression: Apache-2.0
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Keywords: asyncio,basaltic,cloud,sdk
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
16
|
+
Classifier: Typing :: Typed
|
|
17
|
+
Requires-Python: >=3.11
|
|
18
|
+
Requires-Dist: httpx<1,>=0.28.1
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
|
|
21
|
+
# Basaltic Python SDK
|
|
22
|
+
|
|
23
|
+
Typed synchronous and asynchronous clients for the Basaltic Cloud API. Python 3.11+
|
|
24
|
+
with HTTPX; covers 401 operations across 15 services. Includes typed request and
|
|
25
|
+
response dictionaries, access-key authentication, pagination, resource references,
|
|
26
|
+
and streamed uploads/downloads.
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
pip install basaltic-sdk-python
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
```python
|
|
33
|
+
from basaltic import Client
|
|
34
|
+
|
|
35
|
+
# Reads BASALTIC_ACCESS_KEY_ID, BASALTIC_SECRET_ACCESS_KEY, BASALTIC_REGION
|
|
36
|
+
# and optionally BASALTIC_ACCOUNT_ID from the environment.
|
|
37
|
+
with Client() as client:
|
|
38
|
+
for instance in client.compute.list_instances_all(query={"limit": 100}):
|
|
39
|
+
print(instance.get("id"), instance.get("name"))
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
```python
|
|
43
|
+
import asyncio
|
|
44
|
+
from basaltic import AsyncClient
|
|
45
|
+
|
|
46
|
+
async def main() -> None:
|
|
47
|
+
async with AsyncClient() as client:
|
|
48
|
+
async for instance in client.compute.list_instances_all():
|
|
49
|
+
print(instance.get("id"))
|
|
50
|
+
|
|
51
|
+
asyncio.run(main())
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Use one async client per event loop. Requests are native asyncio operations; they
|
|
55
|
+
do not run the synchronous client in a background thread. Both clients reuse HTTP
|
|
56
|
+
connections and automatically cache access tokens. Concurrent token requests share
|
|
57
|
+
one exchange; cancelling an async caller does not cancel another caller's exchange.
|
|
58
|
+
|
|
59
|
+
## Configuration
|
|
60
|
+
|
|
61
|
+
Pass configuration as keywords or as a `Config` object:
|
|
62
|
+
|
|
63
|
+
```python
|
|
64
|
+
from basaltic import Client, Config, RequestOptions
|
|
65
|
+
|
|
66
|
+
config = Config(
|
|
67
|
+
access_key_id="your-access-key-id",
|
|
68
|
+
secret_access_key="your-secret-access-key",
|
|
69
|
+
region="your-region",
|
|
70
|
+
account_id="your-account-id",
|
|
71
|
+
read_environment=False,
|
|
72
|
+
)
|
|
73
|
+
with Client(config) as client:
|
|
74
|
+
response = client.compute.get_instance(
|
|
75
|
+
"instance-id", options=RequestOptions(timeout=10, max_attempts=2)
|
|
76
|
+
)
|
|
77
|
+
print(response.data["instance"], response.request_id)
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
You may instead supply `access_token` (`BASALTIC_ACCESS_TOKEN`) or a `token_provider`
|
|
81
|
+
implementing `get_token() -> str` for `Client`, or `async def get_token() -> str` for
|
|
82
|
+
`AsyncClient`. An optional synchronous `invalidate(rejected_token)` enables one
|
|
83
|
+
refresh after a 401 response. Explicit key credentials override an ambient bearer
|
|
84
|
+
token. `anonymous=True` allows only operations that do not require authentication.
|
|
85
|
+
|
|
86
|
+
`region`, `account_id`, and `domain` use `BASALTIC_REGION`, `BASALTIC_ACCOUNT_ID`, and
|
|
87
|
+
`BASALTIC_DOMAIN` when omitted. Regional services require a region unless overridden.
|
|
88
|
+
Use `endpoints={"compute": "https://..."}` or `BASALTIC_ENDPOINT_URL_COMPUTE` for
|
|
89
|
+
service endpoints, and `token_url` for a custom OAuth endpoint. Custom endpoints
|
|
90
|
+
receive credentials: configure only trusted servers. `read_environment=False`
|
|
91
|
+
disables environment configuration. Default clients also disable HTTPX proxy and
|
|
92
|
+
certificate environment variables; inject an HTTPX client when those are needed.
|
|
93
|
+
|
|
94
|
+
`RequestOptions` can override account scope (empty string clears it), timeout,
|
|
95
|
+
attempt count, and idempotency key, or add headers such as `If-Match`. Managed
|
|
96
|
+
headers including Authorization, Cookie, Host and content type cannot be overridden.
|
|
97
|
+
SDK requests do not inherit an injected HTTPX client's default authentication,
|
|
98
|
+
cookies, headers, or redirect behavior. Injected clients remain caller-owned.
|
|
99
|
+
|
|
100
|
+
## Types and responses
|
|
101
|
+
|
|
102
|
+
Methods use snake_case. JSON dictionary keys retain the API's wire spelling.
|
|
103
|
+
Request and response types live in `basaltic.models.<service>` and are `TypedDict`
|
|
104
|
+
shapes and type aliases, not runtime model constructors. Pass ordinary dictionaries.
|
|
105
|
+
The package includes `py.typed` for mypy and other type checkers.
|
|
106
|
+
|
|
107
|
+
```python
|
|
108
|
+
from basaltic import Client
|
|
109
|
+
from basaltic.models.compute import ListInstancesQuery
|
|
110
|
+
|
|
111
|
+
query: ListInstancesQuery = {"name": "web", "limit": 20}
|
|
112
|
+
with Client() as client:
|
|
113
|
+
page = client.compute.list_instances(query=query)
|
|
114
|
+
print(page.items, page.has_more, page.marker)
|
|
115
|
+
print(page.data) # original JSON envelope, including unknown server fields
|
|
116
|
+
print(page.status_code, page.request_id, page.response.headers)
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
JSON responses are decoded and closed before return. `ApiResponse.data` preserves
|
|
120
|
+
the server envelope; it does not coerce dates, UUIDs or enum strings. Types describe
|
|
121
|
+
the reviewed API schema; they are not runtime validators. Contentless operations
|
|
122
|
+
return `None`. Methods whose successful response can be binary, including HEAD,
|
|
123
|
+
return an unread `httpx.Response` which the caller must close.
|
|
124
|
+
|
|
125
|
+
See [all API methods](https://github.com/basaltic-sh/sdk-python/blob/main/docs/api.md). Services: audit, billing, catalog, certificate,
|
|
126
|
+
compute, dns, iam, kms, loadbalancer, network, quota, secrets, storage, telemetry,
|
|
127
|
+
and workspace.
|
|
128
|
+
|
|
129
|
+
## Pagination and references
|
|
130
|
+
|
|
131
|
+
`list_*_all()` returns a lazy iterator; its async counterpart is an async iterator
|
|
132
|
+
and is not itself awaited. Filters and account scope remain unchanged between pages.
|
|
133
|
+
A missing or repeated continuation marker raises `ProtocolError` instead of silently
|
|
134
|
+
returning incomplete results.
|
|
135
|
+
|
|
136
|
+
Supported resource getters also provide `get_*_by_reference(reference, scope=...)`.
|
|
137
|
+
A UUID calls the getter directly. A CRN or name uses exact-match list filters and
|
|
138
|
+
returns an unwrapped resource. No match raises `ApiError`; multiple matches raise
|
|
139
|
+
`AmbiguousReferenceError`. Use parent arguments or `scope` to narrow a resource's
|
|
140
|
+
workspace or other parent. A failed UUID lookup does not fall back to a name lookup.
|
|
141
|
+
|
|
142
|
+
## Retries, deadlines and errors
|
|
143
|
+
|
|
144
|
+
The default is at most four attempts with exponential jitter, starting at 0.2 seconds
|
|
145
|
+
and capped at 20 seconds. GET, HEAD, OPTIONS, PUT and DELETE can retry transport errors
|
|
146
|
+
and HTTP 429/500/502/503/504. POST and PATCH require an explicit idempotency key for
|
|
147
|
+
these retries. Retry-After is honored; a wait above `max_delay` returns the error.
|
|
148
|
+
An authentication failure can refresh credentials once within the same attempt limit.
|
|
149
|
+
Streaming uploads are attempted once even with an idempotency key.
|
|
150
|
+
|
|
151
|
+
```python
|
|
152
|
+
from basaltic import ApiError, RequestOptions, new_idempotency_key
|
|
153
|
+
|
|
154
|
+
# Create once per logical mutation, and reuse if your application retries it.
|
|
155
|
+
options = RequestOptions(idempotency_key=new_idempotency_key())
|
|
156
|
+
# client.compute.create_instance(body, options=options)
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
`timeout` defaults to 30 seconds for each HTTPX connect/read/write/pool phase on
|
|
160
|
+
each attempt, including token exchange. It is not a total operation deadline.
|
|
161
|
+
Use `asyncio.timeout(seconds)` around an async call for a total deadline including
|
|
162
|
+
backoff. Async cancellation propagates without wrapping. Stream reads after return
|
|
163
|
+
are owned by the caller and can raise native HTTPX errors.
|
|
164
|
+
|
|
165
|
+
API errors expose `status_code`, `error_code`, `request_id`, `operation_id`, and
|
|
166
|
+
classification helpers such as `is_not_found()`, `is_conflict()`, `is_rate_limited()`
|
|
167
|
+
and `is_quota_exceeded()`. `AuthenticationError`, `TransportError`, and
|
|
168
|
+
`RequestTimeoutError` redact raw request objects and exception chains. API error
|
|
169
|
+
messages and response headers are server data; avoid logging sensitive application
|
|
170
|
+
payloads or response objects indiscriminately.
|
|
171
|
+
|
|
172
|
+
## Streaming and WebSockets
|
|
173
|
+
|
|
174
|
+
```python
|
|
175
|
+
with Client() as client:
|
|
176
|
+
response = client.storage.get_object("bucket", "folder/file")
|
|
177
|
+
try:
|
|
178
|
+
with open("download.bin", "wb") as output:
|
|
179
|
+
for chunk in response.iter_bytes():
|
|
180
|
+
output.write(chunk)
|
|
181
|
+
finally:
|
|
182
|
+
response.close()
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
In async code, use `await get_object(...)`, `async for ... in response.aiter_bytes()`
|
|
186
|
+
and `await response.aclose()` in `finally`. Uploads accept bytes, bytearray,
|
|
187
|
+
memoryview, or a sync/async iterable of byte chunks appropriate to the client.
|
|
188
|
+
Keep an SDK-owned client open while consuming its response streams.
|
|
189
|
+
|
|
190
|
+
WebSocket methods return `WebSocketConnection(url, headers)`; pass these to your
|
|
191
|
+
WebSocket library. They prepare the endpoint and authentication but do not connect
|
|
192
|
+
or manage the socket. Connection headers contain credentials and must not be logged.
|
|
193
|
+
|
|
194
|
+
## Releases and security
|
|
195
|
+
|
|
196
|
+
This repository contains official release snapshots. We do not accept pull requests
|
|
197
|
+
or code contributions. Packages are built from the matching GitHub release tag after
|
|
198
|
+
public checks pass, and published to PyPI through GitHub OIDC with attestations.
|
|
199
|
+
|
|
200
|
+
Report security issues privately to **security@basaltic.sh**; see [SECURITY.md](https://github.com/basaltic-sh/sdk-python/blob/main/SECURITY.md).
|
|
201
|
+
Licensed under Apache-2.0.
|
|
202
|
+
|
|
203
|
+
## Checks
|
|
204
|
+
|
|
205
|
+
```sh
|
|
206
|
+
python -m venv .venv
|
|
207
|
+
. .venv/bin/activate
|
|
208
|
+
python -m pip install -r requirements-dev.txt -e .
|
|
209
|
+
python scripts/check.py
|
|
210
|
+
python scripts/check_package.py
|
|
211
|
+
```
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
basaltic/__init__.py,sha256=_DOarOalYKxGZDb7j-IaOTUOm5qWHhmL90pS8YB32l8,1298
|
|
2
|
+
basaltic/_client.py,sha256=NS_ke6EWKCn9v1KHV8ffr3hk0vSKT0BPgeh75rhWqcg,4708
|
|
3
|
+
basaltic/_common.py,sha256=qrI-57XKQc13ZJvafA5gXn9dYp9-jjbVYXhYRUuMK2E,9860
|
|
4
|
+
basaltic/_transport.py,sha256=cktv1mnEhOkNOOsGT7vvUmvfvZmZdYhvyAyju7NO03Y,8332
|
|
5
|
+
basaltic/_version.py,sha256=39YjZLDQqjtA773sy_kaxFOIMylyXQFWF_mUN1e_8b0,51
|
|
6
|
+
basaltic/auth.py,sha256=ZD5ut4todK42pMEF-ZF2exT6GuFtjn-lGdylH3Z3ySQ,8315
|
|
7
|
+
basaltic/client.py,sha256=Y09SmqWpJFSYZcT9l1oo3o1qSKetEXJ68RLOklM19CQ,4622
|
|
8
|
+
basaltic/config.py,sha256=LNnDMqxRaUz59F1F1u7-kGrrexaLhjRt2taE09FbZT0,5464
|
|
9
|
+
basaltic/errors.py,sha256=hRgdkgXGRTtVIfVQzAdJNIqivwcVOSb_F3hZXiZ9bcE,2070
|
|
10
|
+
basaltic/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
|
+
basaltic/response.py,sha256=7AX0bYDG3k9RyKocvYNwbB0AlFs0urDbFnt_SF0m7uE,4999
|
|
12
|
+
basaltic/models/__init__.py,sha256=_uuUVyqBGMTS1tIoki7t7u7HOpIHx0kmAkaliv5AyOo,548
|
|
13
|
+
basaltic/models/audit.py,sha256=7j-ESdkwu96_R2XbfDCqVmbYS573P4WXloBKn1fHNnQ,2971
|
|
14
|
+
basaltic/models/billing.py,sha256=ghmfXQqoeeE6C6NbWQo5U6rQhsJ2WuaE7bDFuBve2e4,9851
|
|
15
|
+
basaltic/models/catalog.py,sha256=zNHZACb-S9_MQuLeAWd-p_jKkRP-OqJ_7ckaEexSSVc,1229
|
|
16
|
+
basaltic/models/certificate.py,sha256=8Xh0r-fxZKZf_KuGIiykBa7ok7ac0CW2a5s8lEQPlCQ,4480
|
|
17
|
+
basaltic/models/compute.py,sha256=KfWYa7vf-9fHdOG-3ZUY-XsyniBcwEvovAoh7aN76G0,32119
|
|
18
|
+
basaltic/models/dns.py,sha256=cVojfLVbhGE5_hJHf3eLXEJCbMd8REaQ2x-iBt5rOAc,8732
|
|
19
|
+
basaltic/models/iam.py,sha256=Xq5lF3MbKhr0F8c-liZgxFBqNWFjWl2PljAUs-2Wx9o,27426
|
|
20
|
+
basaltic/models/kms.py,sha256=Z7LXqJ110wtxD8OHqotCuqlwzQeGsnb5I4G4gGdB94E,5724
|
|
21
|
+
basaltic/models/loadbalancer.py,sha256=EJrpg1ZCBrDGUAxaftEfjQ528M9jHCy0ZT992mlFxx0,20434
|
|
22
|
+
basaltic/models/network.py,sha256=jSZ0Oi20FkZqyAsp86C4o8OOWOW6w_UNYHGvDWR83OM,35702
|
|
23
|
+
basaltic/models/quota.py,sha256=-PB3pETNQRGOiDb2sxr6eA7nofIf3S_dh8DbON2-aWg,992
|
|
24
|
+
basaltic/models/secrets.py,sha256=_sL8TMCmRb_0R75b_TeVkdVQhyJOaEZ8VL6K8SlJJnY,4631
|
|
25
|
+
basaltic/models/storage.py,sha256=RKl47ITLHG4pNcHtbFEunsKZzIxSu-q8udnfcjt4qLM,28534
|
|
26
|
+
basaltic/models/telemetry.py,sha256=7ZPWrzzyDJcSSWfTkADXtWRK2Mu9g8GeBR11yCtbccM,13953
|
|
27
|
+
basaltic/models/workspace.py,sha256=wtMC-WLsEV5am3CkPS7WRTRe_Ay_b3VmOWb64pu8YSQ,26694
|
|
28
|
+
basaltic/services/__init__.py,sha256=euiXNIZh01el-j2wG6Hw29NDfg6hK0BlQXUDaOkod_4,62
|
|
29
|
+
basaltic/services/audit.py,sha256=qK17LjOZP8tFWkOVB8bBJfZSzupGRFNIlyxIHb25lWY,6775
|
|
30
|
+
basaltic/services/billing.py,sha256=vHTuXtatJgPjPf0gm-_py2uJ6-hruSpdAzHOFXbBXPQ,24758
|
|
31
|
+
basaltic/services/catalog.py,sha256=V0wIpG5KqqEu3DZqsAQnWY_eVmwSXIb1Th9UiKylz44,4972
|
|
32
|
+
basaltic/services/certificate.py,sha256=INgW1oVrHomqz94YH8w6-6ae7wrsdKQow8x51LdMfpE,12786
|
|
33
|
+
basaltic/services/compute.py,sha256=EEy_PPXb8VEVDczSSgZn1qGuOP5k5gnVr14Gd5qtZTY,76401
|
|
34
|
+
basaltic/services/dns.py,sha256=9JKihOiKzixfZ5EYtfWs626hFkfXO3JWTmc3kwhsiVY,32571
|
|
35
|
+
basaltic/services/iam.py,sha256=sY2FZYwfcc_PCVWp2Zzs-4rfUd5uhiSskB2YJgcfXhE,109709
|
|
36
|
+
basaltic/services/kms.py,sha256=mpYP00PKXPMfeveu0wde2sm-ZutTEx98mt8AkzFAWK8,22021
|
|
37
|
+
basaltic/services/loadbalancer.py,sha256=KhQAc2FWTF5PhUnNZFK8C0QjCzaPBAWyh5mdz7D2o8Q,54850
|
|
38
|
+
basaltic/services/network.py,sha256=gbNbUHIEOMmvQk1G3ls9EXVnl0bQIr-j4O_DvFCDr0g,152645
|
|
39
|
+
basaltic/services/quota.py,sha256=jStxHg0ZKlTQGJ1Oz4KZhoJzY2dbEKEX8Moaz6L-Yvo,2059
|
|
40
|
+
basaltic/services/secrets.py,sha256=W9QOCBIIgnH9g_i46nBDWRtwp3UyE1TBJ0tUWTFp6Ic,17213
|
|
41
|
+
basaltic/services/storage.py,sha256=mj2WAPT6ELD5K34Wp2d4SAFZtOlOOvJ1Sf0cist-ezg,95012
|
|
42
|
+
basaltic/services/telemetry.py,sha256=vPBVOIr_HIVqekDOZeAoxcvcDDEbX6sZXkzPI38Q_Ow,41777
|
|
43
|
+
basaltic/services/workspace.py,sha256=86x_ymclTzvEXStJ8gFd0S_VCGeYjD2PQ0QkDg4ijW4,123641
|
|
44
|
+
basaltic_sdk_python-0.1.1.dist-info/METADATA,sha256=bQ-3AzO3EADqhVNrgSH2jiqd8rd234s-BIC8tltRLzw,9261
|
|
45
|
+
basaltic_sdk_python-0.1.1.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
|
|
46
|
+
basaltic_sdk_python-0.1.1.dist-info/licenses/LICENSE,sha256=UWjn6PoPejts2Bgdk0SJ6pB3-2l2Bgh7Fr7WENHGSs0,11339
|
|
47
|
+
basaltic_sdk_python-0.1.1.dist-info/RECORD,,
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright 2026 Basaltic
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|