Metadata-Version: 2.4
Name: pyxjustiz
Version: 1.0.3
Summary: Python XJustiz XML models from official XSDs with easy parsing, serialization, and validation.
Author-email: nbdy <me@nbdy.io>
License: This is free and unencumbered software released into the public domain.
        
        Anyone is free to copy, modify, publish, use, compile, sell, or
        distribute this software, either in source code form or as a compiled
        binary, for any purpose, commercial or non-commercial, and by any
        means.
        
        In jurisdictions that recognize copyright laws, the author or authors
        of this software dedicate any and all copyright interest in the
        software to the public domain. We make this dedication for the benefit
        of the public at large and to the detriment of our heirs and
        successors. We intend this dedication to be an overt act of
        relinquishment in perpetuity of all present and future rights to this
        software under copyright law.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
        EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
        MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
        IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
        OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
        ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
        OTHER DEALINGS IN THE SOFTWARE.
        
        For more information, please refer to <https://unlicense.org/>
        
Project-URL: Homepage, https://github.com/nbdy/pyxjustiz
Project-URL: Documentation, https://github.com/nbdy/pyxjustiz
Project-URL: Source, https://github.com/nbdy/pyxjustiz
Project-URL: Issues, https://github.com/nbdy/pyxjustiz/issues
Keywords: xjustiz,xml,schemas,xsdata,pydantic
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.13
Classifier: Typing :: Typed
Requires-Python: >=3.13
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: xsdata[cli]>=25.7
Dynamic: license-file

# pyxjustiz

a python library for [XJustiz](https://xjustiz.justiz.de/)

basically just dataclasses for the xml files generated by xsdata

## dependencies

- [xsdata](https://xsdata.readthedocs.io/en/latest/)

## usage

```python
# 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](https://xjustiz.justiz.de/index.php))

once a new version is released, put the xsd files into the xsd directory and run
`bash model_gen.sh`
to update the models.
