agtmls-scorecard 0.0.3__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 (40) hide show
  1. agtmls_scorecard-0.0.3/.github/ISSUE_TEMPLATE/false-positive.md +23 -0
  2. agtmls_scorecard-0.0.3/.github/ISSUE_TEMPLATE/unverified-criterion.md +19 -0
  3. agtmls_scorecard-0.0.3/.github/PULL_REQUEST_TEMPLATE.md +13 -0
  4. agtmls_scorecard-0.0.3/.github/dependabot.yml +9 -0
  5. agtmls_scorecard-0.0.3/.github/workflows/ci.yml +96 -0
  6. agtmls_scorecard-0.0.3/.github/workflows/release.yml +71 -0
  7. agtmls_scorecard-0.0.3/.gitignore +6 -0
  8. agtmls_scorecard-0.0.3/.pre-commit-config.yaml +16 -0
  9. agtmls_scorecard-0.0.3/CHANGELOG.md +60 -0
  10. agtmls_scorecard-0.0.3/CITATION.cff +11 -0
  11. agtmls_scorecard-0.0.3/CODE_OF_CONDUCT.md +32 -0
  12. agtmls_scorecard-0.0.3/CONTRIBUTING.md +55 -0
  13. agtmls_scorecard-0.0.3/KEYS.asc +22 -0
  14. agtmls_scorecard-0.0.3/LICENSE-APACHE +190 -0
  15. agtmls_scorecard-0.0.3/LICENSE-MIT +21 -0
  16. agtmls_scorecard-0.0.3/PKG-INFO +118 -0
  17. agtmls_scorecard-0.0.3/README.md +100 -0
  18. agtmls_scorecard-0.0.3/ROADMAP.md +25 -0
  19. agtmls_scorecard-0.0.3/SECURITY.md +45 -0
  20. agtmls_scorecard-0.0.3/SUPPORT.md +11 -0
  21. agtmls_scorecard-0.0.3/docs/adr/0001-unverified-is-not-a-pass.md +71 -0
  22. agtmls_scorecard-0.0.3/pyproject.toml +35 -0
  23. agtmls_scorecard-0.0.3/src/agtmls_scorecard/__init__.py +5 -0
  24. agtmls_scorecard-0.0.3/src/agtmls_scorecard/__main__.py +10 -0
  25. agtmls_scorecard-0.0.3/src/agtmls_scorecard/checks/__init__.py +68 -0
  26. agtmls_scorecard-0.0.3/src/agtmls_scorecard/checks/correctness.py +108 -0
  27. agtmls_scorecard-0.0.3/src/agtmls_scorecard/checks/documentation.py +110 -0
  28. agtmls_scorecard-0.0.3/src/agtmls_scorecard/checks/dx.py +224 -0
  29. agtmls_scorecard-0.0.3/src/agtmls_scorecard/checks/governance.py +88 -0
  30. agtmls_scorecard-0.0.3/src/agtmls_scorecard/checks/interoperability.py +227 -0
  31. agtmls_scorecard-0.0.3/src/agtmls_scorecard/checks/maintainability.py +158 -0
  32. agtmls_scorecard-0.0.3/src/agtmls_scorecard/checks/observability.py +204 -0
  33. agtmls_scorecard-0.0.3/src/agtmls_scorecard/checks/performance.py +322 -0
  34. agtmls_scorecard-0.0.3/src/agtmls_scorecard/checks/release.py +132 -0
  35. agtmls_scorecard-0.0.3/src/agtmls_scorecard/checks/security.py +198 -0
  36. agtmls_scorecard-0.0.3/src/agtmls_scorecard/cli.py +119 -0
  37. agtmls_scorecard-0.0.3/src/agtmls_scorecard/model.py +174 -0
  38. agtmls_scorecard-0.0.3/src/agtmls_scorecard/repo.py +177 -0
  39. agtmls_scorecard-0.0.3/tests/test_scorecard.py +431 -0
  40. agtmls_scorecard-0.0.3/tests/test_scorecard_rubric.py +192 -0
@@ -0,0 +1,23 @@
1
+ ---
2
+ name: False positive
3
+ about: A criterion was marked FAIL when it should pass
4
+ labels: false-positive
5
+ ---
6
+
7
+ **Criterion** (e.g. `5.5`):
8
+
9
+ **What the tool reported:**
10
+
11
+ ```
12
+ paste the FAIL line and its detail
13
+ ```
14
+
15
+ **Why it should pass:**
16
+
17
+ **Smallest repository shape that reproduces it:**
18
+
19
+ <!--
20
+ False positives matter more than missed findings here. A scorecard that
21
+ flags correct work gets switched off, and a switched-off scorecard scores
22
+ nothing while looking like it scores everything.
23
+ -->
@@ -0,0 +1,19 @@
1
+ ---
2
+ name: Implement an unverified criterion
3
+ about: A criterion currently reported as `unverified` that could be checked
4
+ labels: coverage
5
+ ---
6
+
7
+ **Criterion** (e.g. `3.2`):
8
+
9
+ **Current reason it is unverified:**
10
+
11
+ **How it could be checked, mechanically:**
12
+
13
+ **What a false positive would look like:**
14
+
15
+ <!--
16
+ Coverage is the number that keeps the score honest, so raising it is the
17
+ most valuable contribution here -- provided the new check is binary and its
18
+ failure mode is understood.
19
+ -->
@@ -0,0 +1,13 @@
1
+ ## What this changes
2
+
3
+ ## If it adds or changes a check
4
+
5
+ - [ ] The criterion is **binary**: it passes or it fails, with no judgement call
6
+ - [ ] A test asserts it **fires** on a violating fixture
7
+ - [ ] A test asserts it **does not fire** on a correct one
8
+ - [ ] `unverified` carries a reason saying *why* it cannot be checked
9
+
10
+ ## Checks
11
+
12
+ - [ ] `python3 -m unittest discover -s tests`
13
+ - [ ] `agtmls-scorecard .` — this repository still scores at or above its baseline
@@ -0,0 +1,9 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: github-actions
4
+ directory: "/"
5
+ schedule:
6
+ interval: weekly
7
+ groups:
8
+ actions:
9
+ patterns: ["*"]
@@ -0,0 +1,96 @@
1
+ # SPDX-FileCopyrightText: 2026 Sebastien Rousseau
2
+ # SPDX-License-Identifier: Apache-2.0 OR MIT
3
+ name: ci
4
+
5
+ on:
6
+ push:
7
+ branches: [main]
8
+ pull_request:
9
+ workflow_dispatch:
10
+
11
+ permissions:
12
+ contents: read
13
+
14
+ concurrency:
15
+ group: ci-${{ github.ref }}
16
+ cancel-in-progress: true
17
+
18
+ jobs:
19
+ test:
20
+ name: test (${{ matrix.python-version }})
21
+ runs-on: ubuntu-latest
22
+ strategy:
23
+ fail-fast: false
24
+ matrix:
25
+ python-version: ["3.10", "3.14"]
26
+ steps:
27
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
28
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
29
+ with:
30
+ python-version: ${{ matrix.python-version }}
31
+ - run: python3 -m unittest discover -s tests -v
32
+
33
+ test-all:
34
+ # Branch protection requires this check by name. It stands for every
35
+ # leg of the test matrix, so adding or dropping a version never
36
+ # renames a required check.
37
+ name: test (all)
38
+ if: always()
39
+ needs: test
40
+ runs-on: ubuntu-latest
41
+ timeout-minutes: 5
42
+ permissions: {}
43
+ steps:
44
+ - name: Every leg of the matrix passed
45
+ env:
46
+ RESULT: ${{ needs.test.result }}
47
+ run: test "$RESULT" = success
48
+
49
+ self-score:
50
+ name: scores itself
51
+ runs-on: ubuntu-latest
52
+ steps:
53
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
54
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
55
+ with:
56
+ python-version: "3.12"
57
+ # A scorecard that cannot pass its own rubric is a scorecard nobody
58
+ # should take advice from. The floor is deliberately below 10: the three
59
+ # failures it still reports on itself are real, and hiding them by
60
+ # lowering the bar to zero would be the exact dishonesty this tool exists
61
+ # to remove.
62
+ - name: Score this repository
63
+ run: |
64
+ PYTHONPATH=src python3 -m agtmls_scorecard . --fail-under 8.0 --min-coverage 0.35
65
+
66
+ signatures:
67
+ name: commits are signed
68
+ runs-on: ubuntu-latest
69
+ if: github.event_name == 'pull_request'
70
+ steps:
71
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
72
+ with:
73
+ fetch-depth: 0
74
+ - name: Verify
75
+ run: |
76
+ git config gpg.ssh.allowedSignersFile KEYS.asc
77
+ unsigned=0
78
+ # --no-merges: on a pull_request event HEAD is the synthetic merge
79
+ # commit GitHub creates, which no contributor signs.
80
+ for commit in $(git rev-list --no-merges origin/${{ github.base_ref }}..HEAD); do
81
+ author=$(git log -1 --format='%an' "$commit")
82
+ # A bot's commits are signed by GitHub's key, not by a maintainer
83
+ # key in KEYS.asc, so they verify as E here. That is a different
84
+ # trust path -- authenticated by the forge, not by us -- and this
85
+ # gate governs contributor commits. Excluding them is deliberate;
86
+ # a human commit pushed to a bot's branch is still checked.
87
+ case "$author" in
88
+ *"[bot]") echo "skipping bot commit $commit ($author)"; continue ;;
89
+ esac
90
+ status=$(git log -1 --format='%G?' "$commit")
91
+ if [ "$status" != "G" ] && [ "$status" != "U" ]; then
92
+ echo "::error::unsigned or unverifiable commit $commit (%G? = $status)"
93
+ unsigned=1
94
+ fi
95
+ done
96
+ test "$unsigned" -eq 0
@@ -0,0 +1,71 @@
1
+ # SPDX-FileCopyrightText: 2026 Sebastien Rousseau
2
+ # SPDX-License-Identifier: Apache-2.0 OR MIT
3
+ name: release
4
+
5
+ on:
6
+ push:
7
+ tags: ["v0.0.*"]
8
+ workflow_dispatch:
9
+ inputs:
10
+ dry_run:
11
+ description: "Build and validate without publishing"
12
+ type: boolean
13
+ default: true
14
+
15
+ permissions:
16
+ contents: read
17
+
18
+ jobs:
19
+ verify:
20
+ name: verify before publishing
21
+ runs-on: ubuntu-latest
22
+ permissions:
23
+ contents: read
24
+ # Sigstore-signs the wheel against this workflow's identity.
25
+ attestations: write
26
+ id-token: write
27
+ steps:
28
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
29
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
30
+ with:
31
+ python-version: "3.12"
32
+ - run: python3 -m unittest discover -s tests
33
+ - name: Tag must match pyproject.toml
34
+ if: startsWith(github.ref, 'refs/tags/v')
35
+ run: |
36
+ VERSION=$(python3 -c "import re;print(re.search(r'^version = \"(.*?)\"', open('pyproject.toml').read(), re.M).group(1))")
37
+ test "v${VERSION}" = "${GITHUB_REF_NAME}" || {
38
+ echo "::error::tag ${GITHUB_REF_NAME} does not match pyproject.toml ${VERSION}"
39
+ exit 1
40
+ }
41
+ - name: Build
42
+ run: |
43
+ python3 -m pip install --disable-pip-version-check build
44
+ python3 -m build
45
+ - name: Attest the build
46
+ uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2
47
+ with:
48
+ subject-path: "dist/*"
49
+ - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
50
+ with:
51
+ name: dist
52
+ path: dist/
53
+
54
+ pypi:
55
+ name: Publish to PyPI
56
+ needs: verify
57
+ if: startsWith(github.ref, 'refs/tags/v') && inputs.dry_run != true
58
+ runs-on: ubuntu-latest
59
+ environment: pypi
60
+ permissions:
61
+ # Mints the OIDC identity PyPI exchanges for a short-lived token, and is
62
+ # what makes PEP 740 attestations possible. No long-lived token exists.
63
+ id-token: write
64
+ steps:
65
+ - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
66
+ with:
67
+ name: dist
68
+ path: dist/
69
+ - uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
70
+ with:
71
+ attestations: true
@@ -0,0 +1,6 @@
1
+ __pycache__/
2
+ *.pyc
3
+ .DS_Store
4
+ dist/
5
+ *.egg-info/
6
+ scorecard.json
@@ -0,0 +1,16 @@
1
+ # SPDX-FileCopyrightText: 2026 Sebastien Rousseau
2
+ # SPDX-License-Identifier: Apache-2.0 OR MIT
3
+
4
+ repos:
5
+ - repo: https://github.com/astral-sh/ruff-pre-commit
6
+ rev: v0.14.2
7
+ hooks:
8
+ - id: ruff
9
+ - id: ruff-format
10
+ - repo: https://github.com/pre-commit/pre-commit-hooks
11
+ rev: v4.6.0
12
+ hooks:
13
+ - id: trailing-whitespace
14
+ - id: end-of-file-fixer
15
+ - id: check-yaml
16
+ - id: check-json
@@ -0,0 +1,60 @@
1
+ <!-- SPDX-FileCopyrightText: 2026 Sebastien Rousseau -->
2
+ <!-- SPDX-License-Identifier: Apache-2.0 OR MIT -->
3
+
4
+ # Changelog
5
+
6
+ ## [0.0.3] - 2026-11-15
7
+
8
+ ### Changed
9
+
10
+ - `KEYS.asc` trusts a second maintainer signing key,
11
+ `SHA256:kIOPAavp1TCEauTr1tTIN3cv+tSs6F9m/4lZjuM9tqk`, so release tags can
12
+ be signed on either maintainer machine. Each key line now carries its
13
+ fingerprint for out-of-band checks.
14
+
15
+ ## [0.0.2] - 2026-10-11
16
+
17
+ ### Added
18
+
19
+ - Scores a repository against the AgtMLS rubric, reporting **score** and
20
+ **coverage** separately. A high score at low coverage is a true statement
21
+ about a small part of the rubric, and printing only the first is how a
22
+ scorecard becomes flattery.
23
+ - Four result states. `unverified` never counts as a pass, and constructing an
24
+ exemption without a reason raises.
25
+ - **All ten categories implemented.** Performance, developer experience,
26
+ observability and interoperability were whole-category placeholders, which
27
+ meant 40 of the 100 criteria were invisible and a repository could read
28
+ 9.3/10 while nothing had asked whether it was fast, diagnosable, scriptable
29
+ or conformant. Implementing them *lowered* every published score, which is
30
+ what a measurement is supposed to be able to do.
31
+ - Capability detection (`has_cli`, `emits_json`, `runs_checks`), so a WASM
32
+ module is not failed for having no `--version` and a GitHub Action is not
33
+ failed for having no `doctor` subcommand. A scorer that cries wolf gets
34
+ switched off, and a switched-off scorer scores nothing while looking like it
35
+ scores everything.
36
+
37
+ ### Fixed
38
+
39
+ - Criterion **2.10** had a checker that `run()` never called, so it was absent
40
+ from every report this tool had ever produced — the exact defect the tool
41
+ exists to catch, in itself. A test now asserts every category decides all
42
+ ten of its criteria.
43
+ - Four false positives, each pinned in both directions: `git+https://` read as
44
+ an invented URI scheme; a `SUPPORT.md` sentence saying a release is
45
+ "unsupported, not deprecated" read as a deprecation; a changelog recording a
46
+ past deprecation read as a live one; and `FAIL: {n} issue(s)` tallies
47
+ counted as error messages missing a remediation.
48
+ - `--fail-under` and `--min-coverage`, which are meant to be used together.
49
+ - Forty-two tests, including both directions of every false positive found so
50
+ far: a link inside a code span, prose containing brackets, a suppression
51
+ with a trailing reason, a rubric that describes TODOs, a composed URI
52
+ scheme, and prose denying a deprecation.
53
+
54
+ ### Known
55
+
56
+ This repository scored 5.7/10 at 38% coverage on its own rubric when first
57
+ written, which is a fair description of a repository a few hours old. With all
58
+ ten categories implemented it scores 8.0/10 at 52%, and the eight repositories
59
+ of the ecosystem score 8.0-8.8 at 44-58% — down from a uniform 10.0 at 41-46%,
60
+ because the categories that used to be invisible can now fail.
@@ -0,0 +1,11 @@
1
+ cff-version: 1.2.0
2
+ title: agtmls-scorecard
3
+ message: "If you use this tool, please cite it."
4
+ type: software
5
+ authors:
6
+ - given-names: Sebastien
7
+ family-names: Rousseau
8
+ email: sebastian.rousseau@gmail.com
9
+ repository-code: "https://github.com/sebastienrousseau/agtmls-scorecard"
10
+ license: "Apache-2.0 OR MIT"
11
+ version: 0.0.3
@@ -0,0 +1,32 @@
1
+ <!-- SPDX-FileCopyrightText: 2026 Sebastien Rousseau -->
2
+ <!-- SPDX-License-Identifier: Apache-2.0 OR MIT -->
3
+
4
+ # Contributor Code of Conduct
5
+
6
+ ## Our Pledge
7
+
8
+ We as members, contributors, and maintainers pledge to make participation in the AgtMLS project and community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
9
+
10
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to a positive environment:
15
+
16
+ - Demonstrating empathy and kindness toward other people
17
+ - Being respectful of differing opinions, viewpoints, and experiences
18
+ - Giving and gracefully accepting constructive feedback
19
+ - Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
20
+ - Focusing on what is best not just for us as individuals, but for the overall community
21
+
22
+ Examples of unacceptable behavior:
23
+
24
+ - The use of sexualized language or imagery, and sexual attention or advances of any kind
25
+ - Trolling, insulting or derogatory comments, and personal or political attacks
26
+ - Public or private harassment
27
+ - Publishing others' private information without explicit permission
28
+ - Other conduct which could reasonably be considered inappropriate in a professional setting
29
+
30
+ ## Enforcement
31
+
32
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the project maintainer at `sebastian.rousseau@gmail.com`. All complaints will be reviewed and investigated promptly and fairly.
@@ -0,0 +1,55 @@
1
+ <!-- SPDX-FileCopyrightText: 2026 Sebastien Rousseau -->
2
+ <!-- SPDX-License-Identifier: Apache-2.0 OR MIT -->
3
+
4
+ # Contributing to agtmls-scorecard
5
+
6
+ ## The rule that matters
7
+
8
+ **A change to analysis behaviour lands with a corpus case that fails without
9
+ it.** Same pull request, not a follow-up. The corpus is how two
10
+ implementations in two languages stay equivalent; a change that is not in the
11
+ corpus is a change the other implementation does not know about.
12
+
13
+ ## Adding an analysis rule
14
+
15
+ 1. Add `rules/AGT-<CLASS>-<NNN>.toml` in `agtmls-scorecard`. Never hard-code a
16
+ pattern in an implementation.
17
+ 2. Declare at least one `[[true_positive]]`, and either a
18
+ `[[false_positive]]` or an explicit `false_positive_policy` with a
19
+ comment saying why none is acceptable. Both are executed at load time.
20
+ 3. Express case-insensitivity inline as `(?i)`. A host-language compile flag
21
+ does not survive export and the implementations will silently disagree.
22
+ 4. Store the pattern in a TOML **literal** string (`'''…'''`). Escaping it as
23
+ a basic string doubles every backslash and the pattern matches nothing.
24
+ 5. Add a case to `corpus/security/corpus.json`, including an **evasion
25
+ variant**. One canonical string proves the regex compiles and nothing else.
26
+ 6. Run `conformance/run.py --python … --rust …`. Both must pass and agree.
27
+
28
+ ## Before opening a pull request
29
+
30
+ ```bash
31
+ conformance/validate-corpus.py # corpus is well-formed
32
+ conformance/run.py --python … --rust … # implementations agree
33
+ ```
34
+
35
+ Rust repositories additionally:
36
+
37
+ ```bash
38
+ cargo fmt --all --check
39
+ cargo clippy --workspace --all-targets -- -D warnings
40
+ cargo test --workspace
41
+ ```
42
+
43
+ ## Commits
44
+
45
+ Conventional commits. Commits and tags must be signed; CI verifies this
46
+ against `KEYS.asc`.
47
+
48
+ ## What gets rejected
49
+
50
+ - A rule with no corpus case.
51
+ - A corpus case weakened to make a failing implementation pass. Rules are data
52
+ precisely so that "make the test pass" and "fix the rule" are the same
53
+ action.
54
+ - A conformance suite that skips when its inputs are missing. It must fail:
55
+ skipping reports green while proving nothing.
@@ -0,0 +1,22 @@
1
+ # agtmls signing keys
2
+ #
3
+ # Commits and release tags in this repository are signed with SSH keys
4
+ # (git's gpg.format=ssh), not OpenPGP, so this file is in OpenSSH
5
+ # allowed-signers format rather than an ASCII-armoured keyring.
6
+ #
7
+ # Verify a commit or tag:
8
+ #
9
+ # git config gpg.ssh.allowedSignersFile KEYS.asc
10
+ # git verify-commit HEAD
11
+ # git verify-tag v0.0.6
12
+ #
13
+ # Every line below is "principal keytype base64-key". A key is added by
14
+ # the maintainer in a signed commit; a key is retired by removing its
15
+ # line, also in a signed commit, so the history of this file is the
16
+ # trust log.
17
+ #
18
+ # Maintainer: Sebastien Rousseau
19
+ # SHA256:f6FG+guRNtT3R36oQFS4oWCx1d10nm+BoaIL3Tkh1r4 (rousseau-mb-neo)
20
+ sebastian.rousseau@gmail.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDjGRQyeM79nAb4GHcpGzXMKq7HE3xyEOev4gVsnBN1e
21
+ # SHA256:kIOPAavp1TCEauTr1tTIN3cv+tSs6F9m/4lZjuM9tqk (rousseau-mbp-m1)
22
+ sebastian.rousseau@gmail.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII32YuD6LxBOeFb5kG4Fqbm62kn9OkcHNPJtktO8iYVF
@@ -0,0 +1,190 @@
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 the 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
+ Copyright 2026 Sebastien Rousseau
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Sebastien Rousseau
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.