Skip to main content

XPlan-Tools

coverage report pipeline status Latest Release

Documentation | Repository

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xplan_tools-1.26.0.tar.gz (919.9 kB view details)

Uploaded Source

Built Distribution

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

xplan_tools-1.26.0-py3-none-any.whl (968.4 kB view details)

Uploaded Python 3

File details

Details for the file xplan_tools-1.26.0.tar.gz.

File metadata

  • Download URL: xplan_tools-1.26.0.tar.gz
  • Upload date:
  • Size: 919.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.13.15 Linux/6.8.0-138-generic

File hashes

Hashes for xplan_tools-1.26.0.tar.gz
Algorithm Hash digest
SHA256 5b64e73b5ae042d619ec49f4bb21169102308446af42f24fd752dd3348b8e3c8
MD5 45a0c19e38397f46c3d89bd3419d8d13
BLAKE2b-256 be5221e693c49f77c8fb160206f446562c28bbf45c986e30edd92e919a739364

See more details on using hashes here.

File details

Details for the file xplan_tools-1.26.0-py3-none-any.whl.

File metadata

  • Download URL: xplan_tools-1.26.0-py3-none-any.whl
  • Upload date:
  • Size: 968.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.13.15 Linux/6.8.0-138-generic

File hashes

Hashes for xplan_tools-1.26.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce5beff4e8ba013b3f9aa5f8516d1b87f8dbdc249c8eabb767cd2639161cb09f
MD5 f4a4d3562cefe4ba1e9f136478fb9b2d
BLAKE2b-256 46acb3662bbc0b0e70c66b710eb748730e8a2c8a25502aa2282f29047e9d96ef

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.26.0 This release

2 files

1.25.0

2 files

1.24.1

2 files

1.24.0

2 files

1.23.1

2 files

1.23.0

2 files

1.22.0

2 files

1.21.1

2 files

1.21.0

2 files

1.20.0

2 files

1.19.0

2 files

1.18.1

2 files

1.18.0

2 files

1.17.5

2 files

1.17.4

2 files

1.17.3

2 files

1.17.2

2 files

1.17.1

2 files

1.17.0

2 files

1.16.2

2 files

1.16.1

2 files

1.16.0

2 files

1.15.1

2 files

1.15.0

2 files

1.14.1

2 files

1.14.0

2 files

1.13.1

2 files

1.13.0

2 files

1.12.1

2 files

1.12.0

2 files

1.11.1

2 files

1.11.0

2 files

1.10.3

2 files

1.10.1

2 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