Introduction
umlio provides a Python serialization and deserialization layer for UML Diagrammer .udt (compressed project) and .xml files (currently XML format 14.0). It is the updated successor to oglio and bridges umlmodel and umlshapes.
Supported Diagrams
- Class Diagrams (
UmlDocumentType.CLASS_DOCUMENT): classes, notes, text labels, lollipop interfaces, and links (associations, aggregations, compositions, inheritance, interface realization, and note links). - Use Case Diagrams (
UmlDocumentType.USE_CASE_DOCUMENT): actors, use cases, notes, text labels, and links. - Sequence Diagrams (
UmlDocumentType.SEQUENCE_DOCUMENT): instances/lifelines, messages, executions, combined fragments, notes, and text labels.
Installation
Requires Python 3.13 and wxPython>=4.3.2:
pip install umlio
For local development with test and packaging dependencies:
pip install -e '.[test,deploy]'
Usage
Use Reader to load .udt or .xml files into an UmlProject, and Writer to serialize an UmlProject back to disk:
from pathlib import Path
from umlio.IOTypes import UmlProject
from umlio.Reader import Reader
from umlio.Writer import Writer
reader: Reader = Reader()
umlProject: UmlProject = reader.readProjectFile(fileName=Path('MyProject.udt'))
writer: Writer = Writer()
writer.writeFile(umlProject=umlProject, fileName=Path('MyProjectCopy.udt'))
writer.writeXmlFile(umlProject=umlProject, fileName=Path('MyProjectCopy.xml'))
Development & Verification
Run type checks and the unit test suite from the project root:
mypy --config-file .mypi.ini --check-untyped-defs src/umlio tests
PYTHONPATH=src:. python -m unittest discover -s tests -t . -p 'Test*.py' -v
(On headless Linux, prefix the test command with xvfb-run -a for wxPython.)
Written by Humberto A. Sanchez II (C) 2026
Note
For all kinds of problems, requests, enhancements, bug reports, etc., please drop me an e-mail.
Metadata
Release files for umlio 2.0.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 |
|---|---|---|---|---|
| umlio-2.0.0.tar.gz | 47.2 kB | With provenance | Details for umlio-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| umlio-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for umlio-2.0.0-py3-none-any.whl |
Total release size: 107.9 kB
Release files / umlio-2.0.0.tar.gz
| Download URL | umlio-2.0.0.tar.gz |
|---|---|
| Size | 47.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c22de8ca0cec3f017e97ceec9aee3c8ca6c6a1c08701c45f0b0f770fa34355ce
|
|
BLAKE2b-256 checksum How to use checksums |
02c6a531c0eba94e89413797e0a09c11ba0480441ef6c42f703e9f7d4ab76771
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 27, 2026.
Transparency logRelease files / umlio-2.0.0-py3-none-any.whl
| Download URL | umlio-2.0.0-py3-none-any.whl |
|---|---|
| Size | 60.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ef83d0702f62a2c24fc9b5fb6367ee80bf5ff8ff9c68cd47bac3ecac031356b6
|
|
BLAKE2b-256 checksum How to use checksums |
6d26ad01d99f234b7cc68240d659b43cd9d3dd8c81b75d73a6a977842fd4f06f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 27, 2026.
Transparency logSecurity for umlio 2.0.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for umlio-2.0.0.tar.gz
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 Nov 27, 2026.
Transparency logA 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.