Python bindings for libdigidocpp - create, validate and handle digitally signed documents
Project description
pydigidoc
Python bindings for libdigidocpp — create, validate and handle digitally signed documents (ASiC-E, BDOC, etc).
Installation
pip install pydigidoc
Usage
import pydigidoc
# Initialize the library
pydigidoc.initialize("MyApp")
# Create a container and add files
doc = pydigidoc.Container.create("document.asice")
doc.add_data_file("report.pdf", "application/pdf")
# Sign with a PKCS#12 certificate
signer = pydigidoc.PKCS12Signer("certificate.p12", "password")
doc.sign(signer)
doc.save()
# Open and verify an existing container
doc = pydigidoc.Container.open("document.asice")
for sig in doc.signatures():
print(f"Signed by: {sig.signed_by()}")
sig.validate()
# Clean up
pydigidoc.terminate()
Building from source
Prerequisites
- Python 3.10+
- CMake 3.20+
- SWIG 4.0+
- C++23 compiler (GCC 13+, Clang 16+, MSVC 2022+)
- OpenSSL 3.0+, libxml2, zlib, xmlsec1
Build
git clone --recurse-submodules https://github.com/namespace-ee/pydigidoc.git
cd pydigidoc
pip install .
License
LGPL-2.1-or-later. See LICENSE for the full text and RELINKING.md for relinking instructions.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pydigidoc-0.0.2.tar.gz.
File metadata
- Download URL: pydigidoc-0.0.2.tar.gz
- Upload date:
- Size: 1.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34928ae8782de3a2d7b64597da511db27dbe3f88fa7e12e95360e9a59296f08d
|
|
| MD5 |
daf5f6de56a77ca6afa79b09843ff8a5
|
|
| BLAKE2b-256 |
d4b0b1433c3b05ca713db3eda871a1bfd53e0ee62039e2ece4f03de12aa1746d
|
Provenance
The following attestation bundles were made for pydigidoc-0.0.2.tar.gz:
Publisher:
build.yml on namespace-ee/pydigidoc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pydigidoc-0.0.2.tar.gz -
Subject digest:
34928ae8782de3a2d7b64597da511db27dbe3f88fa7e12e95360e9a59296f08d - Sigstore transparency entry: 954806281
- Sigstore integration time:
-
Permalink:
namespace-ee/pydigidoc@32ffae210bc2eecf9697ca1761720702b8ff9bee -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/namespace-ee
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@32ffae210bc2eecf9697ca1761720702b8ff9bee -
Trigger Event:
release
-
Statement type:
File details
Details for the file pydigidoc-0.0.2-cp314-cp314-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: pydigidoc-0.0.2-cp314-cp314-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 5.0 MB
- Tags: CPython 3.14, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
075d1748929eeeaed724ca0c2544e7594d0a565f92a0dba8bcfe7045d21e5392
|
|
| MD5 |
91eb5f6ac73089fb1b8b791bb97a7919
|
|
| BLAKE2b-256 |
51aa2a9adb0382e0e9e2303d3d2f95a86d146bb03a416d421bc60501b46b2037
|
Provenance
The following attestation bundles were made for pydigidoc-0.0.2-cp314-cp314-manylinux_2_28_x86_64.whl:
Publisher:
build.yml on namespace-ee/pydigidoc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pydigidoc-0.0.2-cp314-cp314-manylinux_2_28_x86_64.whl -
Subject digest:
075d1748929eeeaed724ca0c2544e7594d0a565f92a0dba8bcfe7045d21e5392 - Sigstore transparency entry: 954806287
- Sigstore integration time:
-
Permalink:
namespace-ee/pydigidoc@32ffae210bc2eecf9697ca1761720702b8ff9bee -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/namespace-ee
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@32ffae210bc2eecf9697ca1761720702b8ff9bee -
Trigger Event:
release
-
Statement type:
File details
Details for the file pydigidoc-0.0.2-cp313-cp313-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: pydigidoc-0.0.2-cp313-cp313-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 5.0 MB
- Tags: CPython 3.13, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a7fd71058e2f420714d6f73ed2d2a44e387a3cbbbe33eaa4ca4f46a0a9cdd60
|
|
| MD5 |
070a41640cdff88d875cfde1e4cc6c27
|
|
| BLAKE2b-256 |
119d5017d9def2671ce08104bbd1a5f886cd72249a541de876d395447f756c40
|
Provenance
The following attestation bundles were made for pydigidoc-0.0.2-cp313-cp313-manylinux_2_28_x86_64.whl:
Publisher:
build.yml on namespace-ee/pydigidoc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pydigidoc-0.0.2-cp313-cp313-manylinux_2_28_x86_64.whl -
Subject digest:
4a7fd71058e2f420714d6f73ed2d2a44e387a3cbbbe33eaa4ca4f46a0a9cdd60 - Sigstore transparency entry: 954806282
- Sigstore integration time:
-
Permalink:
namespace-ee/pydigidoc@32ffae210bc2eecf9697ca1761720702b8ff9bee -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/namespace-ee
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@32ffae210bc2eecf9697ca1761720702b8ff9bee -
Trigger Event:
release
-
Statement type:
File details
Details for the file pydigidoc-0.0.2-cp312-cp312-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: pydigidoc-0.0.2-cp312-cp312-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 5.0 MB
- Tags: CPython 3.12, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7488f5faaa8162f1770d209994cd66ffc4187d866295070943ac8394eebda034
|
|
| MD5 |
8a2d9f0a2a6d6f7d98d05ca2eef08c2c
|
|
| BLAKE2b-256 |
272c9c46ed2cd855e881b6afbb3fbe69c2013a627241b88715f727342b1f5573
|
Provenance
The following attestation bundles were made for pydigidoc-0.0.2-cp312-cp312-manylinux_2_28_x86_64.whl:
Publisher:
build.yml on namespace-ee/pydigidoc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pydigidoc-0.0.2-cp312-cp312-manylinux_2_28_x86_64.whl -
Subject digest:
7488f5faaa8162f1770d209994cd66ffc4187d866295070943ac8394eebda034 - Sigstore transparency entry: 954806286
- Sigstore integration time:
-
Permalink:
namespace-ee/pydigidoc@32ffae210bc2eecf9697ca1761720702b8ff9bee -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/namespace-ee
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@32ffae210bc2eecf9697ca1761720702b8ff9bee -
Trigger Event:
release
-
Statement type:
File details
Details for the file pydigidoc-0.0.2-cp311-cp311-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: pydigidoc-0.0.2-cp311-cp311-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 5.0 MB
- Tags: CPython 3.11, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1bbbc81bb6e7d4f3784d16246f33b0a34e8adb80cdf2b776b0b4def5b418c3c7
|
|
| MD5 |
c2a2f8bf02d2e8e84490884ec7c5d1ff
|
|
| BLAKE2b-256 |
ccd56ba188d4ad42514e1340d6d3ecf6cbc46fe2f4eccd1cc37f50315de8b1c5
|
Provenance
The following attestation bundles were made for pydigidoc-0.0.2-cp311-cp311-manylinux_2_28_x86_64.whl:
Publisher:
build.yml on namespace-ee/pydigidoc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pydigidoc-0.0.2-cp311-cp311-manylinux_2_28_x86_64.whl -
Subject digest:
1bbbc81bb6e7d4f3784d16246f33b0a34e8adb80cdf2b776b0b4def5b418c3c7 - Sigstore transparency entry: 954806283
- Sigstore integration time:
-
Permalink:
namespace-ee/pydigidoc@32ffae210bc2eecf9697ca1761720702b8ff9bee -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/namespace-ee
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@32ffae210bc2eecf9697ca1761720702b8ff9bee -
Trigger Event:
release
-
Statement type:
File details
Details for the file pydigidoc-0.0.2-cp310-cp310-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: pydigidoc-0.0.2-cp310-cp310-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 5.0 MB
- Tags: CPython 3.10, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
095a998ea90014583a1c9d57c69b8ee0f470957f24855fafd156507bf06063f6
|
|
| MD5 |
52529527fe5f728d9579ef3268b87562
|
|
| BLAKE2b-256 |
c10925a61858265d3599b4181a66c9d01c02d915798c88a8247f31729d3e6973
|
Provenance
The following attestation bundles were made for pydigidoc-0.0.2-cp310-cp310-manylinux_2_28_x86_64.whl:
Publisher:
build.yml on namespace-ee/pydigidoc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pydigidoc-0.0.2-cp310-cp310-manylinux_2_28_x86_64.whl -
Subject digest:
095a998ea90014583a1c9d57c69b8ee0f470957f24855fafd156507bf06063f6 - Sigstore transparency entry: 954806285
- Sigstore integration time:
-
Permalink:
namespace-ee/pydigidoc@32ffae210bc2eecf9697ca1761720702b8ff9bee -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/namespace-ee
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@32ffae210bc2eecf9697ca1761720702b8ff9bee -
Trigger Event:
release
-
Statement type: