noderings 0.1.0__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.
noderings/py.typed ADDED
File without changes
@@ -0,0 +1,211 @@
1
+ Metadata-Version: 2.5
2
+ Name: noderings
3
+ Version: 0.1.0
4
+ Summary: The official Python SDK for the NodeRings API: virtual machines, DNS, firewalls, snapshots, backups, the marketplace and more.
5
+ Project-URL: Homepage, https://noderings.com
6
+ Project-URL: Documentation, https://github.com/noderings/noderings-python#readme
7
+ Project-URL: Repository, https://github.com/noderings/noderings-python
8
+ Project-URL: Issues, https://github.com/noderings/noderings-python/issues
9
+ Project-URL: Changelog, https://github.com/noderings/noderings-python/blob/main/CHANGELOG.md
10
+ Author-email: NodeRings <partners@noderings.com>
11
+ License-Expression: Apache-2.0
12
+ License-File: LICENSE
13
+ Keywords: api,cloud,dns,noderings,sdk,virtual-machines,vps
14
+ Classifier: Development Status :: 4 - Beta
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3 :: Only
19
+ Classifier: Programming Language :: Python :: 3.10
20
+ Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.12
22
+ Classifier: Programming Language :: Python :: 3.13
23
+ Classifier: Programming Language :: Python :: 3.14
24
+ Classifier: Topic :: Internet
25
+ Classifier: Topic :: System :: Systems Administration
26
+ Classifier: Typing :: Typed
27
+ Requires-Python: >=3.10
28
+ Requires-Dist: httpx<1,>=0.27
29
+ Requires-Dist: pydantic<3,>=2.7
30
+ Requires-Dist: typing-extensions>=4.7
31
+ Description-Content-Type: text/markdown
32
+
33
+ # noderings-python
34
+
35
+ [![ci](https://github.com/noderings/noderings-python/actions/workflows/ci.yml/badge.svg)](https://github.com/noderings/noderings-python/actions/workflows/ci.yml)
36
+ [![live](https://github.com/noderings/noderings-python/actions/workflows/live.yml/badge.svg)](https://github.com/noderings/noderings-python/actions/workflows/live.yml)
37
+ [![PyPI](https://img.shields.io/pypi/v/noderings)](https://pypi.org/project/noderings/)
38
+ [![Python versions](https://img.shields.io/pypi/pyversions/noderings)](https://pypi.org/project/noderings/)
39
+ [![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/noderings/noderings-python/badge)](https://scorecard.dev/viewer/?uri=github.com/noderings/noderings-python)
40
+ [![License: Apache-2.0](https://img.shields.io/badge/license-Apache--2.0-blue)](LICENSE)
41
+
42
+ The official Python SDK for the [NodeRings](https://noderings.com) API. It covers the whole
43
+ public API: virtual machines, DNS, firewalls, snapshots and backups, game servers, IP address
44
+ management, the marketplace, billing, access control, support tickets, and the provider side for
45
+ hosts who sell on NodeRings. That is 485 operations in 69 services, all typed, with a sync and an
46
+ asyncio client.
47
+
48
+ ```sh
49
+ pip install noderings
50
+ ```
51
+
52
+ Requires Python 3.10 or later. It depends on [httpx](https://www.python-httpx.org) and
53
+ [pydantic](https://docs.pydantic.dev) 2.
54
+
55
+ ## Quick start
56
+
57
+ ```python
58
+ from noderings import NodeRings
59
+ from noderings.models import Distro, DNSRecord, OperationStatus
60
+
61
+ client = NodeRings() # reads NODERINGS_TOKEN
62
+
63
+ # Every virtual machine, page by page.
64
+ for vm in client.virtual_machine.list_virtual_machines_all():
65
+ print(vm.hostname, vm.operation_status, vm.ipv4)
66
+
67
+ # Order a server and wait until it runs.
68
+ created = client.virtual_machine.create_virtual_machine(
69
+ hostname="web-1",
70
+ plan_id=plan_id, # from client.marketplace.list_providers(...)
71
+ region_id=region_id,
72
+ distro=Distro.UBUNTU_26_04,
73
+ ssh_key_ids=[ssh_key_id],
74
+ )
75
+ vm = client.wait_for_virtual_machine_status(created.virtual_machine.id, OperationStatus.STARTED)
76
+
77
+ # Give it a DNS name.
78
+ client.dns_record.upsert_dns_record(
79
+ zone_id, record=DNSRecord(name="web-1", type="A", ttl=300, rdata=[vm.ipv4])
80
+ )
81
+ ```
82
+
83
+ The same with asyncio:
84
+
85
+ ```python
86
+ from noderings import AsyncNodeRings
87
+
88
+ async with AsyncNodeRings() as client:
89
+ async for vm in client.virtual_machine.list_virtual_machines_all():
90
+ print(vm.hostname)
91
+ ```
92
+
93
+ [`examples/quickstart.py`](examples/quickstart.py) is a complete program.
94
+
95
+ ## Authentication
96
+
97
+ Create a service account in the NodeRings console under **Organization → Access Control →
98
+ Service accounts**, give it the permissions your program needs, and pass its token to the
99
+ client, or set `NODERINGS_TOKEN`. Keep the token out of source code.
100
+
101
+ | Argument | Environment variable | Use |
102
+ |---|---|---|
103
+ | `token` | `NODERINGS_TOKEN` | The service account token. Required. |
104
+ | `organization_id` | `NODERINGS_ORGANIZATION_ID` | Act in another organization the token can access (the `X-Organization-ID` header). By default the token's own organization is used. |
105
+ | `base_url` | `NODERINGS_BASE_URL` | Another API endpoint. The default is `https://api.noderings.com`. |
106
+ | `timeout` | | Seconds per request, or an `httpx.Timeout`. Default 60. Every method also takes `timeout=`. |
107
+ | `max_retries`, `min_backoff`, `max_backoff` | | Retry count and backoff in seconds (default 3, 0.5, 10). |
108
+ | `user_agent` | | Add your product to the User-Agent, for example `"my-app/1.2"`. |
109
+ | `http_client` | | Your own `httpx.Client` (or `httpx.AsyncClient`) for proxies or custom TLS. |
110
+
111
+ Use the client as a context manager, or call `close()`, to release its connections. The logger
112
+ `noderings` writes one debug line per request; tokens and bodies are never logged.
113
+
114
+ A few user-account operations (sign-in, MFA, linked identities, the OAuth authorize step) only
115
+ work with a signed-in user's session, not with a service account token.
116
+
117
+ ## Services
118
+
119
+ Every area of the API is an attribute of the client, and every method is one API operation, named
120
+ as in the [API description](https://api.noderings.com/v1/openapi.json) in snake_case.
121
+
122
+ | Area | Attributes |
123
+ |---|---|
124
+ | Compute | `virtual_machine` (create, start, stop, restart, reinstall, delete, tags, firewall, backups, extra IPs, console), `snapshot`, `backup`, `vm_template`, `cloud_init_user_data`, `cloud_init_template`, `instant_app`, `metadata` (distro catalog) |
125
+ | Game servers | `game_server` (lifecycle, files, databases, backups, schedules, allocations), `game_server_template` |
126
+ | DNS | `dns_zone`, `dns_record`, `dnssec`, `domain` |
127
+ | Network | `firewall` (rulesets, rules, address groups), `ipam` |
128
+ | Marketplace | `marketplace` (regions, plan codes, offers, plans), `region`, `plan`, `client_provider_review` |
129
+ | Billing | `subscription`, `addon`, `invoice`, `payment`, `payment_method`, `refund`, `credit`, `coupon`, `usage_report`, `exchange_rate` |
130
+ | Organization and access | `organization`, `user`, `service_account`, `group`, `role`, `permission`, `invite`, `secret`, `environment_variable`, `oauth2` |
131
+ | Monitoring | `monitoring`, `business_monitoring`, `metric`, `metrics_credential`, `client_dashboard` |
132
+ | Support | `ticket`, `chat`, `roadmap` |
133
+ | Providers (hosts selling on NodeRings) | `provider_plan`, `provider_storefront`, `provider_customer`, `provider_dashboard`, `provider_dashboard_plans_tab`, `provider_review`, `provider_network`, `provider_connect`, `provider_onboarding`, `provider_ticket_notification`, `payout_configuration`, `payout_invoice`, `manual_payout`, `live_validation`, `preflight`, `platform`, `node`, `node_placement`, `agent`, `hook_script` |
134
+
135
+ For an operation the SDK does not have yet, `client.request("GET", "/v1/...", query=..., body=...)`
136
+ sends a request with the same authentication, retries and error handling and returns the JSON.
137
+
138
+ ## How it works
139
+
140
+ **Arguments.** Path parameters are positional; query parameters and the fields of the request
141
+ body are keyword arguments, so your editor completes them. Only arguments you pass are sent, so
142
+ `False` and `0` are sent and `None` is not. Nested objects can be models or plain dicts (with
143
+ snake_case or camelCase keys). `extra_body=` and `extra_query=` add fields the SDK does not know
144
+ yet.
145
+
146
+ **Models.** Every response is a pydantic model in `noderings.models` (also importable from
147
+ `noderings`), with snake_case attributes and the API's camelCase names as aliases. Missing fields
148
+ have their zero value (`""`, `0`, `False`, `[]`), as in the API's own JSON; nested objects,
149
+ timestamps and enums are `None` when missing. 64-bit numbers, which the API sends as strings,
150
+ are `int`; timestamps are `datetime`. `model.to_dict()` gives the API's JSON back.
151
+
152
+ **Forward compatible.** Enums are `str` subclasses (`OperationStatus.STARTED ==
153
+ "OPERATION_STATUS_STARTED"`), and a value this SDK version does not know is kept as a string
154
+ instead of failing. Fields the API adds later are kept in `model.model_extra`.
155
+
156
+ **Paging.** List operations that take `page` and `page_size` have an `..._all` variant that
157
+ yields every result (an async iterator on `AsyncNodeRings`). It reads 100 rows per page and stops
158
+ when you stop iterating.
159
+
160
+ **Errors.** API errors raise `noderings.APIError` subclasses by HTTP status: `BadRequestError`,
161
+ `AuthenticationError`, `PermissionDeniedError`, `NotFoundError`, `ConflictError`,
162
+ `RateLimitError`, `QuotaExceededError` (a plan limit such as the number of servers, with
163
+ `.reason` like `VM_LIMIT_REACHED`) and `InternalServerError`. Each has `.status_code`, `.code`
164
+ (the API's status code), `.message`, `.details` and `.is_busy` (another operation on the
165
+ resource is still running; try again later). Network failures raise `APIConnectionError` and
166
+ `APITimeoutError`.
167
+
168
+ **Retries.** A request is retried when the API rate-limits it (HTTP 429, unless a plan quota is
169
+ used up, honoring `Retry-After`), and on connection errors and HTTP 502, 503 and 504 when it is
170
+ safe to repeat: reads, `PUT`, `DELETE`, and creates that carry an idempotency key.
171
+
172
+ **Idempotency.** Creates that take an idempotency key (virtual machines, game servers) get a new
173
+ UUID automatically, so a retry never orders a second server. Pass `idempotency_key=` yourself to
174
+ retry a create safely after your program restarts.
175
+
176
+ **Waiting.** `wait_for_virtual_machine_status`, `wait_for_virtual_machine_deleted` and the
177
+ general `wait_for_virtual_machine(id, until=...)` poll until a condition holds, with `interval`
178
+ and `timeout` in seconds. They raise `WaitTimeoutError` with the last state read.
179
+
180
+ ## Testing
181
+
182
+ | Suite | What it checks |
183
+ |---|---|
184
+ | `pytest` | Calls every one of the 485 generated methods, sync and async, against a fake API and checks the HTTP method, the path and its escaping, every query parameter's name, every body field's name and the auth headers against the API description. Also covers retries, `Retry-After`, errors, idempotency keys, paging, waiting, nulls, unknown enum values, and 64-bit and bytes encoding. |
185
+ | `pytest -m live` | Against the real API: every read that needs no ID, checked for fields the description lacks; SSH keys, a DNS zone with records, firewall rulesets and rules, and cloud-init data created and deleted; async reads. With `NODERINGS_TEST_BILLED=1`, a virtual machine is created, started, stopped, started, restarted, tagged, snapshotted, given a firewall and deleted. |
186
+
187
+ The live suite runs nightly in CI. See [CONTRIBUTING.md](CONTRIBUTING.md).
188
+
189
+ ## Versioning
190
+
191
+ The SDK is generated from [`api/openapi.json`](api/openapi.json) by
192
+ [`tools/generate.py`](tools/generate.py). A weekly job fetches the published description and opens
193
+ a pull request when it changed. Releases follow [semantic versioning](https://semver.org); while
194
+ the version is 0.x, a minor release can rename a field when the API itself renames it, and
195
+ [CHANGELOG.md](CHANGELOG.md) says so. [RELEASING.md](RELEASING.md) describes how a release is published.
196
+
197
+ Not included: the payment-provider webhook endpoint (it receives calls, it does not make them)
198
+ and NodeRings staff-only enforcement endpoints.
199
+
200
+ ## Related
201
+
202
+ [Go SDK](https://github.com/noderings/noderings-go) ·
203
+ [Terraform provider](https://github.com/noderings/terraform-provider-noderings) ·
204
+ [Pulumi](https://github.com/noderings/pulumi-noderings) ·
205
+ [Ansible](https://github.com/noderings/ansible-collection-noderings) ·
206
+ [Apache Libcloud driver](https://github.com/noderings/libcloud-noderings) ·
207
+ [Salt extension](https://github.com/noderings/saltext-noderings)
208
+
209
+ ## License
210
+
211
+ [Apache 2.0](LICENSE)
@@ -0,0 +1,13 @@
1
+ noderings/__init__.py,sha256=UOWm7eQRUoi0y1YS3YK4OZ45GsKWa6pcxjaClbmPUzc,1576
2
+ noderings/_base.py,sha256=138PExa1CcMJYolk3yPE6JACyhVsB4U3jWRR-Jtrm1g,13972
3
+ noderings/_client.py,sha256=7sdlBZqSl3rPh2CduR8nPU-cVxQORExgaqopBbI04DE,8387
4
+ noderings/_errors.py,sha256=746V36t8YCPxlupVHtWVKrIq2KdGzCr17SGkbzTzJBk,5607
5
+ noderings/_services.py,sha256=Ms9OjiLh5TenXwCKVWyWXBtLMGcFZG1iIhaJ1lsL94w,1019292
6
+ noderings/_types.py,sha256=p-VU4_yfBZBsv52HhM7kh4f_ov2vym4b2uMB_5sj-x4,2853
7
+ noderings/_version.py,sha256=kUR5RAFc7HCeiqdlX36dZOHkUI5wI6V_43RpEcD8b-0,22
8
+ noderings/models.py,sha256=b8fQoKPwmYo0UxtJW2AdzLhkhE-v8xoQoqvA4k7fsk8,389418
9
+ noderings/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
+ noderings-0.1.0.dist-info/METADATA,sha256=aAR--Tomfv6boASfu1VC93KeK5D6U_HGtlQfAB_EGds,12012
11
+ noderings-0.1.0.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
12
+ noderings-0.1.0.dist-info/licenses/LICENSE,sha256=KIwdc2t8YYV8UQkIEOksqgFneUEO5BpwUqhmKYSTR9o,11337
13
+ noderings-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.33.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2023 jeanluc
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.