Skip to main content

PolyXML

PolyXML Python Bindings

PyPI Python: 3.12+ Documentation License: MIT

High-performance native XML data-binding engine for Python dataclasses and Pydantic models.

Powered by polyxml-core written in Rust and PyO3 (abi3-py312).


Installation

pip install polyxml

Features

  • ⚡ Fast typed XML binding: 10.0x faster deserialization and 23.5x faster serialization than xsdata on the 10,000-item catalog benchmark.
  • 🌊 Streaming iterparse(): Process records incrementally; measure memory on your own document structure.
  • 📦 Binary Serialization: Native dumps_binary() and loads_binary() using MessagePack (msgspec).
  • 🎯 Full Type Support: Dataclasses and Pydantic v2 models with zero boilerplate.

Quickstart

from dataclasses import dataclass, field
import polyxml


@dataclass
class Item:
    id: int = field(metadata={"type": "Attribute"})
    name: str = field(metadata={"type": "Element"})


# 1. XML Deserialization
item = polyxml.deserialize(b'<Item id="1"><name>Gadget</name></Item>', Item)

# 2. XML Serialization
xml = polyxml.serialize(item, indent=2)

# 3. High-Speed Binary Serialization (Key-Value databases / IPC)
blob = polyxml.dumps_binary(item)
restored = polyxml.loads_binary(blob, Item)

Metadata

Release files for polyxml 0.43.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for polyxml 0.43.0
File Size Uploaded Provenance Actions
polyxml-0.43.0.tar.gz 420.5 kB With provenance Details for polyxml-0.43.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for polyxml 0.43.0
File Actions
polyxml-0.43.0-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details for polyxml-0.43.0-cp312-abi3-win_amd64.whl
polyxml-0.43.0-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.12 abi3 Linux glibc 2.17+ x86-64 Details for polyxml-0.43.0-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
polyxml-0.43.0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.12 abi3 Linux glibc 2.17+ ARM64 Details for polyxml-0.43.0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
polyxml-0.43.0-cp312-abi3-macosx_11_0_arm64.whl CPython 3.12 abi3 macOS 11.0+ ARM64 Details for polyxml-0.43.0-cp312-abi3-macosx_11_0_arm64.whl
polyxml-0.43.0-cp312-abi3-macosx_10_12_x86_64.whl CPython 3.12 abi3 macOS 10.12+ x86-64 Details for polyxml-0.43.0-cp312-abi3-macosx_10_12_x86_64.whl

Total release size: 6.6 MB

Release files / polyxml-0.43.0.tar.gz

Download URL polyxml-0.43.0.tar.gz
Size 420.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c5275d6f1570a30a185b80a5193084ffc9829f5a0f3bffc0fe8aebf06f2d52f3
BLAKE2b-256 checksum
How to use checksums
32021c33616c9e1e80c407745312cba13e6bd1c63b31cdbcf989791623a2df3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / polyxml-0.43.0-cp312-abi3-win_amd64.whl

Download URL polyxml-0.43.0-cp312-abi3-win_amd64.whl
Size 1.2 MB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
ec3c59873f5c3c71679604f30527db4234e79625dae356538af618effedc5321
BLAKE2b-256 checksum
How to use checksums
d6e89c9a91607f4213508844f41201b6cc5284505cedf2cc705adbf6730a0b36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / polyxml-0.43.0-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL polyxml-0.43.0-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 1.3 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
99bb843af16c1b08035e16ae35a21ce8f9bd77c214b183505f4e20cf106fa940
BLAKE2b-256 checksum
How to use checksums
92eb04aebd7437850802c28ce76cf2d8ba3105868613955b22e3d992cfc84994
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / polyxml-0.43.0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL polyxml-0.43.0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 1.3 MB
Tags CPython 3.12 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
c472eeb53b979bba5727d1d2652587c33da48eee2013db2e6c729c039451a5a1
BLAKE2b-256 checksum
How to use checksums
19916195365ce270505030c9728b4f16216a7c5991f3abbf1409fb74c628caa2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / polyxml-0.43.0-cp312-abi3-macosx_11_0_arm64.whl

Download URL polyxml-0.43.0-cp312-abi3-macosx_11_0_arm64.whl
Size 1.1 MB
Tags CPython 3.12 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1bd57fdda92cc724100c4e3bece54a8b42c29bf03c75a7c4a9874304b718bb6c
BLAKE2b-256 checksum
How to use checksums
fea3492c25153e18d1f7dfe84016a8ab84b9d7907ca0f96f4e6391e74c5615f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / polyxml-0.43.0-cp312-abi3-macosx_10_12_x86_64.whl

Download URL polyxml-0.43.0-cp312-abi3-macosx_10_12_x86_64.whl
Size 1.2 MB
Tags CPython 3.12 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
ad8b14ccc13f62f14c885a58e23d69482daa93b7f0ba13d35743f83737679e74
BLAKE2b-256 checksum
How to use checksums
5f91ce4ed96b47eb75e1cd5c90dbaef0c810e002a7f8bd1ea4d19684ab8dab77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Security for polyxml 0.43.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for polyxml-0.43.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.43.0 This release

6 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page