XPlan-Tools
A Python library to provide some useful means when working with XPlanung, XTrasse and XWaermeplan data, e.g. format conversion, version migration and database setup. Relies on Pydantic for a Python representation of the XPlanung/XTrasse/XWaermeplan model as well as serialization/de-serialization and validation.
While it comes with a CLI, its modules are also meant to provide other applications a Python representation as well as an interface for XPlanung/XTrasse/XWaermeplan data.
Features
- Conversion between GML, JSON-FG and DB encodings of XPlanung/XTrasse/XWaermeplan data.
- Migration from older versions of XPlanung to the latest one.
- Set up a database to store XPlanung data. Supports PostgreSQL/PostGIS as well as GeoPackage and SpatiaLite SQLite databases.
- Transformation from XPlanung to INSPIRE PLU based on the official mappings.
- Adding style properties (stylesheetId, schriftinhalt) to XPlanung presentational objects based on defined rules.
Installation
Pixi
This project uses Pixi for package management. To install this repo with a self-contained environment, run
git clone https://gitlab.opencode.de/xleitstelle/xplanung/xplan-tools.git
cd xplan-tools
pixi install
Python >= v3.10
GDAL and its Python bindings are required, so you need to make sure the GDAL system library and Python package versions match.
Download the repository:
git clone https://gitlab.opencode.de/xleitstelle/xplanung/xplan-tools.git
cd xplan-tools
pip install .
Or install from PyPI:
pip install xplan-tools
Docker
Images are provided in the container registry (see docs).
Development
Make sure Pixi is installed and run
git clone https://gitlab.opencode.de/xleitstelle/xplanung/xplan-tools.git
cd xplan-tools
make dev
Developer Guides
For work on development, architecture, or internal workflows, refer to the Developer Guide Overview
License
The code in this repository is licensed under the EUPL-1.2-or-later
© XLeitstelle, 2025
Metadata
Release files for xplan-tools 1.26.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| xplan_tools-1.26.0.tar.gz | 919.9 kB | Without provenance | Details for xplan_tools-1.26.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| xplan_tools-1.26.0-py3-none-any.whl | Python 3 | none | any | Details for xplan_tools-1.26.0-py3-none-any.whl |
Total release size: 1.9 MB
Release files / xplan_tools-1.26.0.tar.gz
| Download URL | xplan_tools-1.26.0.tar.gz |
|---|---|
| Size | 919.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b64e73b5ae042d619ec49f4bb21169102308446af42f24fd752dd3348b8e3c8
|
|
BLAKE2b-256 checksum How to use checksums |
be5221e693c49f77c8fb160206f446562c28bbf45c986e30edd92e919a739364
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.13.15 Linux/6.8.0-138-generic
|
Release files / xplan_tools-1.26.0-py3-none-any.whl
| Download URL | xplan_tools-1.26.0-py3-none-any.whl |
|---|---|
| Size | 968.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ce5beff4e8ba013b3f9aa5f8516d1b87f8dbdc249c8eabb767cd2639161cb09f
|
|
BLAKE2b-256 checksum How to use checksums |
46acb3662bbc0b0e70c66b710eb748730e8a2c8a25502aa2282f29047e9d96ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.13.15 Linux/6.8.0-138-generic
|
Security for xplan-tools 1.26.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.