codeimprint 0.5.0a11__tar.gz → 0.5.0a13__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.
- {codeimprint-0.5.0a11 → codeimprint-0.5.0a13}/CHANGELOG.md +40 -9
- {codeimprint-0.5.0a11 → codeimprint-0.5.0a13}/LICENSE +26 -1
- codeimprint-0.5.0a13/NOTICE +4 -0
- {codeimprint-0.5.0a11 → codeimprint-0.5.0a13}/PKG-INFO +12 -8
- {codeimprint-0.5.0a11 → codeimprint-0.5.0a13}/README.pypi.md +8 -5
- {codeimprint-0.5.0a11 → codeimprint-0.5.0a13}/pyproject.toml +6 -5
- {codeimprint-0.5.0a11 → codeimprint-0.5.0a13}/src/codeimprint_cli/__init__.py +3 -2
- {codeimprint-0.5.0a11 → codeimprint-0.5.0a13}/src/codeimprint_cli/__main__.py +1 -0
- {codeimprint-0.5.0a11 → codeimprint-0.5.0a13}/src/codeimprint_cli/api.py +1 -0
- {codeimprint-0.5.0a11 → codeimprint-0.5.0a13}/src/codeimprint_cli/chainseal.py +1 -0
- {codeimprint-0.5.0a11 → codeimprint-0.5.0a13}/src/codeimprint_cli/cli.py +4 -3
- {codeimprint-0.5.0a11 → codeimprint-0.5.0a13}/src/codeimprint_cli/config.py +1 -0
- {codeimprint-0.5.0a11 → codeimprint-0.5.0a13}/src/codeimprint_cli/gitrepo.py +1 -0
- {codeimprint-0.5.0a11 → codeimprint-0.5.0a13}/src/codeimprint_cli/imprint_file.py +1 -0
- {codeimprint-0.5.0a11 → codeimprint-0.5.0a13}/src/codeimprint_cli/linecount.py +1 -0
- {codeimprint-0.5.0a11 → codeimprint-0.5.0a13}/src/codeimprint_cli/ownership.py +1 -0
- {codeimprint-0.5.0a11 → codeimprint-0.5.0a13}/src/codeimprint_cli/project.py +1 -0
- {codeimprint-0.5.0a11 → codeimprint-0.5.0a13}/src/codeimprint_cli/receipt.py +2 -1
- {codeimprint-0.5.0a11 → codeimprint-0.5.0a13}/src/codeimprint_cli/records.py +1 -0
- {codeimprint-0.5.0a11 → codeimprint-0.5.0a13}/src/codeimprint_cli/timestamp.py +1 -0
- {codeimprint-0.5.0a11 → codeimprint-0.5.0a13}/src/codeimprint_cli/transparency.py +1 -0
- {codeimprint-0.5.0a11 → codeimprint-0.5.0a13}/src/codeimprint_cli/trust.py +1 -0
- {codeimprint-0.5.0a11 → codeimprint-0.5.0a13}/src/codeimprint_cli/tsa_roots.py +1 -0
- codeimprint-0.5.0a11/NOTICE +0 -11
- {codeimprint-0.5.0a11 → codeimprint-0.5.0a13}/.gitignore +0 -0
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.5.0a13 — The old brand name is gone [CIM-BE-26-v1]
|
|
4
|
+
|
|
5
|
+
- **Development origin:** `receipt.ORIGIN`, the development log origin the tests' simulated
|
|
6
|
+
server uses, is now `codeimprint.dev/log/v1`, as in engine 0.7.0a18. Verification still takes
|
|
7
|
+
whatever origin a log publishes, so nothing changes for users. The name `ORIGIN` stays.
|
|
8
|
+
- **Media type:** `docs/imprint-format.md` names `application/vnd.codeimprint.imprint+json`.
|
|
9
|
+
- **History:** the changelog no longer names the old brand or its domain.
|
|
10
|
+
- **Guard:** `tests/test_no_legacy_brand.py` fails if the old name appears anywhere in the tree.
|
|
11
|
+
|
|
12
|
+
## 0.5.0a12 — Licensed under Apache-2.0 [CIM-BE-23-v1]
|
|
13
|
+
|
|
14
|
+
- Licensed under Apache-2.0. Copyright 2026 Elystra Private Limited.
|
|
15
|
+
- `LICENSE` is now the full, unmodified Apache License 2.0 text, appendix included.
|
|
16
|
+
`tests/test_licence.py` pins its SHA-256.
|
|
17
|
+
- `NOTICE` names the copyright holder and the trademarks: "CodeImprint" and the logo are
|
|
18
|
+
trademarks of Elystra Private Limited, and the licence grants no rights to them
|
|
19
|
+
(section 6).
|
|
20
|
+
- Every source file under `src/` and `scripts/` starts with
|
|
21
|
+
`# SPDX-License-Identifier: Apache-2.0`.
|
|
22
|
+
- The metadata says `License-Expression: Apache-2.0` (PEP 639), and both files ship in the
|
|
23
|
+
wheel and the sdist.
|
|
24
|
+
- The PyPI page no longer mentions the dropped `code-imprint` alias.
|
|
25
|
+
- Elystra Private Limited is the legal owner. It is the PyPI author and maintainer, with
|
|
26
|
+
`dev@elystratech.com`. The product is "CodeImprint", without the old brand line, in
|
|
27
|
+
the READMEs, the PyPI description, `imprint --help` and the workflow `imprint init`
|
|
28
|
+
writes.
|
|
29
|
+
|
|
30
|
+
Packaging [CIM-BE-20-v2]:
|
|
31
|
+
|
|
32
|
+
- `.github/workflows/publish.yml` publishes with `skip-existing: true`: re-running a tag no
|
|
33
|
+
longer fails on files PyPI already has.
|
|
34
|
+
|
|
3
35
|
## 0.5.0a11 — Project names, `imprint github link`, identity offer [CIM-BE-19-v1]
|
|
4
36
|
|
|
5
37
|
- `imprint init` names the project `owner/repo` from the `origin` remote, else the folder's
|
|
@@ -18,14 +50,13 @@
|
|
|
18
50
|
|
|
19
51
|
Packaging [CIM-BE-20-v1]: the client's first PyPI release.
|
|
20
52
|
|
|
21
|
-
- The distribution is now `codeimprint` (`pip install --pre codeimprint`)
|
|
22
|
-
a separate, code-free alias that installs `codeimprint` at the same version. The import
|
|
53
|
+
- The distribution is now `codeimprint` (`pip install --pre codeimprint`). The import
|
|
23
54
|
package (`codeimprint_cli`) and the command (`imprint`) are unchanged.
|
|
24
55
|
`imprint --version` prints `codeimprint <version>`; the User-Agent is `codeimprint/<version>`.
|
|
25
56
|
- `.github/workflows/publish.yml`: on a tag `v*`, the thin-client check and the tests, then
|
|
26
|
-
|
|
27
|
-
the
|
|
28
|
-
Publishing
|
|
57
|
+
the package is built, checked (`twine check`, `scripts/check_release.py`: the tag matches
|
|
58
|
+
the version, and only the client package and its notices ship) and published with Trusted
|
|
59
|
+
Publishing (environment `pypi`).
|
|
29
60
|
- The sdist holds only the package, `README.pypi.md`, `CHANGELOG.md`, `LICENSE` and `NOTICE`.
|
|
30
61
|
- An existing install from a folder under the old name must be removed first:
|
|
31
62
|
`pip uninstall code-imprint`, then `pip install codeimprint`.
|
|
@@ -62,8 +93,8 @@ Packaging [CIM-BE-20-v1]: the client's first PyPI release.
|
|
|
62
93
|
the user config (`hubs`). With none known, no link or badge is printed, only
|
|
63
94
|
`imprint verify <file>`; never a localhost guess. A localhost hub is kept only from a
|
|
64
95
|
localhost server, and any other hub only over HTTPS.
|
|
65
|
-
- **Changed:** `CODEIMPRINT_PUBLIC_URL`, the saved `public_url` and the
|
|
66
|
-
default are no longer used; `imprint login --public-url` is accepted but ignored, with a
|
|
96
|
+
- **Changed:** `CODEIMPRINT_PUBLIC_URL`, the saved `public_url` and the old
|
|
97
|
+
default public URL are no longer used; `imprint login --public-url` is accepted but ignored, with a
|
|
67
98
|
warning. The terms hint names the hub's account page when the hub is known.
|
|
68
99
|
- `imprint verify` with no target checks `.imprint/baseline.imprint` in the current folder;
|
|
69
100
|
without one, the usual usage error.
|
|
@@ -189,7 +220,7 @@ Packaging [CIM-BE-20-v1]: the client's first PyPI release.
|
|
|
189
220
|
## Unreleased [CI-BE-7-v1]
|
|
190
221
|
|
|
191
222
|
- Public-URL setting for badge and verify links: `CODEIMPRINT_PUBLIC_URL`, or
|
|
192
|
-
`imprint login --public-url URL` (saved in the user config). Default
|
|
223
|
+
`imprint login --public-url URL` (saved in the user config). Default: the old development domain;
|
|
193
224
|
launch value `https://app.codeimprint.ai`.
|
|
194
225
|
- The log origin is no longer fixed in the client: a checkpoint must carry its receipt's
|
|
195
226
|
origin, and with `--online` the live log must still have it. Servers can now run under
|
|
@@ -227,7 +258,7 @@ Packaging [CIM-BE-20-v1]: the client's first PyPI release.
|
|
|
227
258
|
against its published keys (trusted on first use, then only ever extended), signs the
|
|
228
259
|
digest locally, uploads the signature, and saves `.imprint/baseline.receipt.json` and
|
|
229
260
|
`.imprint/server-keys.json` next to the Imprint. It prints the log entry, timestamp status,
|
|
230
|
-
badge and
|
|
261
|
+
badge and `<public URL>/i/<ID>`. In CI every failure after the upload is a warning.
|
|
231
262
|
- `imprint verify <file|receipt|ID>` checks digest, attestation, developer signature, log
|
|
232
263
|
inclusion, RFC 3161 timestamp and time order offline, one `PASS`/`WARN`/`FAIL` line each;
|
|
233
264
|
`--online` adds log consistency, entry order and the public record; `--keys FILE` pins
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
Apache License
|
|
3
3
|
Version 2.0, January 2004
|
|
4
|
-
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
5
|
|
|
6
6
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
7
|
|
|
@@ -175,3 +175,28 @@
|
|
|
175
175
|
of your accepting any such warranty or additional liability.
|
|
176
176
|
|
|
177
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.
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: codeimprint
|
|
3
|
-
Version: 0.5.
|
|
4
|
-
Summary: CodeImprint
|
|
3
|
+
Version: 0.5.0a13
|
|
4
|
+
Summary: CodeImprint: seal your code with a CodeImprint server (tamper-evident, logged and timestamped) and verify seals offline.
|
|
5
5
|
Project-URL: Homepage, https://codeimprint.ai
|
|
6
6
|
Project-URL: Hub, https://app.codeimprint.ai
|
|
7
|
-
Author:
|
|
7
|
+
Author-email: Elystra Private Limited <dev@elystratech.com>
|
|
8
|
+
Maintainer-email: Elystra Private Limited <dev@elystratech.com>
|
|
8
9
|
License-Expression: Apache-2.0
|
|
9
10
|
License-File: LICENSE
|
|
10
11
|
License-File: NOTICE
|
|
@@ -31,7 +32,7 @@ Requires-Dist: pytest>=8; extra == 'dev'
|
|
|
31
32
|
Requires-Dist: ruff==0.17.2; extra == 'dev'
|
|
32
33
|
Description-Content-Type: text/markdown
|
|
33
34
|
|
|
34
|
-
# CodeImprint
|
|
35
|
+
# CodeImprint — command-line client
|
|
35
36
|
|
|
36
37
|
**Code provenance that survives AI.** CodeImprint seals your code: every seal is an
|
|
37
38
|
**Imprint**, a compact signature of the code that is tamper-evident, recorded in a public
|
|
@@ -51,8 +52,6 @@ seals offline. Learn more at [codeimprint.ai](https://codeimprint.ai).
|
|
|
51
52
|
pip install --pre codeimprint
|
|
52
53
|
```
|
|
53
54
|
|
|
54
|
-
(`pip install --pre code-imprint` installs the same package.)
|
|
55
|
-
|
|
56
55
|
## Get started
|
|
57
56
|
|
|
58
57
|
```bash
|
|
@@ -88,5 +87,10 @@ Your developer key never leaves your machine: only its public half is sent.
|
|
|
88
87
|
|
|
89
88
|
## Licence
|
|
90
89
|
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
Licensed under the [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0)
|
|
91
|
+
(the `LICENSE` and `NOTICE` files ship with the package). Copyright 2026 Elystra Private
|
|
92
|
+
Limited. The client contains no part of the CodeImprint engine, which runs on the server and
|
|
93
|
+
is proprietary.
|
|
94
|
+
|
|
95
|
+
**Trademarks.** "CodeImprint" and the CodeImprint logo are trademarks of Elystra Private
|
|
96
|
+
Limited; this licence grants no rights to use them (Apache-2.0 section 6).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# CodeImprint
|
|
1
|
+
# CodeImprint — command-line client
|
|
2
2
|
|
|
3
3
|
**Code provenance that survives AI.** CodeImprint seals your code: every seal is an
|
|
4
4
|
**Imprint**, a compact signature of the code that is tamper-evident, recorded in a public
|
|
@@ -18,8 +18,6 @@ seals offline. Learn more at [codeimprint.ai](https://codeimprint.ai).
|
|
|
18
18
|
pip install --pre codeimprint
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
(`pip install --pre code-imprint` installs the same package.)
|
|
22
|
-
|
|
23
21
|
## Get started
|
|
24
22
|
|
|
25
23
|
```bash
|
|
@@ -55,5 +53,10 @@ Your developer key never leaves your machine: only its public half is sent.
|
|
|
55
53
|
|
|
56
54
|
## Licence
|
|
57
55
|
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
Licensed under the [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0)
|
|
57
|
+
(the `LICENSE` and `NOTICE` files ship with the package). Copyright 2026 Elystra Private
|
|
58
|
+
Limited. The client contains no part of the CodeImprint engine, which runs on the server and
|
|
59
|
+
is proprietary.
|
|
60
|
+
|
|
61
|
+
**Trademarks.** "CodeImprint" and the CodeImprint logo are trademarks of Elystra Private
|
|
62
|
+
Limited; this licence grants no rights to use them (Apache-2.0 section 6).
|
|
@@ -3,16 +3,17 @@ requires = ["hatchling>=1.27"]
|
|
|
3
3
|
build-backend = "hatchling.build"
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
|
-
# Published on PyPI as `codeimprint
|
|
7
|
-
#
|
|
6
|
+
# Published on PyPI as `codeimprint`. The import package stays `codeimprint_cli` and the
|
|
7
|
+
# command `imprint`.
|
|
8
8
|
name = "codeimprint"
|
|
9
|
-
version = "0.5.
|
|
10
|
-
description = "CodeImprint
|
|
9
|
+
version = "0.5.0a13"
|
|
10
|
+
description = "CodeImprint: seal your code with a CodeImprint server (tamper-evident, logged and timestamped) and verify seals offline."
|
|
11
11
|
readme = "README.pypi.md"
|
|
12
12
|
license = "Apache-2.0"
|
|
13
13
|
license-files = ["LICENSE", "NOTICE"]
|
|
14
14
|
requires-python = ">=3.10"
|
|
15
|
-
authors = [{ name = "
|
|
15
|
+
authors = [{ name = "Elystra Private Limited", email = "dev@elystratech.com" }]
|
|
16
|
+
maintainers = [{ name = "Elystra Private Limited", email = "dev@elystratech.com" }]
|
|
16
17
|
keywords = ["code provenance", "software birthmark", "code sealing", "transparency log",
|
|
17
18
|
"github actions"]
|
|
18
19
|
classifiers = [
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
"""CodeImprint — command-line client.
|
|
2
3
|
|
|
3
4
|
A thin client for a CodeImprint server: it zips a project, asks the server to seal or check
|
|
4
5
|
it, and verifies Imprint files offline. All analysis happens on the server.
|
|
5
6
|
"""
|
|
6
7
|
|
|
7
|
-
__version__ = "0.5.
|
|
8
|
+
__version__ = "0.5.0a13"
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
1
2
|
"""The `imprint` command: login, init, seal, check and verify."""
|
|
2
3
|
|
|
3
4
|
from __future__ import annotations
|
|
@@ -65,7 +66,7 @@ HANDLING = {
|
|
|
65
66
|
}
|
|
66
67
|
|
|
67
68
|
WORKFLOW = """\
|
|
68
|
-
# Added by `imprint init` — CodeImprint
|
|
69
|
+
# Added by `imprint init` — CodeImprint
|
|
69
70
|
#
|
|
70
71
|
# Seals the code on pushes to main and on tags (the seal and its receipt are kept as a build
|
|
71
72
|
# artifact), and checks pull requests against a reference Imprint on your CodeImprint server.
|
|
@@ -1856,8 +1857,8 @@ def cmd_verify(args) -> int:
|
|
|
1856
1857
|
|
|
1857
1858
|
# -- parser --------------------------------------------------------------------------------
|
|
1858
1859
|
def build_parser() -> argparse.ArgumentParser:
|
|
1859
|
-
p = argparse.ArgumentParser(prog="imprint", description="CodeImprint
|
|
1860
|
-
"
|
|
1860
|
+
p = argparse.ArgumentParser(prog="imprint", description="CodeImprint — seal and check "
|
|
1861
|
+
"your code with a CodeImprint server.")
|
|
1861
1862
|
p.add_argument("--version", action="version", version=f"codeimprint {__version__}")
|
|
1862
1863
|
sub = p.add_subparsers(dest="command", required=True)
|
|
1863
1864
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
1
2
|
"""Verify a seal receipt: digest, attestation, developer signatures, log inclusion, time.
|
|
2
3
|
|
|
3
4
|
A receipt is what `POST /api/v1/seal` returns next to the Imprint (see
|
|
@@ -16,7 +17,7 @@ from .imprint_file import b64d, canonical
|
|
|
16
17
|
|
|
17
18
|
# The development log's origin. Servers can run under another origin (CODEIMPRINT_LOG_ORIGIN),
|
|
18
19
|
# so a checkpoint must carry its receipt's origin, and the live log must keep it.
|
|
19
|
-
ORIGIN = "codeimprint.
|
|
20
|
+
ORIGIN = "codeimprint.dev/log/v1"
|
|
20
21
|
CLOCK_SKEW = timedelta(minutes=5) # allowed between the server's and a TSA's clock
|
|
21
22
|
CONFIRM_WITHIN = timedelta(hours=1) # a TSA time further after the seal is reported
|
|
22
23
|
AGREE_WITHIN = timedelta(hours=1) # valid tokens of one subject further apart: FAIL
|
codeimprint-0.5.0a11/NOTICE
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
CodeImprint client by Mudrika
|
|
2
|
-
Copyright 2026 Mudrika
|
|
3
|
-
|
|
4
|
-
Licensed under the Apache License, Version 2.0 (see LICENSE).
|
|
5
|
-
|
|
6
|
-
This client calls a CodeImprint server. It contains no part of the IMP-1 engine, which is
|
|
7
|
-
proprietary to Mudrika and is not covered by this licence.
|
|
8
|
-
|
|
9
|
-
"Mudrika" and "CodeImprint" are trademarks of their owner. The Apache License does not grant
|
|
10
|
-
permission to use these names except as required for reasonable and customary use in
|
|
11
|
-
describing the origin of the work.
|
|
File without changes
|