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

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

Built distributions (wheels)

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

Total release size: 6.4 MB

Release files / polyxml-0.35.1.tar.gz

Download URL polyxml-0.35.1.tar.gz
Size 380.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a45c757ef37ad95de0214a51c49bbf37f8733891821f6a8c702b7083f43c16c4
BLAKE2b-256 checksum
How to use checksums
73bbed4682878078c168a38c92215e38dc7aca4be19f04ffde71c4ce75f19911
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 Oct 19, 2026.

Transparency log

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

Download URL polyxml-0.35.1-cp312-abi3-win_amd64.whl
Size 1.2 MB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
abb87d3a84fe51a83b05932f0527c2bd64e139660640bd29ed4d2f7199d02208
BLAKE2b-256 checksum
How to use checksums
2368cbd3253837f53e0ddafbb0d154ff4562127bfb374ca25e0289371f7e4d15
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 Oct 19, 2026.

Transparency log

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

Download URL polyxml-0.35.1-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_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
f79bfb7ff89d2f96cf037876cfa570cc1a23abdf42f6e0151a7223dc370bd993
BLAKE2b-256 checksum
How to use checksums
1cda0f0f05755b1e3ad7e585d37696c4a57e4ea210c26db7ada905fe01d05e75
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 Oct 19, 2026.

Transparency log

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

Download URL polyxml-0.35.1-cp312-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 1.2 MB
Tags CPython 3.12 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
319000a57bd45d34c4d52951fb2e61696ab62ad2c226fea93c670481043c0bbe
BLAKE2b-256 checksum
How to use checksums
4db3bd3ad6123423057df0cffdc6e7c2fb26e487512e353abf59e72198cc1a28
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 Oct 19, 2026.

Transparency log

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

Download URL polyxml-0.35.1-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
9f737b132dfae15efc994c88eb1ff5ce8de35de2d5d4562e6c699f5f63d2739d
BLAKE2b-256 checksum
How to use checksums
88c3a46f8e2c8f2abf5ae17488bf0f890c90ec1120c5e213b61aa99709c04d2b
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 Oct 19, 2026.

Transparency log

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

Download URL polyxml-0.35.1-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
5afa5fb544d3d000a09571faecf12060e52fd106a6adf706da9399006524f55d
BLAKE2b-256 checksum
How to use checksums
c1b5fe4df8f0c1decfbdf1918f43d99a40df66dc959a31c618e95a46d7844482
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 Oct 19, 2026.

Transparency log

Security for polyxml 0.35.1

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.1.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 Oct 19, 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.1 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