parity-check 0.1.0__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.
Files changed (104) hide show
  1. parity_check-0.1.0/.github/ISSUE_TEMPLATE/bug.yml +39 -0
  2. parity_check-0.1.0/.github/ISSUE_TEMPLATE/config.yml +5 -0
  3. parity_check-0.1.0/.github/ISSUE_TEMPLATE/feature.yml +32 -0
  4. parity_check-0.1.0/.github/SECURITY.md +9 -0
  5. parity_check-0.1.0/.github/dependabot.yml +18 -0
  6. parity_check-0.1.0/.github/pull_request_template.md +15 -0
  7. parity_check-0.1.0/.github/workflows/ci.yml +75 -0
  8. parity_check-0.1.0/.github/workflows/release.yml +72 -0
  9. parity_check-0.1.0/.github/workflows/security.yml +49 -0
  10. parity_check-0.1.0/.gitignore +16 -0
  11. parity_check-0.1.0/LICENSE +201 -0
  12. parity_check-0.1.0/PKG-INFO +285 -0
  13. parity_check-0.1.0/README.md +240 -0
  14. parity_check-0.1.0/action.yml +159 -0
  15. parity_check-0.1.0/case_studies/pyjanitor_complete/README.md +99 -0
  16. parity_check-0.1.0/case_studies/pyjanitor_complete/UPSTREAM_ISSUES.md +108 -0
  17. parity_check-0.1.0/case_studies/pyjanitor_complete/fixtures/column_order.json +5 -0
  18. parity_check-0.1.0/case_studies/pyjanitor_complete/fixtures/duplicates.json +5 -0
  19. parity_check-0.1.0/case_studies/pyjanitor_complete/fixtures/empty.arrow +0 -0
  20. parity_check-0.1.0/case_studies/pyjanitor_complete/fixtures/group_order.json +5 -0
  21. parity_check-0.1.0/case_studies/pyjanitor_complete/fixtures/index_collision.json +5 -0
  22. parity_check-0.1.0/case_studies/pyjanitor_complete/fixtures/narrow_domain.json +5 -0
  23. parity_check-0.1.0/case_studies/pyjanitor_complete/fixtures/null_keys.json +5 -0
  24. parity_check-0.1.0/case_studies/pyjanitor_complete/fixtures/partial_fill.json +5 -0
  25. parity_check-0.1.0/case_studies/pyjanitor_complete/fixtures/unsorted.json +5 -0
  26. parity_check-0.1.0/case_studies/pyjanitor_complete/parity.toml +660 -0
  27. parity_check-0.1.0/case_studies/pyjanitor_complete/pyjanitor_parity.py +156 -0
  28. parity_check-0.1.0/case_studies/pyjanitor_complete/report.json +475 -0
  29. parity_check-0.1.0/case_studies/pyjanitor_complete/report.md +48 -0
  30. parity_check-0.1.0/docs/ARCHITECTURE.md +144 -0
  31. parity_check-0.1.0/docs/CLEAN_ROOM.md +21 -0
  32. parity_check-0.1.0/docs/CONFIG_REFERENCE.md +139 -0
  33. parity_check-0.1.0/docs/CONTRIBUTING.md +38 -0
  34. parity_check-0.1.0/docs/DEVELOPMENT.md +113 -0
  35. parity_check-0.1.0/docs/FAULT_CORPUS.md +81 -0
  36. parity_check-0.1.0/docs/GITHUB_ACTION.md +71 -0
  37. parity_check-0.1.0/docs/PRIOR_ART.md +26 -0
  38. parity_check-0.1.0/docs/PYTEST.md +66 -0
  39. parity_check-0.1.0/docs/ROADMAP.md +69 -0
  40. parity_check-0.1.0/docs/SECURITY.md +78 -0
  41. parity_check-0.1.0/docs/THREAT_MODEL.md +72 -0
  42. parity_check-0.1.0/docs/USER_GUIDE.md +212 -0
  43. parity_check-0.1.0/examples/__init__.py +1 -0
  44. parity_check-0.1.0/examples/pandas_polars/README.md +31 -0
  45. parity_check-0.1.0/examples/pandas_polars/__init__.py +1 -0
  46. parity_check-0.1.0/examples/pandas_polars/corrected.py +57 -0
  47. parity_check-0.1.0/examples/pandas_polars/faults.py +127 -0
  48. parity_check-0.1.0/examples/pandas_polars/fixtures/dtype_width.parquet +0 -0
  49. parity_check-0.1.0/examples/pandas_polars/fixtures/groupby_null.parquet +0 -0
  50. parity_check-0.1.0/examples/pandas_polars/fixtures/null_join.parquet +0 -0
  51. parity_check-0.1.0/examples/pandas_polars/fixtures/stable_order.parquet +0 -0
  52. parity_check-0.1.0/examples/pandas_polars/fixtures/timezone_day.parquet +0 -0
  53. parity_check-0.1.0/examples/pandas_polars/make_fixtures.py +28 -0
  54. parity_check-0.1.0/examples/pandas_polars/parity.fixed.toml +152 -0
  55. parity_check-0.1.0/examples/pandas_polars/parity.toml +152 -0
  56. parity_check-0.1.0/pyproject.toml +112 -0
  57. parity_check-0.1.0/src/parity/__init__.py +26 -0
  58. parity_check-0.1.0/src/parity/adapters/__init__.py +32 -0
  59. parity_check-0.1.0/src/parity/adapters/arrow.py +24 -0
  60. parity_check-0.1.0/src/parity/adapters/base.py +54 -0
  61. parity_check-0.1.0/src/parity/adapters/pandas.py +60 -0
  62. parity_check-0.1.0/src/parity/adapters/polars.py +32 -0
  63. parity_check-0.1.0/src/parity/adapters/registry.py +158 -0
  64. parity_check-0.1.0/src/parity/api.py +64 -0
  65. parity_check-0.1.0/src/parity/artifacts.py +241 -0
  66. parity_check-0.1.0/src/parity/canonical.py +313 -0
  67. parity_check-0.1.0/src/parity/cli.py +195 -0
  68. parity_check-0.1.0/src/parity/comparison.py +721 -0
  69. parity_check-0.1.0/src/parity/config.py +44 -0
  70. parity_check-0.1.0/src/parity/diagnostics.py +144 -0
  71. parity_check-0.1.0/src/parity/doctor.py +69 -0
  72. parity_check-0.1.0/src/parity/engine.py +731 -0
  73. parity_check-0.1.0/src/parity/execution.py +1038 -0
  74. parity_check-0.1.0/src/parity/generation.py +440 -0
  75. parity_check-0.1.0/src/parity/models.py +249 -0
  76. parity_check-0.1.0/src/parity/performance.py +150 -0
  77. parity_check-0.1.0/src/parity/py.typed +1 -0
  78. parity_check-0.1.0/src/parity/pytest_plugin.py +139 -0
  79. parity_check-0.1.0/src/parity/reporting.py +310 -0
  80. parity_check-0.1.0/src/parity/schema.py +217 -0
  81. parity_check-0.1.0/src/parity/session_worker.py +48 -0
  82. parity_check-0.1.0/src/parity/shrinking.py +101 -0
  83. parity_check-0.1.0/src/parity/templates.py +185 -0
  84. parity_check-0.1.0/src/parity/worker.py +59 -0
  85. parity_check-0.1.0/tests/test_adapters.py +125 -0
  86. parity_check-0.1.0/tests/test_artifacts.py +107 -0
  87. parity_check-0.1.0/tests/test_case_studies.py +63 -0
  88. parity_check-0.1.0/tests/test_cli.py +150 -0
  89. parity_check-0.1.0/tests/test_comparison.py +115 -0
  90. parity_check-0.1.0/tests/test_config.py +54 -0
  91. parity_check-0.1.0/tests/test_diagnostics.py +42 -0
  92. parity_check-0.1.0/tests/test_doctor.py +7 -0
  93. parity_check-0.1.0/tests/test_engine.py +461 -0
  94. parity_check-0.1.0/tests/test_examples.py +117 -0
  95. parity_check-0.1.0/tests/test_execution.py +404 -0
  96. parity_check-0.1.0/tests/test_generation.py +126 -0
  97. parity_check-0.1.0/tests/test_models.py +78 -0
  98. parity_check-0.1.0/tests/test_performance.py +71 -0
  99. parity_check-0.1.0/tests/test_pytest_plugin.py +129 -0
  100. parity_check-0.1.0/tests/test_reporting.py +126 -0
  101. parity_check-0.1.0/tests/test_schema.py +72 -0
  102. parity_check-0.1.0/tests/test_shrinking.py +66 -0
  103. parity_check-0.1.0/tests/test_templates.py +80 -0
  104. parity_check-0.1.0/tests/test_worker.py +55 -0
@@ -0,0 +1,39 @@
1
+ name: Bug report
2
+ description: Report reproducible incorrect behaviour without sharing sensitive data
3
+ title: "bug: "
4
+ labels: [bug]
5
+ body:
6
+ - type: markdown
7
+ attributes:
8
+ value: Do not upload private source, sensitive data, credentials or unredacted artifacts.
9
+ - type: input
10
+ id: version
11
+ attributes:
12
+ label: Parity version
13
+ placeholder: Output of `parity version`
14
+ validations:
15
+ required: true
16
+ - type: textarea
17
+ id: reproduction
18
+ attributes:
19
+ label: Synthetic reproduction
20
+ description: Provide the smallest self-contained public/synthetic example.
21
+ validations:
22
+ required: true
23
+ - type: textarea
24
+ id: expected
25
+ attributes:
26
+ label: Expected behaviour
27
+ validations:
28
+ required: true
29
+ - type: textarea
30
+ id: actual
31
+ attributes:
32
+ label: Actual behaviour
33
+ validations:
34
+ required: true
35
+ - type: textarea
36
+ id: doctor
37
+ attributes:
38
+ label: Environment
39
+ description: Paste `parity doctor --json` after checking that paths are safe to share.
@@ -0,0 +1,5 @@
1
+ blank_issues_enabled: false
2
+ contact_links:
3
+ - name: Security report
4
+ url: https://github.com/leighshepperson/parity/security/advisories/new
5
+ about: Privately report a vulnerability
@@ -0,0 +1,32 @@
1
+ name: Feature proposal
2
+ description: Propose a semantic contract, adapter or integration
3
+ title: "proposal: "
4
+ labels: [enhancement]
5
+ body:
6
+ - type: textarea
7
+ id: contract
8
+ attributes:
9
+ label: Contract or workflow
10
+ description: What observable equivalence should Parity be able to test?
11
+ validations:
12
+ required: true
13
+ - type: textarea
14
+ id: failure
15
+ attributes:
16
+ label: Concrete failure example
17
+ description: Show a small synthetic old/new pair and the counterexample Parity should find.
18
+ validations:
19
+ required: true
20
+ - type: textarea
21
+ id: policy
22
+ attributes:
23
+ label: Proposed policy and false-positive controls
24
+ validations:
25
+ required: true
26
+ - type: checkboxes
27
+ id: provenance
28
+ attributes:
29
+ label: Provenance
30
+ options:
31
+ - label: This proposal contains no private source, data or documentation.
32
+ required: true
@@ -0,0 +1,9 @@
1
+ # Security policy
2
+
3
+ Please report suspected vulnerabilities through a private GitHub security advisory rather than a
4
+ public issue. Include a synthetic reproduction and impact assessment; never include credentials or
5
+ private data.
6
+
7
+ Security fixes are supported for the latest released minor version. Because Parity executes user
8
+ supplied Python, process isolation is a reliability boundary, not a hostile-code sandbox. This is
9
+ intentional and documented in `docs/SECURITY.md` and `docs/THREAT_MODEL.md`.
@@ -0,0 +1,18 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: pip
4
+ directory: /
5
+ schedule:
6
+ interval: weekly
7
+ groups:
8
+ python-runtime:
9
+ dependency-type: production
10
+ python-development:
11
+ dependency-type: development
12
+ - package-ecosystem: github-actions
13
+ directory: /
14
+ schedule:
15
+ interval: weekly
16
+ groups:
17
+ actions:
18
+ patterns: ["*"]
@@ -0,0 +1,15 @@
1
+ ## Change
2
+
3
+ Describe the observable behaviour changed and why.
4
+
5
+ ## Evidence
6
+
7
+ - [ ] Tests cover the success and failure path.
8
+ - [ ] Documentation/config examples are updated where needed.
9
+ - [ ] `ruff check .`, `ruff format --check .`, `mypy src/parity` and `pytest` pass.
10
+ - [ ] New fault cases use synthetic data and public APIs only.
11
+ - [ ] No private source, data, prompts, benchmarks or documentation is included.
12
+
13
+ ## Compatibility
14
+
15
+ List any configuration, result-model or artifact-format impact. Write `none` if there is none.
@@ -0,0 +1,75 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+
8
+ permissions:
9
+ contents: read
10
+
11
+ concurrency:
12
+ group: ci-${{ github.ref }}
13
+ cancel-in-progress: true
14
+
15
+ jobs:
16
+ quality:
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+ - uses: actions/setup-python@v5
21
+ with:
22
+ # Keep the static-analysis interpreter aligned with mypy's minimum
23
+ # supported-Python target. NumPy releases for newer interpreters may
24
+ # legitimately use syntax that cannot be parsed as Python 3.11.
25
+ python-version: "3.11"
26
+ cache: pip
27
+ - run: python -m pip install --upgrade pip
28
+ - run: python -m pip install -e ".[dev]"
29
+ - run: ruff check .
30
+ - run: ruff format --check .
31
+ - run: mypy src/parity
32
+ - run: python -m build
33
+
34
+ tests:
35
+ runs-on: ubuntu-latest
36
+ strategy:
37
+ fail-fast: false
38
+ matrix:
39
+ python-version: ["3.11", "3.12", "3.13", "3.14"]
40
+ steps:
41
+ - uses: actions/checkout@v4
42
+ - uses: actions/setup-python@v5
43
+ with:
44
+ python-version: ${{ matrix.python-version }}
45
+ cache: pip
46
+ - run: python -m pip install --upgrade pip
47
+ - run: python -m pip install -e ".[test]"
48
+ # Use the source path so pytest's installed Parity plugin cannot make the
49
+ # package appear "imported before measurement" during plugin discovery.
50
+ - run: pytest --cov=src/parity --cov-report=term-missing --cov-report=xml
51
+ - name: Smoke-test generated project
52
+ run: |
53
+ temporary="$(mktemp -d)"
54
+ cd "$temporary"
55
+ parity init
56
+ parity doctor
57
+ parity check --no-performance --max-examples 20
58
+
59
+ action:
60
+ runs-on: ubuntu-latest
61
+ steps:
62
+ - uses: actions/checkout@v4
63
+ - uses: actions/setup-python@v5
64
+ with:
65
+ python-version: "3.12"
66
+ - run: python -m pip install -e .
67
+ - name: Generate action fixture
68
+ run: parity init action-smoke/parity.toml
69
+ - name: Run local composite action
70
+ uses: ./
71
+ with:
72
+ config: action-smoke/parity.toml
73
+ max-examples: "20"
74
+ performance: "false"
75
+ artifact-name: parity-action-smoke
@@ -0,0 +1,72 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags: ["v*.*.*"]
6
+
7
+ permissions:
8
+ contents: read
9
+
10
+ jobs:
11
+ build:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+ - uses: actions/setup-python@v5
16
+ with:
17
+ python-version: "3.11"
18
+ - name: Verify tag matches package version
19
+ env:
20
+ RELEASE_TAG: ${{ github.ref_name }}
21
+ run: |
22
+ python - <<'PY'
23
+ import os
24
+ import tomllib
25
+ from pathlib import Path
26
+
27
+ package_version = tomllib.loads(Path("pyproject.toml").read_text(encoding="utf-8"))["project"]["version"]
28
+ expected_tag = f"v{package_version}"
29
+ actual_tag = os.environ["RELEASE_TAG"]
30
+ if actual_tag != expected_tag:
31
+ raise SystemExit(f"release tag {actual_tag!r} must equal {expected_tag!r}")
32
+ PY
33
+ - run: python -m pip install --upgrade pip
34
+ - run: python -m pip install -e ".[dev]" twine
35
+ - run: ruff check .
36
+ - run: ruff format --check .
37
+ - run: mypy src/parity
38
+ - run: pytest --cov=src/parity --cov-report=term-missing
39
+ - run: python -m build
40
+ - name: Smoke-test built wheel
41
+ env:
42
+ RELEASE_TAG: ${{ github.ref_name }}
43
+ run: |
44
+ python -m pip install --force-reinstall --no-deps dist/*.whl
45
+ installed_version="$(parity version)"
46
+ test "$RELEASE_TAG" = "v$installed_version"
47
+ - run: twine check dist/*
48
+ - uses: actions/upload-artifact@v4
49
+ with:
50
+ name: distributions
51
+ path: dist/
52
+ if-no-files-found: error
53
+
54
+ publish:
55
+ needs: build
56
+ runs-on: ubuntu-latest
57
+ environment:
58
+ name: pypi
59
+ url: https://pypi.org/project/parity-check/
60
+ permissions:
61
+ id-token: write
62
+ contents: read
63
+ attestations: write
64
+ steps:
65
+ - uses: actions/download-artifact@v4
66
+ with:
67
+ name: distributions
68
+ path: dist/
69
+ - uses: actions/attest-build-provenance@v2
70
+ with:
71
+ subject-path: dist/*
72
+ - uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,49 @@
1
+ name: Security
2
+
3
+ on:
4
+ pull_request:
5
+ push:
6
+ branches: [main]
7
+ schedule:
8
+ - cron: "17 5 * * 1"
9
+ workflow_dispatch:
10
+
11
+ permissions:
12
+ contents: read
13
+
14
+ jobs:
15
+ dependencies:
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+ - uses: actions/setup-python@v5
20
+ with:
21
+ python-version: "3.12"
22
+ cache: pip
23
+ - run: python -m pip install --upgrade pip
24
+ - run: python -m pip install . pip-audit
25
+ - run: pip-audit
26
+
27
+ codeql:
28
+ if: github.event.repository.visibility == 'public' || vars.ENABLE_GHAS == 'true'
29
+ runs-on: ubuntu-latest
30
+ permissions:
31
+ contents: read
32
+ security-events: write
33
+ steps:
34
+ - uses: actions/checkout@v4
35
+ - uses: github/codeql-action/init@v3
36
+ with:
37
+ languages: python
38
+ - uses: github/codeql-action/analyze@v3
39
+
40
+ dependency-review:
41
+ if: >-
42
+ github.event_name == 'pull_request' &&
43
+ (github.event.repository.visibility == 'public' || vars.ENABLE_GHAS == 'true')
44
+ runs-on: ubuntu-latest
45
+ permissions:
46
+ contents: read
47
+ steps:
48
+ - uses: actions/checkout@v4
49
+ - uses: actions/dependency-review-action@v4
@@ -0,0 +1,16 @@
1
+ .coverage
2
+ coverage.xml
3
+ htmlcov/
4
+ coverage.xml
5
+ .hypothesis/
6
+ .mypy_cache/
7
+ .parity/
8
+ .parity-pyjanitor-final/
9
+ .pytest_cache/
10
+ .ruff_cache/
11
+ .venv/
12
+ __pycache__/
13
+ build/
14
+ dist/
15
+ *.egg-info/
16
+ *.py[cod]
@@ -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 2026 Leigh Shepperson
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.