Metadata-Version: 2.4
Name: charity
Version: 0.1.0
Summary: Build and render a Trie from newline-separated input using Graphviz.
Project-URL: Homepage, https://github.com/yaccob/charity
Project-URL: Source, https://github.com/yaccob/charity
Requires-Python: >=3.9
Requires-Dist: graphviz>=0.21
Provides-Extra: dev
Requires-Dist: build; extra == 'dev'
Requires-Dist: twine; extra == 'dev'
Description-Content-Type: text/markdown

# charity

Render a Trie from newline-separated input using Graphviz.

## Installation

```bash
pip install charity
# or from a local checkout
pip install .
```

Graphviz must be installed on your system so the `graphviz` Python package can find the binaries.

## Usage

```bash
cat test/fixtures/simple_input.txt | charity --output trie --format svg --view
```

Options:
- `-o / --output`: Base filename (without extension). Default: `trie`
- `-f / --format`: Graphviz renderer output format (e.g. `pdf`, `png`, `svg`). Default: `pdf`
- `-v / --view`: Open the rendered file after creation.

You can also run the module directly:

```bash
python -m charity < input.txt
```

## Publishing to PyPI

1. Build distributions: `python -m build`
2. Upload: `python -m twine upload dist/*`

Install `build` and `twine` first if needed: `pip install build twine`.
