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.dev38.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.dev38-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: swarmauri_signing_xmld-0.1.0.dev38.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.dev38.tar.gz
Algorithm Hash digest
SHA256 df2b00183a67ed28ad8b7200c7b4334cc48f6a8b8ca86c1eda25eeb9ef1b95cb
MD5 5ebaf2cb41200b194072b6e33ae79201
BLAKE2b-256 df56699a7a0c35eb1ed8a32442dfb0fe0426a24472240a8c7b857a21e4f2cc46

See more details on using hashes here.

File details

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

File metadata

  • Download URL: swarmauri_signing_xmld-0.1.0.dev38-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.dev38-py3-none-any.whl
Algorithm Hash digest
SHA256 f0501d17d359377fcbe478fd4e60bcaedd3cfe62ff9b02a86a75869e29a8a46f
MD5 b5d73a3832ee8e329e3ada3436edcefb
BLAKE2b-256 3dcbd9699857186118bb129ae84296aad658a67d1c404b032404ab5e4d746a59

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