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

currently supported xjustiz version: 3.5.1

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.4.tar.gz (269.4 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.4-py3-none-any.whl (320.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyxjustiz-1.0.4.tar.gz
  • Upload date:
  • Size: 269.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyxjustiz-1.0.4.tar.gz
Algorithm Hash digest
SHA256 50ddc8c9c24638abac0814c51bd4884e36cd4278fa50012f6a643ea30fb958c5
MD5 7b302df40f68d336360ee1f3c230de98
BLAKE2b-256 3e7e2b13407ee80c926cb13d40eaa1eef74bffcf706956d70fdf5aab81f22070

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyxjustiz-1.0.4.tar.gz:

Publisher: publish.yml on nbdy/pyxjustiz

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: pyxjustiz-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 320.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyxjustiz-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 857dc510cbd697081571a9d6dbd118bf0088a24a3871ee840b7af63e01f5646f
MD5 cc210b9c773dbf5b42dd24cae5ff9d78
BLAKE2b-256 bb5bbffd8cb30320a5049d01e16aedd421355688165cb141c95b703deab5168b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyxjustiz-1.0.4-py3-none-any.whl:

Publisher: publish.yml on nbdy/pyxjustiz

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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