Skip to main content

eCH xsdata dataclasses

Provides xsdata dataclasses for swiss e-government standards defined by eCH.

! JSON deserialization might return wrong classes, if they have the same structure.

Tests

Run the tests

pip install .[test]
tox

Releasing

Make sure, all recent changes are in HISTORY.md. Then bump the version:

pip install .[dev]
bump2version {major|minor|patch}
git push && git push --tags

Then create a new release on GitHub using the new tag.

Update definitions

Generate files

pip install .[dev]
xsdata generate xxx.xsd

Then move the files and fix the imports. History

0.4.0 (16.03.2026)

  • Update to official eCH-0252 v2.0.0 and eCH-0155 v5.2 schemas.
  • Updates tox config.
  • Drop support for Python 3.8 and 3.9.

0.3.0 (21.08.2024)

  • Add support for Python 3.13.
  • Drop support for Python 3.7.

0.2.0 (19.02.2024)

  • Add experimental eCH-0252 version 2 support.

0.1.0 (18.06.2023)

  • Initial release.

The MIT License (MIT)

Copyright © 2023 Seantis GmbH

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

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 OR COPYRIGHT HOLDERS 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.

Metadata

Release files for xsdata-ech 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xsdata-ech 0.4.0
File Size Uploaded
xsdata_ech-0.4.0.tar.gz 28.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for xsdata-ech 0.4.0
File Interpreter ABI Platform
xsdata_ech-0.4.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 57.3 kB

Release files / xsdata_ech-0.4.0.tar.gz

Download URL xsdata_ech-0.4.0.tar.gz
Size 28.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3b303b9eec35830d389e6fa2a9d359ece70a843ca4954a7245fec674cb5b83fd
BLAKE2b-256 checksum
How to use checksums
9249839907b31103b5f4af3bedb0d367136247ba309551d026663128a76abd6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 16, 2026.

Transparency log

Release files / xsdata_ech-0.4.0-py2.py3-none-any.whl

Download URL xsdata_ech-0.4.0-py2.py3-none-any.whl
Size 28.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
eb388df41d31d76e98c9211610ab238f542596779051155762b1c32654697795
BLAKE2b-256 checksum
How to use checksums
daaf020a63fa76279d8bd2fcdeedc3179a0c50404c13fb3f2e7b5d2ef666260c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 16, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page