pyhanko-cli 0.2.0__tar.gz → 0.2.1__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.
- {pyhanko_cli-0.2.0/src/pyhanko_cli.egg-info → pyhanko_cli-0.2.1}/PKG-INFO +3 -2
- {pyhanko_cli-0.2.0 → pyhanko_cli-0.2.1}/pyproject.toml +3 -2
- {pyhanko_cli-0.2.0 → pyhanko_cli-0.2.1}/src/pyhanko/cli/commands/signing/plugin.py +5 -2
- pyhanko_cli-0.2.1/src/pyhanko/cli/version.py +2 -0
- {pyhanko_cli-0.2.0 → pyhanko_cli-0.2.1/src/pyhanko_cli.egg-info}/PKG-INFO +3 -2
- {pyhanko_cli-0.2.0 → pyhanko_cli-0.2.1}/src/pyhanko_cli.egg-info/requires.txt +1 -1
- pyhanko_cli-0.2.0/src/pyhanko/cli/version.py +0 -2
- {pyhanko_cli-0.2.0 → pyhanko_cli-0.2.1}/LICENSE +0 -0
- {pyhanko_cli-0.2.0 → pyhanko_cli-0.2.1}/MANIFEST.in +0 -0
- {pyhanko_cli-0.2.0 → pyhanko_cli-0.2.1}/README.md +0 -0
- {pyhanko_cli-0.2.0 → pyhanko_cli-0.2.1}/setup.cfg +0 -0
- {pyhanko_cli-0.2.0 → pyhanko_cli-0.2.1}/src/pyhanko/__main__.py +0 -0
- {pyhanko_cli-0.2.0 → pyhanko_cli-0.2.1}/src/pyhanko/cli/__init__.py +0 -0
- {pyhanko_cli-0.2.0 → pyhanko_cli-0.2.1}/src/pyhanko/cli/_ctx.py +0 -0
- {pyhanko_cli-0.2.0 → pyhanko_cli-0.2.1}/src/pyhanko/cli/_root.py +0 -0
- {pyhanko_cli-0.2.0 → pyhanko_cli-0.2.1}/src/pyhanko/cli/_trust.py +0 -0
- {pyhanko_cli-0.2.0 → pyhanko_cli-0.2.1}/src/pyhanko/cli/cache.py +0 -0
- {pyhanko_cli-0.2.0 → pyhanko_cli-0.2.1}/src/pyhanko/cli/commands/__init__.py +0 -0
- {pyhanko_cli-0.2.0 → pyhanko_cli-0.2.1}/src/pyhanko/cli/commands/crypt.py +0 -0
- {pyhanko_cli-0.2.0 → pyhanko_cli-0.2.1}/src/pyhanko/cli/commands/fields.py +0 -0
- {pyhanko_cli-0.2.0 → pyhanko_cli-0.2.1}/src/pyhanko/cli/commands/signing/__init__.py +0 -0
- {pyhanko_cli-0.2.0 → pyhanko_cli-0.2.1}/src/pyhanko/cli/commands/signing/pkcs11_cli.py +0 -0
- {pyhanko_cli-0.2.0 → pyhanko_cli-0.2.1}/src/pyhanko/cli/commands/signing/simple.py +0 -0
- {pyhanko_cli-0.2.0 → pyhanko_cli-0.2.1}/src/pyhanko/cli/commands/signing/utils.py +0 -0
- {pyhanko_cli-0.2.0 → pyhanko_cli-0.2.1}/src/pyhanko/cli/commands/stamp.py +0 -0
- {pyhanko_cli-0.2.0 → pyhanko_cli-0.2.1}/src/pyhanko/cli/commands/validation/__init__.py +0 -0
- {pyhanko_cli-0.2.0 → pyhanko_cli-0.2.1}/src/pyhanko/cli/commands/validation/ltv.py +0 -0
- {pyhanko_cli-0.2.0 → pyhanko_cli-0.2.1}/src/pyhanko/cli/commands/validation/validate.py +0 -0
- {pyhanko_cli-0.2.0 → pyhanko_cli-0.2.1}/src/pyhanko/cli/config.py +0 -0
- {pyhanko_cli-0.2.0 → pyhanko_cli-0.2.1}/src/pyhanko/cli/plugin_api.py +0 -0
- {pyhanko_cli-0.2.0 → pyhanko_cli-0.2.1}/src/pyhanko/cli/py.typed +0 -0
- {pyhanko_cli-0.2.0 → pyhanko_cli-0.2.1}/src/pyhanko/cli/runtime.py +0 -0
- {pyhanko_cli-0.2.0 → pyhanko_cli-0.2.1}/src/pyhanko/cli/utils.py +0 -0
- {pyhanko_cli-0.2.0 → pyhanko_cli-0.2.1}/src/pyhanko_cli.egg-info/SOURCES.txt +0 -0
- {pyhanko_cli-0.2.0 → pyhanko_cli-0.2.1}/src/pyhanko_cli.egg-info/dependency_links.txt +0 -0
- {pyhanko_cli-0.2.0 → pyhanko_cli-0.2.1}/src/pyhanko_cli.egg-info/entry_points.txt +0 -0
- {pyhanko_cli-0.2.0 → pyhanko_cli-0.2.1}/src/pyhanko_cli.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyhanko-cli
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: CLI tools for stamping and signing PDF files
|
|
5
5
|
Author-email: Matthias Valvekens <dev@mvalvekens.be>
|
|
6
6
|
Maintainer-email: Matthias Valvekens <dev@mvalvekens.be>
|
|
@@ -20,6 +20,7 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.11
|
|
21
21
|
Classifier: Programming Language :: Python :: 3.12
|
|
22
22
|
Classifier: Programming Language :: Python :: 3.13
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
23
24
|
Classifier: Topic :: Security :: Cryptography
|
|
24
25
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
25
26
|
Requires-Python: >=3.9
|
|
@@ -27,7 +28,7 @@ Description-Content-Type: text/markdown
|
|
|
27
28
|
License-File: LICENSE
|
|
28
29
|
Requires-Dist: asn1crypto>=1.5.1
|
|
29
30
|
Requires-Dist: tzlocal>=4.3
|
|
30
|
-
Requires-Dist: pyhanko<0.
|
|
31
|
+
Requires-Dist: pyhanko<0.33,>=0.32.0
|
|
31
32
|
Requires-Dist: pyhanko-certvalidator<0.30,>=0.29.0
|
|
32
33
|
Requires-Dist: click!=8.2.0,>=8.1.3
|
|
33
34
|
Requires-Dist: platformdirs>=4.3.8
|
|
@@ -26,6 +26,7 @@ classifiers = [
|
|
|
26
26
|
"Programming Language :: Python :: 3.11",
|
|
27
27
|
"Programming Language :: Python :: 3.12",
|
|
28
28
|
"Programming Language :: Python :: 3.13",
|
|
29
|
+
"Programming Language :: Python :: 3.14",
|
|
29
30
|
"Topic :: Security :: Cryptography",
|
|
30
31
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
31
32
|
]
|
|
@@ -33,12 +34,12 @@ requires-python = ">=3.9"
|
|
|
33
34
|
dependencies = [
|
|
34
35
|
"asn1crypto>=1.5.1",
|
|
35
36
|
"tzlocal>=4.3",
|
|
36
|
-
"pyhanko>=0.
|
|
37
|
+
"pyhanko>=0.32.0,<0.33",
|
|
37
38
|
"pyhanko-certvalidator>=0.29.0,<0.30",
|
|
38
39
|
"click>=8.1.3,!=8.2.0",
|
|
39
40
|
"platformdirs>=4.3.8",
|
|
40
41
|
]
|
|
41
|
-
version = "0.2.
|
|
42
|
+
version = "0.2.1"
|
|
42
43
|
|
|
43
44
|
|
|
44
45
|
[project.readme]
|
|
@@ -10,6 +10,7 @@ from pyhanko.cli.commands.signing.utils import get_text_params, open_for_signing
|
|
|
10
10
|
from pyhanko.cli.plugin_api import SigningCommandPlugin
|
|
11
11
|
from pyhanko.cli.runtime import pyhanko_exception_manager
|
|
12
12
|
from pyhanko.cli.utils import readable_file, writable_file
|
|
13
|
+
from pyhanko.pdf_utils import form_tools
|
|
13
14
|
from pyhanko.pdf_utils.rw_common import PdfHandler
|
|
14
15
|
from pyhanko.sign import fields
|
|
15
16
|
from pyhanko.sign.signers import PdfSigner
|
|
@@ -29,8 +30,10 @@ def _ensure_field_visible(
|
|
|
29
30
|
fq_name, _, field_ref = next(
|
|
30
31
|
fields.enumerate_sig_fields(handler, with_name=name)
|
|
31
32
|
)
|
|
32
|
-
sig_annot =
|
|
33
|
-
|
|
33
|
+
sig_annot = form_tools.get_single_field_annot(
|
|
34
|
+
field=field_ref.get_object()
|
|
35
|
+
)
|
|
36
|
+
w, h = form_tools.annot_width_height(sig_annot)
|
|
34
37
|
if not w or not h:
|
|
35
38
|
raise click.ClickException(
|
|
36
39
|
f"{prefix}, but the field '{fq_name}' in the PDF is not a "
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyhanko-cli
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: CLI tools for stamping and signing PDF files
|
|
5
5
|
Author-email: Matthias Valvekens <dev@mvalvekens.be>
|
|
6
6
|
Maintainer-email: Matthias Valvekens <dev@mvalvekens.be>
|
|
@@ -20,6 +20,7 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.11
|
|
21
21
|
Classifier: Programming Language :: Python :: 3.12
|
|
22
22
|
Classifier: Programming Language :: Python :: 3.13
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
23
24
|
Classifier: Topic :: Security :: Cryptography
|
|
24
25
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
25
26
|
Requires-Python: >=3.9
|
|
@@ -27,7 +28,7 @@ Description-Content-Type: text/markdown
|
|
|
27
28
|
License-File: LICENSE
|
|
28
29
|
Requires-Dist: asn1crypto>=1.5.1
|
|
29
30
|
Requires-Dist: tzlocal>=4.3
|
|
30
|
-
Requires-Dist: pyhanko<0.
|
|
31
|
+
Requires-Dist: pyhanko<0.33,>=0.32.0
|
|
31
32
|
Requires-Dist: pyhanko-certvalidator<0.30,>=0.29.0
|
|
32
33
|
Requires-Dist: click!=8.2.0,>=8.1.3
|
|
33
34
|
Requires-Dist: platformdirs>=4.3.8
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|