Skip to main content

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

pydigidoc-0.0.2.tar.gz (1.7 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pydigidoc-0.0.2-cp314-cp314-manylinux_2_28_x86_64.whl (5.0 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ x86-64

pydigidoc-0.0.2-cp313-cp313-manylinux_2_28_x86_64.whl (5.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

pydigidoc-0.0.2-cp312-cp312-manylinux_2_28_x86_64.whl (5.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

pydigidoc-0.0.2-cp311-cp311-manylinux_2_28_x86_64.whl (5.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

pydigidoc-0.0.2-cp310-cp310-manylinux_2_28_x86_64.whl (5.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

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

Hashes for pydigidoc-0.0.2.tar.gz
Algorithm Hash digest
SHA256 34928ae8782de3a2d7b64597da511db27dbe3f88fa7e12e95360e9a59296f08d
MD5 daf5f6de56a77ca6afa79b09843ff8a5
BLAKE2b-256 d4b0b1433c3b05ca713db3eda871a1bfd53e0ee62039e2ece4f03de12aa1746d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pydigidoc-0.0.2.tar.gz:

Publisher: build.yml on namespace-ee/pydigidoc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pydigidoc-0.0.2-cp314-cp314-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pydigidoc-0.0.2-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 075d1748929eeeaed724ca0c2544e7594d0a565f92a0dba8bcfe7045d21e5392
MD5 91eb5f6ac73089fb1b8b791bb97a7919
BLAKE2b-256 51aa2a9adb0382e0e9e2303d3d2f95a86d146bb03a416d421bc60501b46b2037

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pydigidoc-0.0.2-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pydigidoc-0.0.2-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4a7fd71058e2f420714d6f73ed2d2a44e387a3cbbbe33eaa4ca4f46a0a9cdd60
MD5 070a41640cdff88d875cfde1e4cc6c27
BLAKE2b-256 119d5017d9def2671ce08104bbd1a5f886cd72249a541de876d395447f756c40

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pydigidoc-0.0.2-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pydigidoc-0.0.2-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7488f5faaa8162f1770d209994cd66ffc4187d866295070943ac8394eebda034
MD5 8a2d9f0a2a6d6f7d98d05ca2eef08c2c
BLAKE2b-256 272c9c46ed2cd855e881b6afbb3fbe69c2013a627241b88715f727342b1f5573

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pydigidoc-0.0.2-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pydigidoc-0.0.2-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1bbbc81bb6e7d4f3784d16246f33b0a34e8adb80cdf2b776b0b4def5b418c3c7
MD5 c2a2f8bf02d2e8e84490884ec7c5d1ff
BLAKE2b-256 ccd56ba188d4ad42514e1340d6d3ecf6cbc46fe2f4eccd1cc37f50315de8b1c5

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pydigidoc-0.0.2-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pydigidoc-0.0.2-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 095a998ea90014583a1c9d57c69b8ee0f470957f24855fafd156507bf06063f6
MD5 52529527fe5f728d9579ef3268b87562
BLAKE2b-256 c10925a61858265d3599b4181a66c9d01c02d915798c88a8247f31729d3e6973

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page