kemperrig 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 (135) hide show
  1. kemperrig-0.1.0/.env.example +22 -0
  2. kemperrig-0.1.0/CHANGELOG.md +97 -0
  3. kemperrig-0.1.0/CODE_OF_CONDUCT.md +31 -0
  4. kemperrig-0.1.0/CONTRIBUTING.md +77 -0
  5. kemperrig-0.1.0/LICENSE +202 -0
  6. kemperrig-0.1.0/MANIFEST.in +16 -0
  7. kemperrig-0.1.0/NOTICE +13 -0
  8. kemperrig-0.1.0/PKG-INFO +263 -0
  9. kemperrig-0.1.0/README.md +230 -0
  10. kemperrig-0.1.0/SECURITY.md +34 -0
  11. kemperrig-0.1.0/TRADEMARKS.md +10 -0
  12. kemperrig-0.1.0/config/example-shortlist.json +14 -0
  13. kemperrig-0.1.0/docs/README.md +38 -0
  14. kemperrig-0.1.0/docs/capabilities.md +215 -0
  15. kemperrig-0.1.0/docs/census.md +92 -0
  16. kemperrig-0.1.0/docs/cli.md +177 -0
  17. kemperrig-0.1.0/docs/criteria.md +73 -0
  18. kemperrig-0.1.0/docs/format.md +268 -0
  19. kemperrig-0.1.0/docs/installation.md +136 -0
  20. kemperrig-0.1.0/docs/json.md +277 -0
  21. kemperrig-0.1.0/docs/python-api.md +171 -0
  22. kemperrig-0.1.0/pyproject.toml +59 -0
  23. kemperrig-0.1.0/setup.cfg +4 -0
  24. kemperrig-0.1.0/src/kemperrig/__init__.py +16 -0
  25. kemperrig-0.1.0/src/kemperrig/__main__.py +8 -0
  26. kemperrig-0.1.0/src/kemperrig/_archive.py +41 -0
  27. kemperrig-0.1.0/src/kemperrig/_enums.py +82 -0
  28. kemperrig-0.1.0/src/kemperrig/_json/__init__.py +33 -0
  29. kemperrig-0.1.0/src/kemperrig/_json/_census.py +62 -0
  30. kemperrig-0.1.0/src/kemperrig/_json/_compare.py +45 -0
  31. kemperrig-0.1.0/src/kemperrig/_json/_curation.py +24 -0
  32. kemperrig-0.1.0/src/kemperrig/_json/_doctor.py +45 -0
  33. kemperrig-0.1.0/src/kemperrig/_json/_extract.py +21 -0
  34. kemperrig-0.1.0/src/kemperrig/_json/_library.py +77 -0
  35. kemperrig-0.1.0/src/kemperrig/_json/_packs.py +23 -0
  36. kemperrig-0.1.0/src/kemperrig/_json/_pages.py +26 -0
  37. kemperrig-0.1.0/src/kemperrig/_packs.py +82 -0
  38. kemperrig-0.1.0/src/kemperrig/_sysex.py +255 -0
  39. kemperrig-0.1.0/src/kemperrig/_sysex_edit.py +72 -0
  40. kemperrig-0.1.0/src/kemperrig/_sysex_effects.py +100 -0
  41. kemperrig-0.1.0/src/kemperrig/_tables.py +234 -0
  42. kemperrig-0.1.0/src/kemperrig/_views/__init__.py +52 -0
  43. kemperrig-0.1.0/src/kemperrig/_views/_compare.py +79 -0
  44. kemperrig-0.1.0/src/kemperrig/_views/_curation.py +63 -0
  45. kemperrig-0.1.0/src/kemperrig/_views/_doctor.py +61 -0
  46. kemperrig-0.1.0/src/kemperrig/_views/_extract.py +23 -0
  47. kemperrig-0.1.0/src/kemperrig/_views/_library.py +153 -0
  48. kemperrig-0.1.0/src/kemperrig/_views/_packs.py +45 -0
  49. kemperrig-0.1.0/src/kemperrig/_views/_pages.py +41 -0
  50. kemperrig-0.1.0/src/kemperrig/_views/_rename.py +20 -0
  51. kemperrig-0.1.0/src/kemperrig/cli/__init__.py +91 -0
  52. kemperrig-0.1.0/src/kemperrig/cli/__main__.py +8 -0
  53. kemperrig-0.1.0/src/kemperrig/cli/_compare.py +74 -0
  54. kemperrig-0.1.0/src/kemperrig/cli/_curation.py +62 -0
  55. kemperrig-0.1.0/src/kemperrig/cli/_doctor.py +36 -0
  56. kemperrig-0.1.0/src/kemperrig/cli/_library.py +186 -0
  57. kemperrig-0.1.0/src/kemperrig/cli/_packs.py +47 -0
  58. kemperrig-0.1.0/src/kemperrig/cli/_pages.py +58 -0
  59. kemperrig-0.1.0/src/kemperrig/cli/_write.py +84 -0
  60. kemperrig-0.1.0/src/kemperrig/model.py +279 -0
  61. kemperrig-0.1.0/src/kemperrig/py.typed +0 -0
  62. kemperrig-0.1.0/src/kemperrig/records.py +138 -0
  63. kemperrig-0.1.0/src/kemperrig/services/__init__.py +2 -0
  64. kemperrig-0.1.0/src/kemperrig/services/analyze.py +207 -0
  65. kemperrig-0.1.0/src/kemperrig/services/census.py +141 -0
  66. kemperrig-0.1.0/src/kemperrig/services/decode.py +42 -0
  67. kemperrig-0.1.0/src/kemperrig/services/diff.py +145 -0
  68. kemperrig-0.1.0/src/kemperrig/services/doctor.py +204 -0
  69. kemperrig-0.1.0/src/kemperrig/services/edit.py +218 -0
  70. kemperrig-0.1.0/src/kemperrig/services/extract.py +107 -0
  71. kemperrig-0.1.0/src/kemperrig/services/filter.py +77 -0
  72. kemperrig-0.1.0/src/kemperrig/services/history.py +196 -0
  73. kemperrig-0.1.0/src/kemperrig/services/pack.py +57 -0
  74. kemperrig-0.1.0/src/kemperrig/services/pages.py +67 -0
  75. kemperrig-0.1.0/src/kemperrig/services/performance.py +37 -0
  76. kemperrig-0.1.0/src/kemperrig/services/report.py +43 -0
  77. kemperrig-0.1.0/src/kemperrig/services/select.py +53 -0
  78. kemperrig-0.1.0/src/kemperrig/services/shortlist.py +67 -0
  79. kemperrig-0.1.0/src/kemperrig.egg-info/PKG-INFO +263 -0
  80. kemperrig-0.1.0/src/kemperrig.egg-info/SOURCES.txt +133 -0
  81. kemperrig-0.1.0/src/kemperrig.egg-info/dependency_links.txt +1 -0
  82. kemperrig-0.1.0/src/kemperrig.egg-info/entry_points.txt +2 -0
  83. kemperrig-0.1.0/src/kemperrig.egg-info/requires.txt +7 -0
  84. kemperrig-0.1.0/src/kemperrig.egg-info/top_level.txt +1 -0
  85. kemperrig-0.1.0/tests/_fixture.py +211 -0
  86. kemperrig-0.1.0/tests/_pack_fixture.py +95 -0
  87. kemperrig-0.1.0/tests/_payloads.py +95 -0
  88. kemperrig-0.1.0/tests/_sample.py +210 -0
  89. kemperrig-0.1.0/tests/conftest.py +7 -0
  90. kemperrig-0.1.0/tests/test_analyze.py +251 -0
  91. kemperrig-0.1.0/tests/test_census.py +183 -0
  92. kemperrig-0.1.0/tests/test_census_cli.py +156 -0
  93. kemperrig-0.1.0/tests/test_cli.py +153 -0
  94. kemperrig-0.1.0/tests/test_cli_robustness.py +178 -0
  95. kemperrig-0.1.0/tests/test_cli_settings.py +185 -0
  96. kemperrig-0.1.0/tests/test_damaged_archives.py +156 -0
  97. kemperrig-0.1.0/tests/test_dependencies.py +73 -0
  98. kemperrig-0.1.0/tests/test_diff.py +188 -0
  99. kemperrig-0.1.0/tests/test_docs.py +209 -0
  100. kemperrig-0.1.0/tests/test_doctor.py +207 -0
  101. kemperrig-0.1.0/tests/test_doctor_cli.py +111 -0
  102. kemperrig-0.1.0/tests/test_edit.py +169 -0
  103. kemperrig-0.1.0/tests/test_effects.py +154 -0
  104. kemperrig-0.1.0/tests/test_enums.py +147 -0
  105. kemperrig-0.1.0/tests/test_extract.py +245 -0
  106. kemperrig-0.1.0/tests/test_extract_cli.py +240 -0
  107. kemperrig-0.1.0/tests/test_filter.py +90 -0
  108. kemperrig-0.1.0/tests/test_find_rig.py +79 -0
  109. kemperrig-0.1.0/tests/test_gain_values.py +80 -0
  110. kemperrig-0.1.0/tests/test_golden.py +143 -0
  111. kemperrig-0.1.0/tests/test_history.py +224 -0
  112. kemperrig-0.1.0/tests/test_history_cli.py +138 -0
  113. kemperrig-0.1.0/tests/test_json_output.py +113 -0
  114. kemperrig-0.1.0/tests/test_live.py +74 -0
  115. kemperrig-0.1.0/tests/test_malformed_rows.py +240 -0
  116. kemperrig-0.1.0/tests/test_model.py +158 -0
  117. kemperrig-0.1.0/tests/test_pack_cli.py +168 -0
  118. kemperrig-0.1.0/tests/test_packs.py +177 -0
  119. kemperrig-0.1.0/tests/test_pages.py +159 -0
  120. kemperrig-0.1.0/tests/test_performance.py +53 -0
  121. kemperrig-0.1.0/tests/test_presets.py +57 -0
  122. kemperrig-0.1.0/tests/test_rename_output.py +74 -0
  123. kemperrig-0.1.0/tests/test_rename_payload.py +137 -0
  124. kemperrig-0.1.0/tests/test_rename_safety.py +267 -0
  125. kemperrig-0.1.0/tests/test_repo_hygiene.py +69 -0
  126. kemperrig-0.1.0/tests/test_report.py +48 -0
  127. kemperrig-0.1.0/tests/test_rig_decode.py +148 -0
  128. kemperrig-0.1.0/tests/test_sample.py +94 -0
  129. kemperrig-0.1.0/tests/test_select.py +133 -0
  130. kemperrig-0.1.0/tests/test_shortlist.py +182 -0
  131. kemperrig-0.1.0/tests/test_smoke.py +101 -0
  132. kemperrig-0.1.0/tests/test_snapshot.py +149 -0
  133. kemperrig-0.1.0/tests/test_sysex.py +213 -0
  134. kemperrig-0.1.0/tests/test_sysex_edit.py +72 -0
  135. kemperrig-0.1.0/tests/test_terminal_safe.py +99 -0
@@ -0,0 +1,22 @@
1
+ # Copy to .env (gitignored) and point at your own files.
2
+ # All optional: every command still accepts an explicit path / --criteria.
3
+
4
+ # Default library for every command — a .rmbackup, or the live Rig Manager directory
5
+ # (`history` reads that directory's Backups/ folder).
6
+ KEMPERRIG_LIBRARY="$HOME/Library/Application Support/Kemper Amps/RigManager"
7
+
8
+ # Default criteria file for `shortlist`. Start from config/example-shortlist.json.
9
+ KEMPERRIG_CRITERIA="./config/example-shortlist.json"
10
+
11
+ # A census written by `kemperrig summary --write-golden`. With KEMPERRIG_LIBRARY set too,
12
+ # tests/test_golden.py checks that library still matches it; without both, it skips.
13
+ # KEMPERRIG_GOLDEN="/path/to/your/golden.json"
14
+
15
+ # If you keep rigs pulled off the Profiler in their own library folder, name it here and
16
+ # `analyze` will exempt it from the orphan sweep. There is no default — the name is your
17
+ # filing convention, not something Rig Manager defines.
18
+ # KEMPERRIG_RACK_FOLDER="Rack"
19
+
20
+ # Where effect type names come from. Defaults to the Stomps.xml inside a standard Rig
21
+ # Manager install; set this only if yours lives elsewhere.
22
+ # KEMPERRIG_STOMPS_XML="/Applications/Rig Manager.app/Contents/Resources/Stomps.xml"
@@ -0,0 +1,97 @@
1
+ # Changelog
2
+
3
+ Notable changes to kemperrig, newest first.
4
+
5
+ ## v0.1.0 — 2026-10-04
6
+
7
+ First public release. Apache-2.0; published to PyPI.
8
+
9
+ ### Reading
10
+
11
+ - Opens a `.rmbackup`, the live Rig Manager directory, a dated snapshot (`Backups/*R2.db`)
12
+ or a rig or preset pack (`.rigpack`, `.presetpack`), told apart by content. Snapshot and
13
+ pack records have no folder; factory `ROMPresets` are not read.
14
+ - Rigs (with `profile_type`, `profile_revision`, `cabinet_type` and
15
+ `cabinet_configuration` raw), performances and their slots, effect and cab-IR presets, and
16
+ backup info. A NULL name reads as empty, a non-BLOB payload as an empty payload, a BLOB in
17
+ a text column as NULL, and a `Gain` that is not a finite number as no gain. A damaged
18
+ database is reported with its path.
19
+ - A damaged, encrypted or unsupported archive entry, or one that would inflate past 1 GiB or
20
+ past 100:1 beyond 16 MiB, is refused with a message naming it; `history` skips that file.
21
+ - Payload decode for KThd/KTrk and MThd/MTrk framing: strings by address, amp gain from every
22
+ verified amp-block shape, the effect in each module slot with its on/off (REV on page
23
+ `0x3d`, or `0x4b` on older rigs), and the cab IR.
24
+ - A module slot present only in the function-`08` framing is reported as undecoded — no
25
+ type, name or on/off — rather than dropped.
26
+ - Effect type names and categories are read at runtime from the `Stomps.xml` in the user's
27
+ Rig Manager install; `KEMPERRIG_STOMPS_XML` overrides the path, and without it a verified
28
+ subset resolves.
29
+ - A payload that is cut short, has a chunk running past its end or bytes after its last
30
+ chunk, or (for a performance) does not hold a header and five slot tracks does not parse.
31
+ Library-wide commands read past it and say so; a command about that one rig names it.
32
+
33
+ ### Commands
34
+
35
+ - `summary`; `rigs` with metadata filters (`--name`, `--amp`, `--author`, `--folder`,
36
+ `--source`, `--channel`, `--comment`, `--gain-min`/`--gain-max`, `--di`/`--studio`,
37
+ `--boosted`/`--unboosted`); `rig`, narrowed by `--folder` or `--payload DIGEST`;
38
+ `presets`; `performances` with slot gain ladders and locked-effects share.
39
+ - `rig --json` and `rigs --decode`: a rig's decoded amp gain, effects, cab IR and strings as
40
+ data. Every rig entry in `--json` carries its payload digest.
41
+ - `--effect` and `--ir` select rigs by a decoded effect's type name or category and by cab-IR
42
+ name, on `rigs` and `extract`. Rigs a filter cannot judge are listed, never dropped.
43
+ - `pages RIG` dumps a rig's raw parameter blocks; `pages --all` counts which pages occur
44
+ across the library.
45
+ - `analyze` — orphaned rigs, per-amp gain coverage, duplicates, effect categories, cab-IR
46
+ usage, out-of-order gain ladders, payloads that do not parse. `--strict` exits 1 when there
47
+ is something to act on; `--rack-folder` exempts one folder from the orphan sweep.
48
+ - `doctor` — dangling and ambiguous performance slots and broken payloads (definite);
49
+ unread payload bytes, gain and name disagreements and unused cab IRs (informational).
50
+ `--strict` exits 1 on a definite finding; `--device-backup` marks a slot whose rig is on
51
+ the device.
52
+ - `shortlist` — caller-supplied amp patterns above a gain floor, DI-only unless
53
+ `--include-studio`; the criteria file is shape-checked on load.
54
+ - `pack` lists a pack and its rigs or presets; `--against [LIBRARY]` marks each as in the
55
+ library, name taken, or new.
56
+ - `diff` — rigs, performances and presets added, removed or changed, including a performance
57
+ slot re-pointed at another rig. Exits 1 when the sources differ.
58
+ - `history` — per dated snapshot or backup, the counts and what changed since the previous
59
+ file from the same device; `--rig NAME` lists every file holding that rig and each payload
60
+ version.
61
+ - `--json` on every read command, specified key by key in `docs/json.md`.
62
+
63
+ ### Writers — none modifies its source
64
+
65
+ - `rename` writes a new archive with the rig renamed in its row, inside its payload, and in
66
+ each performance slot that loads it, keeping every other byte. It refuses an unknown name,
67
+ a taken one, and a new name that is not printable ASCII of at most 32 characters. Its
68
+ archive is not yet confirmed to restore into Rig Manager, and it says so.
69
+ - `extract` writes selected rigs as standalone `.krig` files, verbatim. It requires a
70
+ selection or `--all`, and makes file names safe and numbers collisions.
71
+ - `summary --write-golden PATH` writes a library census (format 1, with decoded and
72
+ undecoded effect slots counted apart) for the opt-in golden test.
73
+ - All three refuse, exit 2, an output that is the source (case variants, symlinks, hardlinks
74
+ included), one inside the source or any Rig Manager library, and an existing output
75
+ without `--force`; missing folders on the way to the output are created. A file output
76
+ spelled as a folder (`out/`) is refused.
77
+
78
+ ### CLI
79
+
80
+ - `KEMPERRIG_LIBRARY`, `KEMPERRIG_CRITERIA`, `KEMPERRIG_RACK_FOLDER` and
81
+ `KEMPERRIG_STOMPS_XML` supply the settings, and `--help` names each one.
82
+ - Runs as `kemperrig`, `python -m kemperrig`, or `python -m kemperrig.cli`.
83
+ - Every failure is a one-line message and a non-zero exit, never a traceback.
84
+ - Text output shows control characters from a file as `\xNN`; `--json` is strict JSON.
85
+
86
+ ### Python API
87
+
88
+ - `Backup.open` and the records, the services under `kemperrig.services`, and
89
+ `use_effect_names()` / `DEFAULT_STOMPS_XML` to name effects from Rig Manager's table.
90
+
91
+ ### Development
92
+
93
+ - `bin/run sample DIR` writes a synthetic library — every source kind, one of each finding —
94
+ and the test suite runs every command against it.
95
+ - Documentation in `docs/`: installation, capabilities, command reference, JSON reference,
96
+ Python API, criteria, census and format. `tests/test_docs.py` keeps the command and JSON
97
+ references in step with the code.
@@ -0,0 +1,31 @@
1
+ # Code of Conduct
2
+
3
+ ## Our standard
4
+
5
+ kemperrig is a small, focused project. Everyone interacting in its issues, pull
6
+ requests, and discussions is expected to be respectful and constructive.
7
+
8
+ **Expected:** thoughtful feedback, good-faith disagreement, patience with
9
+ newcomers, and keeping discussion technical.
10
+
11
+ **Not tolerated:** harassment, personal attacks, demeaning or discriminatory
12
+ comments, publishing others' private information, or sustained disruption.
13
+
14
+ ## Scope
15
+
16
+ This applies in all project spaces — issues, pull requests, commit
17
+ discussions, and any other official channel — and when representing the project
18
+ in public spaces.
19
+
20
+ ## Reporting and enforcement
21
+
22
+ Report unacceptable behavior privately to the project maintainer at
23
+ **oss@phierceweb.com**. Reports will be handled discreetly. Maintainers may
24
+ edit or remove contributions, and may warn or ban contributors, for behavior
25
+ that violates this code.
26
+
27
+ ---
28
+
29
+ For a more comprehensive document, this project is happy to adopt the
30
+ [Contributor Covenant](https://www.contributor-covenant.org); the above is a
31
+ concise statement of the same principles.
@@ -0,0 +1,77 @@
1
+ # Contributing to kemperrig
2
+
3
+ Bug reports, format findings, and fixes verified against real files are all welcome.
4
+
5
+ ## The property that matters
6
+
7
+ kemperrig only reads. `.rmbackup` archives are the only copy of a profile library many people
8
+ have, so nothing here modifies a source file. The three writers build new files — `rename` a
9
+ new archive, `extract` standalone `.krig` files, `summary --write-golden` a JSON census —
10
+ outside the source and any Rig Manager library, each behind a guard that starts from
11
+ `model.write_refusal`. A change that writes in place will not be merged.
12
+
13
+ ## Setting up
14
+
15
+ ```bash
16
+ git clone https://github.com/phierceweb/kemperrig && cd kemperrig
17
+ bin/run setup # venv + editable install with the dev tools
18
+ bin/run pytest # the suite
19
+ bin/run lint # ruff + the pf-core file-size gate
20
+ .venv/bin/pre-commit install # optional: run ruff and the gate on every commit
21
+ ```
22
+
23
+ `bin/run` reads a gitignored `.env` for your own `KEMPERRIG_*` settings; see `.env.example`.
24
+
25
+ ## How the tests work
26
+
27
+ Every test is hermetic. `tests/_payloads.py` builds real Kemper SysEx in KThd/KTrk chunks,
28
+ `tests/_fixture.py` real `.rmbackup` archives and snapshots from them, and
29
+ `tests/_pack_fixture.py` real packs — so nothing depends on a personal library, and nothing
30
+ from one is ever committed.
31
+
32
+ `tests/_sample.py` writes a whole synthetic library to disk: a backup, a live directory with
33
+ two dated snapshots, a rig pack and a preset pack, and one of each thing `analyze` and
34
+ `doctor` report. `tests/test_smoke.py` runs every command against it, and
35
+
36
+ ```bash
37
+ bin/run sample /tmp/sample
38
+ ```
39
+
40
+ writes one for you to try commands on by hand. When a change needs a case the sample lacks,
41
+ extend the sample rather than reaching for a real file.
42
+
43
+ One check is opt-in. With `KEMPERRIG_GOLDEN` naming a census written by
44
+ `summary --write-golden` and `KEMPERRIG_LIBRARY` the library it describes,
45
+ `tests/test_golden.py` compares the two field by field. Without both it skips; `bin/run
46
+ pytest -rs` says why. See `docs/census.md`.
47
+
48
+ `tests/test_docs.py` checks `docs/cli.md` and `docs/json.md` against the code, so a new
49
+ command, flag or `--json` key needs its documentation in the same change.
50
+
51
+ ## Reporting a decode bug
52
+
53
+ Rig Manager writes several generations of payload, and not all of them are understood. If
54
+ a rig or performance decodes wrongly, please include the Rig Manager version, the Profiler
55
+ model and OS version, the command you ran, and the value Rig Manager or the Profiler shows.
56
+ **Do not attach the backup, a pack or a `.krig`** — they usually hold commercially licensed
57
+ profiles, and an issue is public.
58
+
59
+ ## House rules
60
+
61
+ - **Verify against a real file.** A decoding claim needs evidence: a value Rig Manager
62
+ displays, or a Profiler that agrees. A plausible-looking offset is not a finding; an
63
+ unverified value decodes to `None`.
64
+ - **Keep the core dependency-light.** The standard library plus two pf-core helpers,
65
+ enforced by `tests/test_dependencies.py`. A new dependency needs a reason.
66
+ - **Fixtures stay synthetic.** Never commit a real `.rmbackup` or pack, and never commit
67
+ identifying details from one — rig names, author handles, library counts.
68
+ - **One-line errors.** Every CLI failure is one line on stderr and a non-zero exit, never a
69
+ traceback.
70
+ - **File-size target 300 lines, hard limit 500**, one concern per file.
71
+ - The rules behind these, and the layering they protect, are in `.ai/rules/`; `AGENTS.md`
72
+ is the short version.
73
+
74
+ ## License
75
+
76
+ kemperrig is licensed under the Apache License, Version 2.0. By contributing, you agree
77
+ that your contributions are licensed under the same terms.
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,16 @@
1
+ # setuptools' implicit sdist rules skip `tests/_*.py` fixtures and `config/`; the shipped
2
+ # suite and the README's `--criteria` example need both.
3
+ include MANIFEST.in
4
+ include CHANGELOG.md CONTRIBUTING.md SECURITY.md CODE_OF_CONDUCT.md TRADEMARKS.md
5
+ include .env.example
6
+ recursive-include tests *.py
7
+ recursive-include config *.json
8
+ recursive-include docs *.md
9
+ exclude .coverage
10
+ prune .ai
11
+ prune .claude
12
+ prune .cursor
13
+ prune .github
14
+
15
+ # docs/pf-core is a gitignored symlink into site-packages; recursive-include follows it
16
+ prune docs/pf-core
kemperrig-0.1.0/NOTICE ADDED
@@ -0,0 +1,13 @@
1
+ kemperrig
2
+ Copyright 2026 Mike Farr
3
+
4
+ This product includes software developed by Mike Farr
5
+ (https://github.com/phierceweb/kemperrig).
6
+
7
+ Built on pf-core (https://github.com/phierceweb/pf-core), Copyright 2026 Mike Farr,
8
+ licensed under the Apache License, Version 2.0.
9
+
10
+ KEMPER, KEMPER PROFILER and RIG MANAGER are trademarks of Kemper GmbH. kemperrig is not
11
+ affiliated with, endorsed by, or sponsored by Kemper GmbH, and contains no Kemper source
12
+ code, firmware or documentation. See
13
+ https://github.com/phierceweb/kemperrig/blob/main/TRADEMARKS.md.