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

  • ⚡ Blazing Fast: 16x faster deserialization and 38x faster serialization than standard Python tools.
  • 🌊 Streaming iterparse(): Parse multi-gigabyte XML files with O(1) constant memory (<5 MB RAM).
  • 📦 Zero-GIL Binary Serialization: Native dumps_binary() and loads_binary() using MessagePack (msgspec), up to 12.4x faster than pickle.
  • 🎯 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.24.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.24.0
File Size Uploaded
polyxml-0.24.0.tar.gz 244.4 kB Details

Built distributions (wheels)

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

Total release size: 2.7 MB

Release files / polyxml-0.24.0.tar.gz

Download URL polyxml-0.24.0.tar.gz
Size 244.4 kB
Tags Source
SHA-256 checksum
How to use checksums
42a487aa16dadf3bd8498182c3408ddaff1a90d0e3146a2ca8a3a341bbfdb107
BLAKE2b-256 checksum
How to use checksums
7ae418123e910b27a144c1f3153d99ce60ef0bc0e6ace9afb9aadbdfe99261a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 26, 2026.

Transparency log

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

Download URL polyxml-0.24.0-cp312-abi3-win_amd64.whl
Size 426.0 kB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
696ba7b6643a5452a52702140ec0f1da17d5996cea4d6f59542ff02b50343d82
BLAKE2b-256 checksum
How to use checksums
88be4143ff11577a8408fc5a0281cebf9b78a040878c2e5d487e032d1feb531b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 26, 2026.

Transparency log

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

Download URL polyxml-0.24.0-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 527.4 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
cf6f69a49a53b6c6fc52231d83f9ce9c59319b2e3359d9825f918633f8e7598b
BLAKE2b-256 checksum
How to use checksums
89f764450f188f1cfd06b232194724ce01fbe26b0ad2d879fe4fbbef0c926fa6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 26, 2026.

Transparency log

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

Download URL polyxml-0.24.0-cp312-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 504.9 kB
Tags CPython 3.12 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
a95cee98f5da137012eeb6a845a65b0e3077e9aa9de7f12c07dd2b24ea70300a
BLAKE2b-256 checksum
How to use checksums
96e72192e70d34051da84a2d934983730737615ffe21ba768505a74b57f6194f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 26, 2026.

Transparency log

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

Download URL polyxml-0.24.0-cp312-abi3-macosx_11_0_arm64.whl
Size 468.6 kB
Tags CPython 3.12 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
9324ed630ee6ba29b4d094212a1a4527a184a23d9463ba4fc7cad0068648843d
BLAKE2b-256 checksum
How to use checksums
d76663c678bf52e59ec14b1d06048a7a64d542d9260f2d21d66d5a911fa0fcca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 26, 2026.

Transparency log

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

Download URL polyxml-0.24.0-cp312-abi3-macosx_10_12_x86_64.whl
Size 490.7 kB
Tags CPython 3.12 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
7f1c298a4f76c99d2a26f008a706ccdfa3119e80b2cb5373af759ff00568d371
BLAKE2b-256 checksum
How to use checksums
2c1df37e5fc02ecaee910d2bba16e8aa308f119b8d0309132c72f64628915fd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 26, 2026.

Transparency log

Release history Release notifications | RSS feed

0.35.0

6 release files

0.33.0

6 release files

0.32.0

6 release files

0.31.0

6 release files

0.30.7

6 release files

0.30.6

6 release files

0.30.5

6 release files

0.30.4

6 release files

0.30.3

6 release files

0.30.2

6 release files

0.30.1

6 release files

0.30.0

6 release files

0.29.0

6 release files

0.28.0

6 release files

0.27.0

6 release files

0.26.0

6 release files

0.25.0

6 release files

0.24.1

6 release files

This release

0.24.0 This release

6 release files

0.23.3

6 release files

0.23.2

6 release files

0.23.0

6 release files

0.22.0

6 release files

0.21.0

6 release files

0.20.1

6 release files

0.20.0

6 release files

0.19.2

6 release files

0.19.1

6 release files

0.19.0

6 release files

0.18.0

6 release files

0.17.0

6 release files

0.16.0

6 release files

0.15.0

6 release files

0.14.3

6 release files

0.14.2

6 release files

0.14.1

6 release files

0.14.0

6 release files

0.13.0

6 release files

0.12.0

6 release files

0.11.1

6 release files

0.11.0

6 release files

0.10.0

6 release files

0.9.0

6 release files

0.8.1

6 release files

0.8.0

6 release files

0.7.0

6 release files

0.6.0

6 release files

0.5.1

6 release files

0.5.0

6 release files

0.4.0

6 release files

0.3.0

6 release files

0.2.1

6 release files

0.2.0

6 release files

0.1.0

6 release files

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