Python XJustiz XML models from official XSDs with easy parsing, serialization, and validation.
Project description
pyxjustiz
a python library for XJustiz
basically just dataclasses for the xml files generated by xsdata
dependencies
usage
# parse handelsregister xml
from xsdata.formats.dataclass.parsers import XmlParser
from xjustiz.model_gen import NachrichtReg0400003
parser = XmlParser()
message = parser.from_path("YY-XYZ_HRB_12345+SI-200109111234.xml", NachrichtReg0400003)
# turn dataclass back into xml
from xsdata.formats.dataclass.serializers import XmlSerializer
from xsdata.formats.dataclass.serializers.config import SerializerConfig
serializer = XmlSerializer(config=SerializerConfig(pretty_print=True))
data = serializer.render(message)
maintenance
xjustiz will update every once in a while (see the release cycle here)
once a new version is released, put the xsd files into the xsd directory and run
bash model_gen.sh
to update the models.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyxjustiz-1.0.2.tar.gz.
File metadata
- Download URL: pyxjustiz-1.0.2.tar.gz
- Upload date:
- Size: 269.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8280f804107bbba951bcd1251456c1653b592e4bc2aeacead1d33e32259d985
|
|
| MD5 |
0a382621a8a08e42278e83aa8c9015d7
|
|
| BLAKE2b-256 |
c1986576bf8242af454e834e66a40cb184973eee169f40cc7982358061871482
|
File details
Details for the file pyxjustiz-1.0.2-py3-none-any.whl.
File metadata
- Download URL: pyxjustiz-1.0.2-py3-none-any.whl
- Upload date:
- Size: 320.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6999b87c4792126a1ed3a983ba041c877b9adfb2d5e9445f52376c6402e5807
|
|
| MD5 |
578a5304d99bb3b62746b9a945562517
|
|
| BLAKE2b-256 |
724e8ecfe0032eb0247576dc15c9d442e935289c47f63e0a893c92bd9d65ff21
|