Skip to main content

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

pyxjustiz-1.0.3.tar.gz (269.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyxjustiz-1.0.3-py3-none-any.whl (320.4 kB view details)

Uploaded Python 3

File details

Details for the file pyxjustiz-1.0.3.tar.gz.

File metadata

  • Download URL: pyxjustiz-1.0.3.tar.gz
  • Upload date:
  • Size: 269.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.22

File hashes

Hashes for pyxjustiz-1.0.3.tar.gz
Algorithm Hash digest
SHA256 a961322cd8974229b4aaa27069a7ba9d34d6ff578b372a7371dbba8d9bbd912e
MD5 d45402ce9c879436080dd0d4a3cedc21
BLAKE2b-256 bf2cfad3fc38664de8ca10c5a1327247f3c74ea292d82e905111f69c95f1d4bb

See more details on using hashes here.

File details

Details for the file pyxjustiz-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: pyxjustiz-1.0.3-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

Hashes for pyxjustiz-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9e2f761dc9536402f8144954f6368c4e1c9e0fa91d392cd2fba1a5e5a43d9081
MD5 2fc2e9c14072ad133ace7f3ad0664c94
BLAKE2b-256 e9cbb251f9ed91ce664b6f177ae922ed9a300250327cb9bae8986e0e50165164

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page