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

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.35.4
File Size Uploaded Provenance Actions
polyxml-0.35.4.tar.gz 380.3 kB With provenance Details for polyxml-0.35.4.tar.gz

Built distributions (wheels)

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

Total release size: 6.4 MB

Release files / polyxml-0.35.4.tar.gz

Download URL polyxml-0.35.4.tar.gz
Size 380.3 kB
Tags Source
SHA-256 checksum
How to use checksums
6bcb2bc4687326c4d926f2ed2b320ddb2a4024964d6af7137758f2c9d766813b
BLAKE2b-256 checksum
How to use checksums
df59fe0149478edef58782559e66b3086b052fbf9de508f8e7e5c2ae9b8bd531
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 9, 2026.

Transparency log

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

Download URL polyxml-0.35.4-cp312-abi3-win_amd64.whl
Size 1.2 MB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
ffb4c24aaa0b8fcdfb5b59b9e48328311b04cd653dc06ec35934fd6b733c84b4
BLAKE2b-256 checksum
How to use checksums
91330f09c571b2f2c8b0169ec6cf0d43d4974839f0ea814e9f58c4b152d5c0a0
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 9, 2026.

Transparency log

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

Download URL polyxml-0.35.4-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
2f20612d1aac195580766467f6dc0a23c031f3cc0e3d417143a51c32a9c5cc55
BLAKE2b-256 checksum
How to use checksums
d50da046b4386824b389a76d5f67f12377a4556e9c06ce41a9339976c546c64e
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 9, 2026.

Transparency log

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

Download URL polyxml-0.35.4-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
80461e2e55d8770bf6be1bb535c346f0571c2f10b6e31097391f5fc9630edbd8
BLAKE2b-256 checksum
How to use checksums
b6a659984f20e82f5f52b78136e74689f83b31abd5001d1a036016be8194ef97
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 9, 2026.

Transparency log

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

Download URL polyxml-0.35.4-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
1fcd5b6f5dd58343d709b9379713de0d83a2f4af01a86f579114e419ffdf50c3
BLAKE2b-256 checksum
How to use checksums
92d78b920db167f67047811b01b56987bd9f6a31b2d515c4d2bd7695762e1a5e
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 9, 2026.

Transparency log

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

Download URL polyxml-0.35.4-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
34a0dc71acf2b6dfea220b5544f920369f332eebfb0ab4bd19a9ca06d7936f3c
BLAKE2b-256 checksum
How to use checksums
9a0ca27e920b4fa68d10c9fbf49acecf7060da7ef6697e0d7ed4484dc4002115
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 9, 2026.

Transparency log

Security for polyxml 0.35.4

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.35.4.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 9, 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.35.4 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