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.38.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.38.0
File Size Uploaded Provenance Actions
polyxml-0.38.0.tar.gz 386.1 kB With provenance Details for polyxml-0.38.0.tar.gz

Built distributions (wheels)

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

Total release size: 6.5 MB

Release files / polyxml-0.38.0.tar.gz

Download URL polyxml-0.38.0.tar.gz
Size 386.1 kB
Tags Source
SHA-256 checksum
How to use checksums
af1ecb8e38ffc97f0be50ee575b918721978c6b17b100eca28c2394749ca7127
BLAKE2b-256 checksum
How to use checksums
3db6c008a44594eb0c7f5474b729b1655e61eb83d5ba3e9d586be2a495db66ef
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 13, 2026.

Transparency log

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

Download URL polyxml-0.38.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
fa5bf268b3b475c8fc29f8e65b41d15f84b89851cc0f960bcba88ef50c139691
BLAKE2b-256 checksum
How to use checksums
7cafc29a403fce58cc44e33f35a15bc52c646031b01c84f55012440d9a3b773a
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 13, 2026.

Transparency log

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

Download URL polyxml-0.38.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
b9d39315ee84d9544918db33b5c10ea8ab181eef96eee78da9fc8e0d7f17fc9e
BLAKE2b-256 checksum
How to use checksums
51c040cb565c8c2dc3bdbf70576bacb863b14ea71efa2cbe24f3ab26b6a08e07
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 13, 2026.

Transparency log

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

Download URL polyxml-0.38.0-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
e6e91345fcfcaf77c31fc910ceef8220baa6da0e59bf1c44205b54037a8bf7c1
BLAKE2b-256 checksum
How to use checksums
a8360f91f5826c11685ec781e6a134e230c7467bcf96e4a44be7f6352f61e5f4
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 13, 2026.

Transparency log

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

Download URL polyxml-0.38.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
005b6118b7fb45f26640e352e32d5c0429285c5de24305bb4c35f6bb686ae5b5
BLAKE2b-256 checksum
How to use checksums
41e30748bff492eaf8fc9161f279df176eca907bf154b50e2a5c103815788dd6
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 13, 2026.

Transparency log

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

Download URL polyxml-0.38.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
0f8340af8331f41ef0145d01408a776a9f074085f2728e9e0a74047fdfac66ed
BLAKE2b-256 checksum
How to use checksums
60a8d3e2ae30ce9b1610cd7ead14a51f1251771a3d5616f67c4859c0204d0e1e
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 13, 2026.

Transparency log

Security for polyxml 0.38.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.38.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 13, 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.38.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