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.5+, libxml2, zlib, xmlsec1

Build

git clone --recurse-submodules https://github.com/namespace-ee/pydigidoc.git
cd pydigidoc
uv build --wheel

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

Uploaded CPython 3.14Windows x86-64

pydigidoc-0.0.4-cp314-cp314-manylinux_2_28_x86_64.whl (5.7 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ x86-64

pydigidoc-0.0.4-cp314-cp314-macosx_15_0_arm64.whl (3.9 MB view details)

Uploaded CPython 3.14macOS 15.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

pydigidoc-0.0.4-cp313-cp313-manylinux_2_28_x86_64.whl (5.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

pydigidoc-0.0.4-cp313-cp313-macosx_15_0_arm64.whl (3.9 MB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

pydigidoc-0.0.4-cp312-cp312-manylinux_2_28_x86_64.whl (5.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

pydigidoc-0.0.4-cp312-cp312-macosx_15_0_arm64.whl (3.9 MB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

pydigidoc-0.0.4-cp311-cp311-manylinux_2_28_x86_64.whl (5.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

pydigidoc-0.0.4-cp311-cp311-macosx_15_0_arm64.whl (3.9 MB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

pydigidoc-0.0.4-cp310-cp310-manylinux_2_28_x86_64.whl (5.7 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

pydigidoc-0.0.4-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.4.tar.gz.

File metadata

  • Download URL: pydigidoc-0.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 14c274c7aa4bef5776bb5e8a856d0096dfc49a8b219e37003e6f63bd57a252d7
MD5 db482ac00abae9cb398d28836ae5d713
BLAKE2b-256 524330310dfa04e1768f6d099c9f3dcc1bc8d26943dbddb10c12d6c12580e23f

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pydigidoc-0.0.4-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.4-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 5d4605a51f498f15e0cd6a9617e2a6e853ed04892e32877f33897d99940dd0c0
MD5 ac099f62c5a05482633c5e7a0b393963
BLAKE2b-256 0052f5dd420d9fcc31cf881435f8bf36aab516394147858ae9cb36a177c382cc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pydigidoc-0.0.4-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3fa0e1ee5be53eb02eda1a9daec73bffe78df6dcb31d2e3c2de2e5178af9ee16
MD5 5bd1a053fcb57f67ce8acf5b1083d4fa
BLAKE2b-256 99da0f08d2bd8e12dbbb93003901da6df1e50d0109cc31735c2623242de441aa

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pydigidoc-0.0.4-cp314-cp314-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 dd4aa866351468b90c3b7bea920ac9d7e72c9390105c22964eea1bb78537ec06
MD5 d4d4e4760082a8fc9136c1429c9ce401
BLAKE2b-256 a73b3597e89355b5575dd072086c88b517bcc1ce38e8904c040e6046100f2a78

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pydigidoc-0.0.4-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.4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 ba14984513573236c02d96a85ecd186910b7c91b49a85301e7590ed2c62c5d95
MD5 23fa3f3578bd8fed97f6c62d7d0f78b0
BLAKE2b-256 45a5206fa76f06ba39cf2c7cc091a26413aa967ecdb34ebf6dffddf0e88e93b6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pydigidoc-0.0.4-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d1647971cdea1927e0bed2845ecf450c79ede81e491d554233a074952a277493
MD5 c508ccd5c4c82ae8c5dec613eca6d1b3
BLAKE2b-256 01bff2fee8a08114420c9b939d3f0a7301d22814234a248d9b1c33841c9d57ad

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pydigidoc-0.0.4-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 8a9f7749d1f93987a69feb5e5b413401bcf2c43754c03b7fef725b0a1cede6bc
MD5 a7124643b26be7de15dd387b109b2238
BLAKE2b-256 d34d7b951feb2c9fb251e39d3696531ad2e083377c4329271c28962a54c0dab3

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pydigidoc-0.0.4-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.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9d2b27a4c12fd85e3cef597b02650dfee995aa6305b9b7af1878dd3a22b9bb06
MD5 999a84d5401c4d1198106292bd53a5ec
BLAKE2b-256 f281da4976aa246398fd9fea224efd85c1212bc3c73ec0023637bdf15d2ce66a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pydigidoc-0.0.4-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 df6ab8aa1df9104994dc79e760b465d6c3c63f54babe29bb1de9a4339b6233e9
MD5 289a6672615acbd6080a40180e110ce9
BLAKE2b-256 71b89563733a07816bb3399c2fc4f9a9870e7735ad824a45ee04f2d398e43924

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pydigidoc-0.0.4-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 94576904ef00996ffcb3f983fbabdadc857f27bea57af5685b5880ce8e76f774
MD5 fa1aa4497fbe09e2d0f5de3c8c267014
BLAKE2b-256 a0652d1ed3d7d7fb009a430480378cdcdbb143cbcfe09546ff64d41e00636d81

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pydigidoc-0.0.4-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.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 be92281b86a93785e78db4ec7fa1719c4bbf390752e05a4bf607a5406cce2762
MD5 f1458e6e9432a0ade561540b4b84dde4
BLAKE2b-256 de913ca1dc586eaaf995a545cdc710a0045bc4859ad7969a405277c99c5b23f6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pydigidoc-0.0.4-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0bdb0f5eeda409bd625869131af9556369b201a430934832b1ca94ead5f3068d
MD5 f9d71644dd3518f0b5a6fe73d8eb297f
BLAKE2b-256 5d29c0ae6b25d48dbbdd075c76c73ebfb6819abb570753309faa7deecda59fef

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pydigidoc-0.0.4-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 4e455877ad45ce68de699865db80755cda5d66cb37d168cde119b334764827c6
MD5 c9449e61c3c1dbb7212a5974e6d324b7
BLAKE2b-256 6454ded7b42850c7ae0a8a3839bfcb2bd054f6951ae55e2fbdff508ef2f7ce12

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pydigidoc-0.0.4-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.4-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 24ccd670312cb5f25f6562423fc7051d7b9504c98c319c5a41c7be0db7ac4ddd
MD5 63642be3aafb077e430b299c59ed7761
BLAKE2b-256 6c6fa810873beb860191210bd30c4b26dd528462265e3840454b768cf8fd5d67

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pydigidoc-0.0.4-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8d7676ad08e7ce0f56866d21a1318180e9425718ca135fe34ac8d4b9bcd38649
MD5 223098c0b6448ad4efeb8aab546747da
BLAKE2b-256 d790baaef75bc1f06a6d6bcd774ee9e9dac830bc320d2b4de5cde7154cda074c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pydigidoc-0.0.4-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 dace461499126a869667eb066fdadcd75cb380b494be9b4375d8c53660fd3c10
MD5 c135a3d04b1ab29797973ce84f20e043
BLAKE2b-256 fe1ca3f8e19b4991a8addb536e97708e0dd3c796906f9caf5cc5b47627046476

See more details on using hashes here.

Provenance

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