Metadata-Version: 2.4
Name: diagramzlib
Version: 2.0.0
Summary: Diagram XML compressor and decompressor for Pyut and umldiagrammer
Author-email: "Humberto A. Sanchez II" <Humberto.A.Sanchez.II@gmail.com>
Maintainer-email: "Humberto A. Sanchez II" <Humberto.A.Sanchez.II@gmail.com>
License-Expression: AGPL-1.0-or-later
Project-URL: Repository, https://github.com/hasii2011/diagramzlib
Keywords: git,issue management,markdown,python,zlib,diagram,xml
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: click>=8.1.8
Provides-Extra: test
Requires-Dist: mypy==1.16.1; extra == "test"
Requires-Dist: mypy-extensions==1.1.0; extra == "test"
Requires-Dist: types-Deprecated==1.2.9.20240311; extra == "test"
Requires-Dist: html-testRunner~=1.2.1; extra == "test"
Requires-Dist: codeallybasic==1.10.4; extra == "test"
Provides-Extra: deploy
Requires-Dist: wheel==0.45.1; extra == "deploy"
Requires-Dist: setuptools==75.7.0; extra == "deploy"
Requires-Dist: twine==6.0.1; extra == "deploy"
Requires-Dist: build==1.2.2.post1; extra == "deploy"
Requires-Dist: pkginfo==1.12.1.2; extra == "deploy"
Dynamic: license-file

[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/hasii2011/diagramzlib/graphs/commit-activity)
[![CI](https://github.com/hasii2011/diagramzlib/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/hasii2011/diagramzlib/actions/workflows/ci.yml)
[![PyPI version](https://badge.fury.io/py/diagramzlib.svg)](https://badge.fury.io/py/diagramzlib)
[![License: AGPL v3](https://img.shields.io/badge/License-AGPL_v3-blue.svg)](LICENSE)
[![Made with Python](https://img.shields.io/badge/Made%20with-Python-3776AB?logo=python&logoColor=white)](https://www.python.org/)
[![GitHub Copilot: No](https://img.shields.io/badge/GitHub_Copilot-No-red?logo=github&style=flat-square)](https://github.com/hasii2011/code-ally-basic/wiki/GitHub-Copilot)


# Introduction

A python console script and library to compress and decompress XML files usable by [umldiagrammer](https://github.com/hasii2011/umldiagrammer) (`.udt`) and [Pyut](https://github.com/hasii2011/PyUt) (`.put`) projects.

# Overview

`diagramzlib` provides a unified command line interface with subcommands to compress and decompress diagram files.

```
Usage: diagramzlib [OPTIONS] COMMAND [ARGS]...

  Diagram XML compressor and decompressor CLI for Pyut and umldiagrammer.

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  compress    Compress an XML file into a .udt or .put diagram file.
  decompress  Decompress a .put or .udt diagram file to XML.
```

### Decompressing

Auto-detects `.udt` or `.put` files and writes to a matching `.xml` file:

```bash
diagramzlib decompress -i EmptyDiagramsProject.udt
```

causes `diagramzlib` to write `EmptyDiagramsProject.xml`.

Similarly:

```bash
diagramzlib decompress -i TestFileV10.put
```

causes `diagramzlib` to write `TestFileV10.xml`.

You can also specify an explicit output file:

```bash
diagramzlib decompress -i EmptyDiagramsProject.udt -o CustomOutput.xml
```

### Compressing

To compress XML back into a diagram format:

```bash
# Compresses to .udt (default format):
diagramzlib compress -i EmptyDiagramsProject.xml

# Compresses to .put format:
diagramzlib compress -i TestFileV10.xml -f put
```

# Installation

```bash
pip install diagramzlib
```

___

Written by <a href="mailto:email@humberto.a.sanchez.ii@gmail.com?subject=Hello Humberto">Humberto A. Sanchez II</a>  (C) 2026
