PyXB-X
PyXB-X ("pixbix") is a pure Python package that generates Python source code for classes that correspond to data structures defined by XMLSchema.
Decision gist · record as of 2026-08-14
Yes, if you work with XMLSchema-defined XML data and want type-safe Python bindings. The package is actively maintained, has no dependencies, low install friction, and carries a permissive license. The recent release and active status suggest ongoing support, though documentation and repository visibility should be verified before committing to a new project.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires XMLSchema file to generate bindings; generated code must be created via command-line tool before runtime use.
- Low install friction with no runtime dependencies; marked active with a recent release 17 days ago.
License · maintenance · safety
Apache License 2.0 (permissive) — Apache License 2.0 is permissive, allowing commercial and private use with minimal restrictions beyond attribution and liability disclaimers.
last release 2026-07-28 (17 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 349,661 downloads/mo, #7,333 on PyPI
Alternatives
Verify before relying
pip install pyxb-x
from pyxb import WXML
# Generate bindings from schema: pyxb -u schema.xsd -m myschema
# Then use generated module to parse/create XML documents- Whether the package supports Python versions beyond 3.8 despite classifiers listing only up to 3.8
- Current state of the SourceForge repository and whether active development continues beyond the recent PyPI release
What it is and what it does
PyXB-X is a code generator that reads XMLSchema definitions and produces Python classes representing the schema's data structures. It aims to provide a Pythonic interface similar to what a developer would hand-write, with elements and attributes as properties, support for complex content models, and bidirectional XML-to-Python conversion.
The package handles common XMLSchema features including nested choice/sequence/all constructs, cross-namespace dependencies, include and import directives, and simple-type constraints. It's positioned as the Python equivalent of JAXB (Java) and CodeSynthesis XSD (C++), letting developers work with XML data through native Python objects rather than DOM or SAX parsing.
Use it for
- Generate type-safe Python classes from an existing XMLSchema to validate and parse XML documents in a structured way
- Automate creation of XML-based configuration or data files by writing Python objects that serialize back to XML
- Build web services or APIs that consume/produce XML with schema-enforced structure and type safety
- Convert legacy XML data formats into Python object hierarchies for easier manipulation and analysis
- Enforce schema compliance in Python applications by using generated bindings instead of manual XML parsing
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you work with XMLSchema-defined XML data and want type-safe Python bindings.
The package is actively maintained, has no dependencies, low install friction, and carries a permissive license. The recent release and active status suggest ongoing support, though documentation and repository visibility should be verified before committing to a new project.
Install
pyxb-x on PyPI
Before you install
Low install friction with no runtime dependencies; marked active with a recent release 17 days ago.
Requires XMLSchema file to generate bindings; generated code must be created via command-line tool before runtime use.
License in practice
Apache License 2.0 is permissive, allowing commercial and private use with minimal restrictions beyond attribution and liability disclaimers.
Quickstart
pip install pyxb-x
from pyxb import WXML
# Generate bindings from schema: pyxb -u schema.xsd -m myschema
# Then use generated module to parse/create XML documents
Verify before relying
- Whether the package supports Python versions beyond 3.8 despite classifiers listing only up to 3.8
- Current state of the SourceForge repository and whether active development continues beyond the recent PyPI release
Package facts
| License | Apache License 2.0 permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 17 days since the last release |
| First released | |
| Downloads | 349,661 / month, #7,333 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 2Programming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Topic :: Software Development :: Code GeneratorsTopic :: Text Processing :: Markup :: XML |
Evidence: pyxb_x-1.2.6.4-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “xmlschema to python code generator”
- PyXB-XPyXB-X generates Python classes from XMLSchema definitions, enabling…
- xmlschemaValidates XML documents against XSD schemas and converts XML to/from…
- sepaxmlGenerates SEPA XML payment files for direct debits and credit…
Give your agent the search over MCP, or paste the wish link into any chat.
More Code Generators packages
Proto Plus wraps protocol buffers to provide Python classes that behave like native Python types while maintaining protocol buffer serialization and schema validation.
Install it if you're working with protocol buffers in Python and want a more Pythonic interface, or if you're using Google Cloud libraries that depend on it.
Cython is a source code translator that compiles Python code to C, enabling optional static typing and direct C/C++ interoperability to generate efficient native extensions.
Install it if you need to optimize Python performance, wrap C/C++ libraries, or build fast native extensions.
Annotates Python abstract syntax trees with the positions of tokens and source code text, enabling tools to map AST nodes back to their originating code for refactoring, analysis, and transformation.
Beartype is a runtime type checker that validates Python type hints at function call time, catching type violations before they cause downstream bugs.
Install it if you want runtime type safety for your annotated code or need to validate type hints on third-party packages.
llvmlite provides a lightweight Python binding to LLVM's IR builder, optimizer, and JIT compiler APIs, enabling you to write JIT compilers and code generators without needing the full LLVM C++ API surface.
astor converts Python abstract syntax trees (ASTs) back to readable source code and provides tools for AST manipulation, inspection, and non-recursive tree traversal.
Install it if you need AST round-tripping or advanced tree inspection.
See also xmlschema · xsdata · xsdata-pydantic · xml-python · pydantic-xml · xmltodict · junit-xml · cybox · dicttoxml