# Ili2py ist hier

**URL:** <https://interlis.discourse.group/t/ili2py-ist-hier/455>\
**Category:** INTERLIS Werkzeuge\
**Created:** [24. November 2025 um 14:31 UTC](https://interlis.discourse.group/t/ili2py-ist-hier/455 "2025-11-24T14:31:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![grand\_cru](https://yyz2.discourse-cdn.com/free1/user_avatar/interlis.discourse.group/grand_cru/32/92_2.png) [@grand\_cru](https://interlis.discourse.group/u/grand_cru)\
**Post date:** [24. November 2025 um 14:31 UTC](https://interlis.discourse.group/t/ili2py-ist-hier/455/1 "2025-11-24T14:31:52Z")

</div>

Ob es nun die beste Art ist mit Python und INTERLIS-Datenmodellen zu arbeiten kann ich nicht sagen. Es ist jedoch eine.

Code: [GitHub - rudert-geoinformatik/ili2py: The Interlis meta model in python](https://github.com/rudert-geoinformatik/ili2py)

Docs: [ili2py Documentation](https://rudert-geoinformatik.github.io/ili2py/)

ili2py implementiert das Interlis Metamodell (IlisMeta16/IMD16) in Python. Ein umfangreicher Index bietet Zugriff auf alle Elemente des Modells (z.B. Klassen, Attribute, MetaAttribute, Constraints, Assoziationen, Typen, Typbeschränkungen, uvm.).

Zur Verdeutlichung der Fähigkeiten stellt ili2py eine [CLI](https://github.com/rudert-geoinformatik/ili2py/releases/tag/latest) bereit. Diese bietet 2 Commands:

- [diagrams](https://rudert-geoinformatik.github.io/ili2py/user_guide/cli-binary/#sub-command-diagram) - Erzeugt plantuml oder mermaid UML diagramme (auch über Modellgrenzen hinweg)
- [python-classes](https://rudert-geoinformatik.github.io/ili2py/user_guide/cli-binary/#sub-command-python-classes) - Erzeugt eine komplett standalone Python Bibliothek ohne weitere Abhängigkeiten (kann zum unter anderem zum lesen/schreiben von XTF’s genutzt werden)

Einen Eindruck der Möglichkeiten von ili2py kann man sich hier machen:  
[What’s next?](https://rudert-geoinformatik.github.io/ili2py/#whats-next)
