pyrn 0.1.0__py3-none-win_amd64.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.
pyrn/__init__.py ADDED
@@ -0,0 +1,8 @@
1
+ """Fast Rust-powered Python/pytest TIA, CAS cache, and isolated warm execution engine."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from pyrn.entrypoint import find_pyrn_bin, main, run_native
6
+
7
+ __version__ = "0.1.0"
8
+ __all__ = ["__version__", "find_pyrn_bin", "main", "run_native"]
pyrn/__main__.py ADDED
@@ -0,0 +1,8 @@
1
+ """Module entry point for ``python -m pyrn``."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from pyrn.entrypoint import main
6
+
7
+ if __name__ == "__main__":
8
+ raise SystemExit(main())
pyrn/_bin/pyrn.exe ADDED
Binary file
pyrn/entrypoint.py ADDED
@@ -0,0 +1,65 @@
1
+ """Launch the Rust ``pyrn`` executable bundled with this zero-dependency Python wheel."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import os
6
+ import subprocess
7
+ import sys
8
+ from pathlib import Path
9
+
10
+
11
+ def find_pyrn_bin() -> Path:
12
+ """Return the path to the bundled ``pyrn`` native executable."""
13
+ import pyrn
14
+
15
+ binary_name = "pyrn.exe" if os.name == "nt" else "pyrn"
16
+ candidates: list[Path] = []
17
+ override = os.environ.get("PYRN_BIN")
18
+ if override:
19
+ candidates.append(Path(override))
20
+ for entry in getattr(pyrn, "__path__", ()):
21
+ candidates.append(Path(entry) / "_bin" / binary_name)
22
+ candidates.append(Path(__file__).resolve().parent / "_bin" / binary_name)
23
+
24
+ seen: set[Path] = set()
25
+ for candidate in candidates:
26
+ resolved = candidate.resolve()
27
+ if resolved in seen:
28
+ continue
29
+ seen.add(resolved)
30
+ if candidate.is_file():
31
+ return candidate
32
+ raise FileNotFoundError(
33
+ "pyrn installation is missing its native executable. Reinstall the pyrn platform wheel."
34
+ )
35
+
36
+
37
+ def main(argv: list[str] | None = None) -> int:
38
+ """Console entry point for the ``pyrn`` script and ``python -m pyrn``."""
39
+ args = sys.argv[1:] if argv is None else list(argv)
40
+ return _launch(args, console=argv is None)
41
+
42
+
43
+ def run_native(args: list[str]) -> int:
44
+ """Invoke the bundled ``pyrn`` executable and return its exit code."""
45
+ return _launch(list(args), console=False)
46
+
47
+
48
+ def _launch(args: list[str], *, console: bool) -> int:
49
+ try:
50
+ executable = find_pyrn_bin()
51
+ except FileNotFoundError as error:
52
+ print(str(error), file=sys.stderr)
53
+ return 2
54
+
55
+ if console and os.name == "posix":
56
+ os.execve(executable, [str(executable), *args], os.environ)
57
+ return _call(executable, args, dict(os.environ))
58
+
59
+
60
+ def _call(executable: Path, args: list[str], environment: dict[str, str]) -> int:
61
+ try:
62
+ code = subprocess.call([str(executable), *args], env=environment)
63
+ except KeyboardInterrupt:
64
+ return 130
65
+ return 128 - code if code < 0 else code
@@ -0,0 +1,169 @@
1
+ Metadata-Version: 2.5
2
+ Name: pyrn
3
+ Version: 0.1.0
4
+ Summary: Rust-powered Python/pytest Test Impact Analysis, content-addressed test caching, and isolated warm-pool execution engine
5
+ Project-URL: Homepage, https://github.com/dariuszpanas/pyrn
6
+ Project-URL: Documentation, https://dariuszpanas.github.io/pyrn/
7
+ Project-URL: Repository, https://github.com/dariuszpanas/pyrn
8
+ Project-URL: Issues, https://github.com/dariuszpanas/pyrn/issues
9
+ Project-URL: Changelog, https://dariuszpanas.github.io/pyrn/changelog.html
10
+ License-Expression: Apache-2.0
11
+ License-File: LICENSE
12
+ Keywords: pytest,python,runner,rust,test-impact-analysis,testing
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Environment :: Console
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: License :: OSI Approved :: Apache Software License
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Programming Language :: Python :: 3.14
22
+ Classifier: Programming Language :: Rust
23
+ Classifier: Topic :: Software Development :: Testing
24
+ Requires-Python: >=3.11
25
+ Description-Content-Type: text/markdown
26
+
27
+ # `pyrn`
28
+
29
+ ![pyrn terminal P logo](https://dariuszpanas.github.io/pyrn/assets/branding/pyrn_logo.png)
30
+
31
+ **Rust-powered Python/pytest Test Impact Analysis (TIA), content-addressed test caching, and isolated warm-pool execution engine** — built in pure safe Rust (`edition = "2024"`, `#![forbid(unsafe_code)]`) and packaged as both a standalone Rust CLI and a zero-dependency Python platform wheel.
32
+
33
+ ## Why `pyrn`?
34
+
35
+ Startup-only pytest wrappers barely move the needle on large Python suites, while `pytest-xdist` wastes tens of seconds on redundant worker collection, oversubscribes SMT/container CPU and memory limits, leaks shared temp paths and ports, and aborts entire runs when a worker crashes.
36
+
37
+ `pyrn` solves **every** stage of the pytest lifecycle in one cohesive Rust workspace:
38
+
39
+ 1. **[Zero-Checkout Symbol-Level Python TIA](https://dariuszpanas.github.io/pyrn/tia.html) (`crates/pyrn-core`)**:
40
+ - Pure-Rust Python AST parsing (`rustpython-parser` + `rayon`) with symbol-level diffs (`def`/`class` granularity), fixture-scoped `conftest.py` resolution, Django settings/migration/template rules, and fail-closed `FullVerified` fallback (`UnknownPathPolicy::Full`).
41
+ - Compiles cleanly with **`--no-default-features`** (zero subprocesses, zero SQLite/C FFI, zero filesystem walking) so host tools and CI services can [embed `pyrn-core`](https://dariuszpanas.github.io/pyrn/embedding.html) directly over in-memory or virtual repository trees via `TreeSource` and `plan_python_tests`.
42
+ 2. **[Role-Segregated BLAKE3 Content-Addressed Test Cache](https://dariuszpanas.github.io/pyrn/caching.html) (`CasTestCache`)**:
43
+ - Multi-process ACID SQLite WAL cache keyed by 64-hex domain-separated BLAKE3 closure digests (`pyrn.test-key.v1`), incorporating static and dynamic `os.environ` reads (`DJANGO_*`/`RAY_*` allowlist + runtime proxy) and PEP 669 `sys.monitoring` + PEP 578 audit traces.
44
+ - Strictly segregated by `SlotRole::{Agent, Verify}`: failed, skipped, errored, or tainted tests are never cached, and interactive `agent` entries never bleed into clean `verify` runs.
45
+ 3. **[Isolated Warm Execution Engine & SQLite Template Cloning](https://dariuszpanas.github.io/pyrn/execution-engine.html) (`crates/pyrn-runner`)**:
46
+ - Affinity-partitioned persistent worker pool (`--daemon`) and cold pool with short isolated sandboxes (preventing Windows `MAX_PATH` failures), `:memory:` `sqlite3.backup()` + file-backed SQLite migration template cloning, automatic crash/timeout worker respawn + remaining-item requeue, `--reruns` flake detection (`ExecVerdict::Flaky`), and built-in `--cov-sysmon` (`COVERAGE_CORE=sysmon`).
47
+ - **[Container- & SMT-aware `-w auto`](https://dariuszpanas.github.io/pyrn/resource-budgeting.html)**: computes `min(physical_cpus, available_parallelism, cgroup v2/v1 CPU quota, cpuset, memory OOM guard)` so SMT workstations and Docker/Kubernetes/GitHub Actions runners never thrash or OOMKill (`exit 137`).
48
+ 4. **Zero-Dependency Python Platform Wheel (`src/pyrn/` + `scripts/native_wheel.py`)**:
49
+ - Ships a `py3-none-<platform>` wheel with zero PyO3 and zero Python runtime dependencies, launching the bundled `pyrn(.exe)` binary directly via `os.execve` (POSIX) or `subprocess.call` (Windows).
50
+
51
+ ## Benchmark Highlights
52
+
53
+ Measured on an anonymized 12,001-test Django + Ray codebase (16-physical-core workstation, exact `12,001/12,001` nodeid parity — see the full [Benchmarks](https://dariuszpanas.github.io/pyrn/benchmarks.html) report):
54
+
55
+ - **Full-suite parallel execution (`-w auto`)**: `342.19 s` serial vs `77.87 s` `pytest-xdist -n 16` vs **`38.27 s`** cold (`8.94×`) and **`29.50 s`** steady-state warm `--daemon` (**`11.60×`** faster than serial, **`2.64×`** faster than `xdist -n 16`, `99.1%` worker efficiency).
56
+ - **SQLite migration template cloning**: reduces a migration-heavy 83-test unit suite from `32.45 s` serial to **`1.65 s`** (**`19.7×`** faster) with zero migration regressions.
57
+ - **Pure-Rust symbol-level TIA**: parses and graphs the entire repository in **~130 ms** with **100% co-change recall** (`56/56`) across 30 real Git commits while pruning hub-module fanout at `def`/`class` granularity.
58
+ - **Unified `--tia --cache`**: serves unchanged passing test closures in **`0.24 s`–`1.51 s`** (up to **`226×`** faster than full serial runs) with **zero worker spawns** on 100% cache hits, while strictly re-running tainted, failed, or env-invalidated tests.
59
+ - **Built-in `--cov-sysmon`**: leverages Python 3.12+ `COVERAGE_CORE=sysmon` with isolated per-worker coverage shards merged cleanly outside the repo tree (typically **2.4×–3.1× faster** than C-trace coverage).
60
+
61
+ ## Documentation
62
+
63
+ - [Get started](https://dariuszpanas.github.io/pyrn/getting-started.html) — build from Cargo or wheel, run `pyrn doctor`, preview a TIA plan, and start a warm daemon.
64
+ - [Assess and adopt in CI](https://dariuszpanas.github.io/pyrn/ci-adoption.html) — move from `pytest-xdist` / C-trace coverage to a staged `pyrn` rollout.
65
+ - [Recipes](https://dariuszpanas.github.io/pyrn/recipes.html) — copy-paste workflows for warm local loops, Django + SQLite, GitHub Actions, container pods, and `--cov-sysmon`.
66
+ - [Command reference](https://dariuszpanas.github.io/pyrn/commands.html) — complete flags, defaults, and exit codes for every subcommand.
67
+ - [Configuration reference](https://dariuszpanas.github.io/pyrn/configuration.html) — `.pyrn.toml`, `pyproject.toml`, and environment variables.
68
+ - [Benchmarks](https://dariuszpanas.github.io/pyrn/benchmarks.html) — methodology, full parity tables, and TIA replay results.
69
+ - [Full documentation](https://dariuszpanas.github.io/pyrn/) — TIA, caching, execution engine, resource budgeting, receipts, and `pyrn-core` embedding.
70
+
71
+ ## Quickstart
72
+
73
+ ### Build & Test (Rust)
74
+
75
+ ```sh
76
+ # 1. Verify pure-Rust zero-FFI in-memory library build
77
+ cargo check -p pyrn-core --no-default-features
78
+
79
+ # 2. Lint and run full workspace test suite
80
+ cargo clippy --workspace --all-targets -- -D warnings
81
+ cargo test --workspace --release
82
+
83
+ # 3. Build release CLI binary
84
+ cargo build --release --workspace
85
+ ```
86
+
87
+ ### Build Zero-Dependency Python Wheel
88
+
89
+ ```sh
90
+ # Reuses an existing release binary (fast) or compiles pyrn-cli from source automatically:
91
+ PYRN_PREBUILT_BINARY=target/release/pyrn uv build --wheel
92
+ ```
93
+
94
+ On Windows PowerShell:
95
+
96
+ ```powershell
97
+ $env:PYRN_PREBUILT_BINARY = "target\release\pyrn.exe"
98
+ uv build --wheel
99
+ ```
100
+
101
+ ### Everyday CLI Usage
102
+
103
+ ```sh
104
+ # Inspect host/container worker budget, Python/pytest/sys.monitoring, cache & slow history
105
+ pyrn doctor --repo .
106
+
107
+ # Pure in-memory Test Impact Analysis plan (no test execution)
108
+ pyrn plan --repo . --base HEAD --tier strict --json
109
+
110
+ # Fast full run with automatic physical-core + cgroup sizing
111
+ pyrn run --repo . -w auto
112
+
113
+ # Unified TIA + CAS cache + warm daemon run with structured receipt & KV metrics
114
+ pyrn daemon start --repo . -w auto --role agent
115
+ pyrn run --repo . --tia --base HEAD --cache --daemon --role agent --metrics-kv --receipt-out receipt.json
116
+ pyrn daemon status --repo .
117
+ pyrn daemon stop --repo .
118
+
119
+ # Customize CI key-value metrics prefix (or set PYRN_METRICS_PREFIX env var)
120
+ pyrn run --repo . --tia --base HEAD --role verify --metrics-kv --metrics-prefix CI_METRIC
121
+
122
+ # Built-in Python 3.12+ sys.monitoring coverage
123
+ pyrn run --repo . --cov-sysmon --cov-out .coverage
124
+
125
+ # Inspect or prune SQLite WAL CAS test cache
126
+ pyrn cache status --repo .
127
+ pyrn cache prune --repo . --max-age-days 30
128
+
129
+ # Read-only Git commit history TIA replay
130
+ pyrn replay-git --repo . --limit 30 --tier strict
131
+ ```
132
+
133
+ ## Configuration (`.pyrn.toml` / `pyproject.toml`)
134
+
135
+ `pyrn` automatically reads `[tool.pytest.ini_options]` and `[tool.pyrn]` from `pyproject.toml`, with optional overrides in `.pyrn.toml` (see the [Configuration reference](https://dariuszpanas.github.io/pyrn/configuration.html)):
136
+
137
+ ```toml
138
+ testpaths = ["tests"]
139
+ python_files = ["test_*.py", "*_test.py"]
140
+
141
+ [tia]
142
+ symbol_level_tia = true
143
+ conftest_policy = "smart_fixture_scoped" # or "strict_all_imports"
144
+ unknown_path_policy = "full" # fail closed on unmapped files
145
+ env_allowlist_prefixes = ["DJANGO_", "RAY_"]
146
+ extra_full_triggers = []
147
+
148
+ [runner]
149
+ worker_mem_mb = 300
150
+ pure_autouse_guards = []
151
+ ```
152
+
153
+ ## Embedding `pyrn-core` (Zero-Checkout Library API)
154
+
155
+ Downstream Rust tools can depend on `pyrn-core` with `default-features = false` (zero C/SQLite FFI, zero subprocesses, zero disk checkout) and evaluate `plan_python_tests(base_tree, candidate_tree, dynamic_traces, &PlanOptions::default())` directly over any `TreeSource` implementation. See [Embedding `pyrn-core`](https://dariuszpanas.github.io/pyrn/embedding.html).
156
+
157
+ ## Exit Codes
158
+
159
+ | Code | Meaning |
160
+ | :--- | :--- |
161
+ | `0` | All selected tests passed (or passed on rerun as `flaky`), or informational command succeeded |
162
+ | `1` | Deterministic test failure, timeout, crash (`failed` / `timed_out`), or stopped daemon status |
163
+ | `2` | Invalid CLI usage, configuration error, or operational/runtime error |
164
+
165
+ ## Project Status
166
+
167
+ `pyrn` is beta (`v0.1.0`). See the [Security model](https://dariuszpanas.github.io/pyrn/security.html), [Contributing guide](https://dariuszpanas.github.io/pyrn/contributing.html), [Troubleshooting guide](https://dariuszpanas.github.io/pyrn/troubleshooting.html), and [Changelog](https://dariuszpanas.github.io/pyrn/changelog.html).
168
+
169
+ Licensed under [Apache-2.0](https://github.com/dariuszpanas/pyrn/blob/main/LICENSE).
@@ -0,0 +1,9 @@
1
+ pyrn/__init__.py,sha256=E7uQc2cHoHp-aXIrJ4Vz1x9ExCugd-MH5T68WoJTmY8,275
2
+ pyrn/__main__.py,sha256=kOusKYXNSiG8yXnC5EfgxKzsmWcH5l2cTlojHItN3HQ,176
3
+ pyrn/entrypoint.py,sha256=pN3YqVtuiPjD9_wNwm0MhNI3hnD-xV2tOUJ39nnuiJQ,2077
4
+ pyrn/_bin/pyrn.exe,sha256=I8OFwdYuAgD7PPNT93G8rUDo_a4sqKawr3u_fKrlbMA,11008512
5
+ pyrn-0.1.0.dist-info/METADATA,sha256=gVSnBPvtlCMHNC33lbY-vW9g-x4GaUjjMtuL_EvGmH0,10587
6
+ pyrn-0.1.0.dist-info/WHEEL,sha256=lpoBGaIUIidvvdZ4qRAP61bBKYJdt4FI3WXFL50Gzyo,94
7
+ pyrn-0.1.0.dist-info/entry_points.txt,sha256=h1_TQFWQOCfR4PPUfxHN7M_VPw5-13mjTVdDvycm83E,46
8
+ pyrn-0.1.0.dist-info/licenses/LICENSE,sha256=v2IaZGZ1UpflvtNRZXzKEngbryXcU_tjIj997_eKJX8,10937
9
+ pyrn-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: false
4
+ Tag: py3-none-win_amd64
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ pyrn = pyrn.entrypoint:main
@@ -0,0 +1,195 @@
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 into 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 indirect 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 be marked as changed; and
98
+
99
+ (c) You must retain, in the Source form of any Derivative Works
100
+ that You distribute, all copyright notices, patent notices,
101
+ trademarks, and attribution notices from the Source form of
102
+ the Work, excluding those notices that do not pertain to any
103
+ part of the Work; and
104
+
105
+ (d) If the Work includes a "NOTICE" text file as part of its
106
+ distribution, then any Derivative Works that You distribute must
107
+ include a readable copy of the NOTICE file within such Derivative
108
+ Works, in at least one of the following places: within a
109
+ NOTICE text file distributed as part of the Work; within the
110
+ Source form or documentation, if provided along with the Work; or,
111
+ within a display generated by the Work, if and wherever such
112
+ third-party notices are normally displayed. The contents of the
113
+ NOTICE file are for informational purposes only and do not modify
114
+ the License. You may add Your own attribution notices within
115
+ Derivative Works that You distribute, alongside or as an addendum
116
+ to the NOTICE file, from the Work, provided that such additional
117
+ notices cannot be construed as modifying the License.
118
+
119
+ You may add Your own copyright notice to Your own modifications and
120
+ may provide additional or different license terms for use, reproduction,
121
+ and distribution of Your own Derivative Works, provided Your use,
122
+ reproduction, and distribution of the Work otherwise complies with
123
+ the License.
124
+
125
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
126
+ any Contribution intentionally submitted for inclusion in the Work
127
+ by You to the Licensor shall be intentionally submitted under the
128
+ terms and conditions of this License, without any additional terms
129
+ or conditions. Notwithstanding the above, nothing herein shall supersede
130
+ or modify the terms of any separate license agreement you may have
131
+ executed with Licensor regarding such Contributions.
132
+
133
+ 6. Trademarks. This License does not grant permission to use the trade
134
+ names, trademarks, service marks, or product names of the Licensor,
135
+ except as required for reasonable and customary use in describing the
136
+ origin of the Work and reproducing the content of the NOTICE file.
137
+
138
+ 7. Disclaimer of Warranty. Unless required by applicable law or
139
+ agreed to in writing, Licensor provides the Work (and each
140
+ Contributor provides its Contribution) on an "AS IS" BASIS,
141
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
142
+ implied, including but not limited to any warranties or conditions
143
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
144
+ PARTICULAR PURPOSE. You are solely responsible for determining the
145
+ appropriateness of using or distributing the Work and assume any
146
+ risks associated with Your own use of the Work.
147
+
148
+ 8. Limitation of Liability. In no event and under no legal theory,
149
+ whether in tort (including negligence), contract, or otherwise,
150
+ unless required by applicable law (such as deliberate and grossly
151
+ negligent acts) or agreed to in writing, shall any Contributor be
152
+ liable to You for damages, including any direct, indirect, special,
153
+ incidental, or consequential damages of any character arising as a
154
+ result of this License or out of the use or loss of use of the Work
155
+ (including but not limited to damages for loss of goodwill, work
156
+ stoppage, computer failure or malfunction, or any other commercial
157
+ damages or losses), even if such Contributor has been advised of the
158
+ possibility of such damages.
159
+
160
+ 9. Accepting Warranty or Additional Liability. While redistributing
161
+ the Work or Derivative Works thereof, You may act only on Your own
162
+ acceptance of support, warranty, or additional liability obligations
163
+ and/or rights consistent with this License. However, in accepting
164
+ such obligations, You may act only on Your own behalf and on Your
165
+ sole responsibility, not on behalf of any other Contributor, and only
166
+ if You agree to indemnify, defend, and enhance each Contributor
167
+ for any liability incurred by, or claims asserted against, such
168
+ Contributor by reason of your accepting any such warranty or
169
+ additional liability.
170
+
171
+ END OF TERMS AND CONDITIONS
172
+
173
+ APPENDIX: How to apply the Apache License to your work.
174
+
175
+ To apply the Apache License to your work, attach the following
176
+ boilerplate notice, with the fields enclosed by brackets "[]"
177
+ replaced with your own identifying information. (Don't include
178
+ the brackets!) The text should be enclosed in the appropriate
179
+ behavior for the file format. We also recommend that you include a
180
+ file or clause name and implied warranty of merchantability and
181
+ fitness for a particular purpose.
182
+
183
+ Copyright 2026 Dariusz Panas
184
+
185
+ Licensed under the Apache License, Version 2.0 (the "License");
186
+ you may not use this file except in compliance with the License.
187
+ You may obtain a copy of the License at
188
+
189
+ http://www.apache.org/licenses/LICENSE-2.0
190
+
191
+ Unless required by applicable law or agreed to in writing, software
192
+ distributed under the License is distributed on an "AS IS" BASIS,
193
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
194
+ See the License for the specific language governing permissions and
195
+ limitations under the License.