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.39.3

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.39.3
File Size Uploaded Provenance Actions
polyxml-0.39.3.tar.gz 388.5 kB With provenance Details for polyxml-0.39.3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for polyxml 0.39.3
File Actions
polyxml-0.39.3-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details for polyxml-0.39.3-cp312-abi3-win_amd64.whl
polyxml-0.39.3-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.39.3-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
polyxml-0.39.3-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.12 abi3 Linux glibc 2.17+ ARM64 Details for polyxml-0.39.3-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
polyxml-0.39.3-cp312-abi3-macosx_11_0_arm64.whl CPython 3.12 abi3 macOS 11.0+ ARM64 Details for polyxml-0.39.3-cp312-abi3-macosx_11_0_arm64.whl
polyxml-0.39.3-cp312-abi3-macosx_10_12_x86_64.whl CPython 3.12 abi3 macOS 10.12+ x86-64 Details for polyxml-0.39.3-cp312-abi3-macosx_10_12_x86_64.whl

Total release size: 6.5 MB

Release files / polyxml-0.39.3.tar.gz

Download URL polyxml-0.39.3.tar.gz
Size 388.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c8f237daae1ba901208e0a0f0fb4a2b2710b2460852dfff3e7069066c8770604
BLAKE2b-256 checksum
How to use checksums
83a3f1242fe64d9f9171ee0b224a019b92fef9433eccccb45e468c42e5022c92
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 14, 2026.

Transparency log

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

Download URL polyxml-0.39.3-cp312-abi3-win_amd64.whl
Size 1.2 MB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
0aac1f0b707dee151a7f51a95444f25c785448314c2f01d63ac6b733797d8e91
BLAKE2b-256 checksum
How to use checksums
5ca1289177199ed87050aad0e9d1c0016b4fb6118ce7f2f10e5d65c728f1a43f
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 14, 2026.

Transparency log

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

Download URL polyxml-0.39.3-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
cc48757b38162cf8172024a2033a7ebb754715cda69f6a6b8556fe5a5d290963
BLAKE2b-256 checksum
How to use checksums
3007eb662f483e322b855b7f07301db7a5f2316859cd4c92aef59c574786c9e4
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 14, 2026.

Transparency log

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

Download URL polyxml-0.39.3-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 1.2 MB
Tags CPython 3.12 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
2ad8fffc4b907f1543017b438319da19bd7fa8bf9fb027c4cedc5419df880a6e
BLAKE2b-256 checksum
How to use checksums
d14d62243667bbc556c6661c02ae575b77a59bd6e8296c374af2de7efd8eb65c
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 14, 2026.

Transparency log

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

Download URL polyxml-0.39.3-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
c56258cb020f9b866efb390fe5a584145d745ab0093694ca48179c60bc273819
BLAKE2b-256 checksum
How to use checksums
cfe8b6ef017d29b18ae4091fc3b3d6b74d8b75939f5f8665eb1b2c7fba3201ac
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 14, 2026.

Transparency log

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

Download URL polyxml-0.39.3-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
da37d08eee8bdd864bf5929dce7f43335a7bcf1cb8e2f801bad53eeea99377cb
BLAKE2b-256 checksum
How to use checksums
3b6ece47a70e46bc510cb638c07279626bb225b3da48f87ec4cedf2754459917
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 14, 2026.

Transparency log

Security for polyxml 0.39.3

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.39.3.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 14, 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.39.3 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