Skip to main content

XML Digital Signature implementation for the Swarmauri SigningBase registry

Project description

Swarmauri logotype

swarmauri_signing_xmld

Status: experimental License: Apache-2.0 Python versions

swarmauri_signing_xmld packages an XML Digital Signature (XMLDSig) provider that registers with the Swarmauri SigningBase registry. The signer focuses on canonicalized XML payloads and produces detached signatures that can be embedded into workflow-specific envelopes.

Installation

uv

uv pip install swarmauri_signing_xmld

pip

pip install swarmauri_signing_xmld

Usage

from swarmauri_signing_xmld import XMLDSigner

signer = XMLDSigner()
xml_payload = """<note><to>Alice</to><from>Bob</from></note>""".encode()

signature = await signer.sign_bytes(
    key={
        "kind": "pem",
        "private_key": "/path/to/private_key.pem",
        "certificate": "/path/to/certificate.pem",
    },
    payload=xml_payload,
)

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

swarmauri_signing_xmld-0.1.0.dev42.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

swarmauri_signing_xmld-0.1.0.dev42-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file swarmauri_signing_xmld-0.1.0.dev42.tar.gz.

File metadata

  • Download URL: swarmauri_signing_xmld-0.1.0.dev42.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for swarmauri_signing_xmld-0.1.0.dev42.tar.gz
Algorithm Hash digest
SHA256 0075295d795c43e2e795f884785fe0842eae15b718657e09864e8f54260b59cd
MD5 30ad89a0ddc66e706047a417f6f5ca80
BLAKE2b-256 2bd9acd923054729df7d7574c652cd88d3b593d0c269fabe164acead13976079

See more details on using hashes here.

File details

Details for the file swarmauri_signing_xmld-0.1.0.dev42-py3-none-any.whl.

File metadata

  • Download URL: swarmauri_signing_xmld-0.1.0.dev42-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for swarmauri_signing_xmld-0.1.0.dev42-py3-none-any.whl
Algorithm Hash digest
SHA256 ba6e86112ff2b7c47aac00592c621a0e05a6f90d0e7d50032bda9dfa477a84e8
MD5 70476b4c19050ed0013620abd297ba6a
BLAKE2b-256 34448e3335223980bddc0380a4a2ae8b6ad69f107e1a86bd19d8e80fa48c8f38

See more details on using hashes here.

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