debkit 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,138 @@
1
+ Metadata-Version: 2.5
2
+ Name: debkit
3
+ Version: 0.1.0
4
+ Summary: Build, mirror, and verify Debian package repositories on filesystem, S3, and HTTP storage.
5
+ Project-URL: Homepage, https://github.com/vinklat/debkit
6
+ Project-URL: Source, https://github.com/vinklat/debkit
7
+ Project-URL: Issues, https://github.com/vinklat/debkit/issues
8
+ Project-URL: Documentation, https://github.com/vinklat/debkit/blob/main/docs/guides/README.md
9
+ Project-URL: Changelog, https://github.com/vinklat/debkit/blob/main/SETUP.md#upgrade-notes
10
+ Author: Václav Vinklát
11
+ License-Expression: MIT
12
+ License-File: LICENSE
13
+ Keywords: apt,deb,debian,gpg,mirror,repository,s3
14
+ Classifier: Development Status :: 4 - Beta
15
+ Classifier: Environment :: Console
16
+ Classifier: Intended Audience :: Developers
17
+ Classifier: Intended Audience :: System Administrators
18
+ Classifier: Operating System :: POSIX :: Linux
19
+ Classifier: Programming Language :: Python :: 3
20
+ Classifier: Programming Language :: Python :: 3 :: Only
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Programming Language :: Python :: 3.14
23
+ Classifier: Topic :: System :: Archiving :: Mirroring
24
+ Classifier: Topic :: System :: Software Distribution
25
+ Requires-Python: >=3.13
26
+ Requires-Dist: humanize<5,>=4.14.0
27
+ Requires-Dist: python-debian<2,>=1.0.1
28
+ Requires-Dist: python-gnupg<0.6,>=0.5.5
29
+ Requires-Dist: txstore<0.2,>=0.1.2
30
+ Requires-Dist: urllib3<3,>=2.7.0
31
+ Description-Content-Type: text/markdown
32
+
33
+ # debkit
34
+
35
+ Command-line tool for building, inspecting, and mirroring Debian package repositories on a local
36
+ filesystem, S3-compatible object storage, or HTTP(S) servers, with GPG-signed Release files,
37
+ streamed checksum verification, and transactional writes you can revert.
38
+
39
+ Current version: **0.1.0**. Planned work → [ROADMAP.md](https://github.com/vinklat/debkit/blob/v0.1.0/ROADMAP.md).
40
+
41
+ ## Capabilities
42
+
43
+ - Inspect a repository: `dump`, `list`, `stats`; verify consistency with `check` and repair with
44
+ `check --fix`.
45
+ - Insert packages from a `.changes` upload or a single `.deb`; remove packages by field pattern.
46
+ - Mirror a repository with `sync`: architecture and index filters, source packages, indices-only
47
+ mode, Release freshness checks, and optional re-verification of existing packages.
48
+ - Transactional writes on `fs://` and `s3://` targets, with `log`, `revert` of the latest change,
49
+ and `prune` of old history.
50
+ - GPG verification and signing of `Release` and `InRelease`; checksum verification against every
51
+ index.
52
+ - Every option as a flag or a `DEBKIT_*` environment variable, for CI pipelines.
53
+ - Storage through [txstore](https://github.com/vinklat/txstore): `fs`, `s3`, and read-only
54
+ `http`/`https`.
55
+
56
+ ## Quick start
57
+
58
+ ### Installation
59
+
60
+ Released versions are published to [PyPI](https://pypi.org/project/debkit/). Prerequisites →
61
+ [SETUP.md](https://github.com/vinklat/debkit/blob/v0.1.0/SETUP.md#prerequisites-and-install). Other examples →
62
+ [Quick how-to](https://github.com/vinklat/debkit/blob/v0.1.0/docs/guides/examples.md).
63
+
64
+ ```bash
65
+ pip install debkit
66
+ ```
67
+
68
+ ### Example: working with a remote repository (Debian bookworm)
69
+
70
+ #### GPG setup for repository
71
+
72
+ debkit verifies the repositories it reads against trusted keys by default. Import every key that
73
+ signs it. Bookworm's carries three (its archive key, the trixie archive key, and its stable release
74
+ key):
75
+
76
+ ```bash
77
+ export DEBKIT_GNUPG_HOME="$HOME/.debkit-gnupg"
78
+ mkdir -m 700 -p "$DEBKIT_GNUPG_HOME"
79
+ curl -sS https://ftp-master.debian.org/keys/{archive-key-12,archive-key-13,release-12}.asc | \
80
+ gpg --homedir "$DEBKIT_GNUPG_HOME" --no-default-keyring --keyring trustedkeys.gpg --import
81
+ ```
82
+
83
+ #### Operating with a remote repository
84
+
85
+ ```bash
86
+ # stats of a remote repository
87
+ debkit --target-url "https://deb.debian.org/debian bookworm main" stats
88
+ # list packages in a repository
89
+ debkit --target-url "https://deb.debian.org/debian bookworm main" list
90
+ # mirror a remote repository into `/srv/repo`
91
+ debkit --target-url "/srv/repo bookworm main" sync \
92
+ --source-url "https://deb.debian.org/debian bookworm main" \
93
+ --indices-only
94
+ ```
95
+
96
+ ### Example: building a local repository from a `.deb`
97
+
98
+ #### GPG setup for local repository
99
+
100
+ ```bash
101
+ export DEBKIT_GNUPG_SIGN_KEY="repo@example.com"
102
+ gpg --homedir "$DEBKIT_GNUPG_HOME" --batch --passphrase '' \
103
+ --quick-gen-key "Repo signing <$DEBKIT_GNUPG_SIGN_KEY>"
104
+ gpg --homedir "$DEBKIT_GNUPG_HOME" --export "$DEBKIT_GNUPG_SIGN_KEY" | \
105
+ gpg --homedir "$DEBKIT_GNUPG_HOME" --no-default-keyring --keyring trustedkeys.gpg --import
106
+ ```
107
+
108
+ #### Building a local repository
109
+
110
+ debkit signs the repository with the key `DEBKIT_GNUPG_SIGN_KEY`. The key generated above has no
111
+ passphrase, which suits a local demo only; protect a real one and pass `DEBKIT_GNUPG_PASSPHRASE`.
112
+
113
+ ```bash
114
+ debkit --target-url "/srv/repo bookworm main" \
115
+ insert --incoming-url ./incoming --deb-filename hello_1.0_amd64.deb
116
+ debkit --target-url "/srv/repo bookworm main" list
117
+ debkit --target-url /srv/repo log
118
+ ```
119
+
120
+ ## Documentation
121
+
122
+ | Location | Audience | Authority |
123
+ | -- | -- | -- |
124
+ | `/` root contract documents | Developers and AI agents | Canonical |
125
+ | [docs/guides/](https://github.com/vinklat/debkit/blob/v0.1.0/docs/guides/README.md) | Anyone operating the CLI | Non-canonical how-tos and examples |
126
+ | [docs/development/](https://github.com/vinklat/debkit/blob/v0.1.0/docs/development/README.md) | Developers and contributors | Non-canonical diagrams, code maps, explanations |
127
+
128
+ Domain owners and agent navigation → [AGENTS.md](https://github.com/vinklat/debkit/blob/v0.1.0/AGENTS.md#canonical-sources).
129
+
130
+ ## Technology
131
+
132
+ Python and [txstore](https://github.com/vinklat/txstore); runtime dependencies →
133
+ [STRUCTURE.md](https://github.com/vinklat/debkit/blob/v0.1.0/STRUCTURE.md#dependencies). Tests and gates use pytest, Ruff, and mypy →
134
+ [SETUP.md](https://github.com/vinklat/debkit/blob/v0.1.0/SETUP.md#quality-gates).
135
+
136
+ ## License
137
+
138
+ MIT → [LICENSE](https://github.com/vinklat/debkit/blob/v0.1.0/LICENSE).
@@ -0,0 +1,36 @@
1
+ debkit/__init__.py,sha256=3LpZd_zjq65B08DTifyOyWA12h40l9eXIvUljzeSfTI,227
2
+ debkit/__main__.py,sha256=tb3Ay65pukGAnzgpDnCgm2eLxtR4uL5RhaOAVIaraDw,146
3
+ debkit/_env.py,sha256=Bn7SeOGc8eLUdcTAh0Q2fF-Br78ww2FttMj8YJQFZu0,2352
4
+ debkit/_escape.py,sha256=zdjtccqERNwilZCKmv0rFXu8LHBGqIeiqhTbmbxB6n0,874
5
+ debkit/_logging.py,sha256=aps-_4q47j4V_1p4GWi1FU8FU1IjT_FB-q-YPJeSJ8s,3763
6
+ debkit/_options.py,sha256=TXSxasUgzDzb-C3925J1tIAfUsFGAYIWsIfNtraZscw,6995
7
+ debkit/argparser.py,sha256=vFhXpL5161hCPXtYGTfju6L3DORpfz3e_74HJAtMWVo,8177
8
+ debkit/argtypes.py,sha256=xchENZ2knzajubGwBfUYXL0NKvfj_JgSpY0FDs6JwIw,4878
9
+ debkit/cli.py,sha256=vS3AgChU8oDQdpX70-AFM2HZ_g4NkoDPTlnTFAyqA2M,4081
10
+ debkit/action/__init__.py,sha256=m2dTaaKhGffHAA4CNRNlMWsm1X3BKyYTPW2bthmCTnE,10097
11
+ debkit/action/action_history.py,sha256=tf9JYc0ZsKY9Z1jpz-2cZO1b-bhJyhnWNrGQyOTczV0,6516
12
+ debkit/action/action_pkg.py,sha256=nmwtLqTvu-r36GBlm5QYB9yfThejM6c0zlMzwI4CKIA,19153
13
+ debkit/action/action_sync.py,sha256=a1B0JfOncYrLzB9NqdCNZ031gKenXbKHawPnlXKWZXY,18600
14
+ debkit/repo/__init__.py,sha256=mUy_96bPJgIQ1sN8W1yMFEv5aVZT-sULECz3hG6TLSc,24089
15
+ debkit/repo/changes.py,sha256=pzxihIEsCpgsLpu5k1QIWk3UnB8OshM_kSzUDVowGnY,7149
16
+ debkit/repo/component.py,sha256=3Y6oR-mQQ34_FUazAVUBN51e6J1GHwD9UvpJx9DXffI,12921
17
+ debkit/repo/compress.py,sha256=RVLcAf-rHgIHFqb35D5cgmc0aBuAEqgFTVaiYF32r-A,9437
18
+ debkit/repo/debfile.py,sha256=ybalLxVDWFOdEECYgeRkFaqZCnNtr87aWoNSAhT2hO0,9166
19
+ debkit/repo/gnupg.py,sha256=mnpNvGTn5uACkSedjIDoly3deNwVH2kzDhLShvXdxZE,8621
20
+ debkit/repo/hashes.py,sha256=_n33Apv9oxj4EsNlDYaZ-8KznP5K2yWOiyxkZOU4oBY,4324
21
+ debkit/repo/index_selection.py,sha256=SSSOhXtHmZpMBjOVjw4R_kjEP-k4dQDOG3YtiO_gAyQ,9676
22
+ debkit/repo/package.py,sha256=FuNblfNRezFGjfhxJ1xvjWre9sZespZbeMS9YYZLQfQ,5476
23
+ debkit/repo/packages.py,sha256=7pLCD4VHHnYjqx4HtvQuMlG5M_i64hHxZNJYBi-0xCw,19884
24
+ debkit/repo/params.py,sha256=R1aCHacqcvlVg80NH0CCQ8rDZv1hsL3QrEQnfGVkWsM,11643
25
+ debkit/repo/release.py,sha256=ziWTVoNwdsDHvo-PMsyOZ3thJSKsU0bzXCqXuUOZD-I,35625
26
+ debkit/repo/repo_diff.py,sha256=mYhS_nQNhFr28lRAYhVpp4vjhRt4mwcn-EML0ub6HPg,3646
27
+ debkit/repo/repo_rw.py,sha256=SWH_YRYXiFOyjTYU2kCpg4D6_a-_5pcexOxRDZ-YOBU,17115
28
+ debkit/repo/repo_sync.py,sha256=TyBzRC8i9-45rzcPBeT93k9RAgvyTLprWMKVYt-8FSg,17261
29
+ debkit/repo/shared_root.py,sha256=aapfjG4AtqEWirlrBSdNqBsOv0458vWavnMB1jIlfj0,13469
30
+ debkit/repo/sources.py,sha256=V7udvWhJ0kggsgHLSin_EFBWhcMCdBnD38vGrz0pzL4,6694
31
+ debkit/repo/stanza.py,sha256=tuaprFItzi_UqKE88OK7beUhMwjThEYSXjJDWJeyWi0,1937
32
+ debkit-0.1.0.dist-info/METADATA,sha256=LqbZipCdIeUQtmBYe7hVHUHrib2P7W7oFOTiCOtU14s,5928
33
+ debkit-0.1.0.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
34
+ debkit-0.1.0.dist-info/entry_points.txt,sha256=srPQ0Lz49QgSxTyQSFNpKpqa1mZfAy0dOoGz_cTegRI,43
35
+ debkit-0.1.0.dist-info/licenses/LICENSE,sha256=5O2MEnC4Krgp5ohCqacaCatCiTJf2w0yyAsdZC73huk,1073
36
+ debkit-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.32.4
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ debkit = debkit.cli:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Václav Vinklát
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.