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.3.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.3-cp314-cp314-win_amd64.whl (4.9 MB view details)

Uploaded CPython 3.14Windows x86-64

pydigidoc-0.0.3-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.3-cp314-cp314-macosx_15_0_arm64.whl (3.9 MB view details)

Uploaded CPython 3.14macOS 15.0+ ARM64

pydigidoc-0.0.3-cp313-cp313-win_amd64.whl (4.9 MB view details)

Uploaded CPython 3.13Windows x86-64

pydigidoc-0.0.3-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.3-cp313-cp313-macosx_15_0_arm64.whl (3.9 MB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

pydigidoc-0.0.3-cp312-cp312-win_amd64.whl (4.9 MB view details)

Uploaded CPython 3.12Windows x86-64

pydigidoc-0.0.3-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.3-cp312-cp312-macosx_15_0_arm64.whl (3.9 MB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

pydigidoc-0.0.3-cp311-cp311-win_amd64.whl (4.9 MB view details)

Uploaded CPython 3.11Windows x86-64

pydigidoc-0.0.3-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.3-cp311-cp311-macosx_15_0_arm64.whl (3.9 MB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

pydigidoc-0.0.3-cp310-cp310-win_amd64.whl (4.9 MB view details)

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

pydigidoc-0.0.3-cp310-cp310-macosx_15_0_arm64.whl (3.9 MB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

File details

Details for the file pydigidoc-0.0.3.tar.gz.

File metadata

  • Download URL: pydigidoc-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 c17bb99f9a2f7b9902225810070a36ee804a17fe6dc3ac157684aea93a9ea9c8
MD5 ee22a7ab42ce4ca41853e315a374e013
BLAKE2b-256 d56dcb3b3f994ebc601630f483423dfdfcded47b50c41c93224ce38fdf7608a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for pydigidoc-0.0.3.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.3-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: pydigidoc-0.0.3-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 4.9 MB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pydigidoc-0.0.3-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 bf9e3de5800112d360f21ac0abae445cfabfc67bdf182dbc1382c6269fac3bbe
MD5 d2623d4a062bc8a1860609cba362fd93
BLAKE2b-256 7f0f1934563c650253d42162f14cd278a3d0aa79691e3d6db187041d5138554c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pydigidoc-0.0.3-cp314-cp314-win_amd64.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.3-cp314-cp314-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pydigidoc-0.0.3-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fa8604efedaaff8d87e155d294cebb5014a3bb09619c00f86b76beec06d4bb23
MD5 84ad2c8b2037d2e09a7509e7034ad828
BLAKE2b-256 81576a8a6747c6431cd23b1e8d8a7d3c8b984a32501a58bf257b08ac7089d142

See more details on using hashes here.

Provenance

The following attestation bundles were made for pydigidoc-0.0.3-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.3-cp314-cp314-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for pydigidoc-0.0.3-cp314-cp314-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 e9a043d87f78f8c4d939b9c951738f85301d46afa69a5be50c7500b23998ea42
MD5 f5e138b9b22e7ed14b78ead8cf59734b
BLAKE2b-256 fd1198a9cc7c0c612789fc1252df256f8d9127ae4cf24ef5c011040d15add16b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pydigidoc-0.0.3-cp314-cp314-macosx_15_0_arm64.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.3-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: pydigidoc-0.0.3-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 4.9 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pydigidoc-0.0.3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 ff8d6c2e47261ce39b3e90246d82b6a7c0d7acf5c331a420fcd60301e3e68d49
MD5 7f5ed6f09df16453fbeff6fecf548da6
BLAKE2b-256 666fbd6df45d767c561a3accc59cc027581add3a772cba0ab26afbd7be51bfcf

See more details on using hashes here.

Provenance

The following attestation bundles were made for pydigidoc-0.0.3-cp313-cp313-win_amd64.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.3-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pydigidoc-0.0.3-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1bb1a428a64d44ed4f1dcd4d946dd10254f8d6816759c2feff29a9717eddd790
MD5 f146eedb8b244a05a51f0886e8b4a8ff
BLAKE2b-256 a10bb07de773010c9b04f73b0e7e62d67585550047a5908cad1d941cbe5f6856

See more details on using hashes here.

Provenance

The following attestation bundles were made for pydigidoc-0.0.3-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.3-cp313-cp313-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for pydigidoc-0.0.3-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 0d9f2ec049bc8613f6302e169bd082da45fb62e552efe72062f48ed2937b2691
MD5 7fe8dbae6fe6f214e48f5354ce994437
BLAKE2b-256 b95322d7e0af5194416e01a31da0dbcebe67f6bf96adb31a388b86c1bec61867

See more details on using hashes here.

Provenance

The following attestation bundles were made for pydigidoc-0.0.3-cp313-cp313-macosx_15_0_arm64.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.3-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: pydigidoc-0.0.3-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 4.9 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pydigidoc-0.0.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3cfa1806a24cad9f5d10fa7536cb9e3976725fe2b2c3380a81fd5ddcf5143c1a
MD5 ed2510fab321718693cbe6a5797d89f0
BLAKE2b-256 af5fbc2108a9c8614ec1ee06c4bca9a094644fdcd1e96231035da073b7f51066

See more details on using hashes here.

Provenance

The following attestation bundles were made for pydigidoc-0.0.3-cp312-cp312-win_amd64.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.3-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pydigidoc-0.0.3-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a62e251188d60ac2ddffc2a5933c219835f0341e1fb65193de2ceb38e4d3ed49
MD5 4c9519689b4ea063d60f3dbed6470dfd
BLAKE2b-256 9534701e918718d2210cf05760bfc9582b16c5d2e59b0b94982bf0d3e566f07c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pydigidoc-0.0.3-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.3-cp312-cp312-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for pydigidoc-0.0.3-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 7eae7dd777d84b24ec87245b6ba9e6ba9889a381f63760c68f3a8f622cb16632
MD5 ab78dca7a21c157ef20bc230bc753abf
BLAKE2b-256 ae8c235dbe331c4089a5e818c8d556adc03d560c56d40f13886fa5b087d1225c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pydigidoc-0.0.3-cp312-cp312-macosx_15_0_arm64.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.3-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: pydigidoc-0.0.3-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 4.9 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pydigidoc-0.0.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1857e0667e6b16770c707e7c66b6035c0341f20ae8607e685bfec5999bf9f57b
MD5 6b049b48c4ef4e643c70c6a65284be15
BLAKE2b-256 a82e7d19b9035b8ba7bee91841c50b0764246d00638215f7acc3b77e9f715672

See more details on using hashes here.

Provenance

The following attestation bundles were made for pydigidoc-0.0.3-cp311-cp311-win_amd64.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.3-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pydigidoc-0.0.3-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 51f024494aa2751fc8a9a40409597aa128a75eb92db402d365e6a2297395bbc7
MD5 ae23a53663329b5226c2b380101f603b
BLAKE2b-256 278573ddd95b32b569f518c4481246edec26bc398daf736551cdba47215f57de

See more details on using hashes here.

Provenance

The following attestation bundles were made for pydigidoc-0.0.3-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.3-cp311-cp311-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for pydigidoc-0.0.3-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 718056bf485d1cee16f0ecc515710e2eff9035c872202317c84a8ddd0c9244d2
MD5 5548c812a7ee1d761f82a4690822f316
BLAKE2b-256 9ce7cfe37c694d68c4ecc880d506695c27df8188ed1136990e7b34db1f9b1107

See more details on using hashes here.

Provenance

The following attestation bundles were made for pydigidoc-0.0.3-cp311-cp311-macosx_15_0_arm64.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.3-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: pydigidoc-0.0.3-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 4.9 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pydigidoc-0.0.3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d983bf9519e8be4737c738d6e26e464baa80c8fe48b77fdf105de2a1bcddbe19
MD5 d4524ea5c659a8588e9be67f72289b61
BLAKE2b-256 5bea783e9dadace2aa1166fe6c59df9a338bd78e9bf1189e704c10a3f0e4f0e3

See more details on using hashes here.

Provenance

The following attestation bundles were made for pydigidoc-0.0.3-cp310-cp310-win_amd64.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.3-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pydigidoc-0.0.3-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1b86f3798e2f75da6c77d0613ae3498e49883440e82c9c78d34659189cc03af7
MD5 662ccfab8bfd527f9601b2c35da96d1b
BLAKE2b-256 ca5242d091ac438db709348c98d1b87b01064b6da564bbb88f5d49e16d9e8ce8

See more details on using hashes here.

Provenance

The following attestation bundles were made for pydigidoc-0.0.3-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.

File details

Details for the file pydigidoc-0.0.3-cp310-cp310-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for pydigidoc-0.0.3-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 c165d86d1ba4f12d17f9c54c8197d8757a5fd6e6dbf3506af92ef27ab3dba234
MD5 d17f0f502a18b725d99aec05357f3852
BLAKE2b-256 d6d3a0c7d7222bd172737c7ff984cb6f9e1597ffae498139afcf05ada4323512

See more details on using hashes here.

Provenance

The following attestation bundles were made for pydigidoc-0.0.3-cp310-cp310-macosx_15_0_arm64.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