charity
Render a Trie from newline-separated input using Graphviz.
Installation
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
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:
python -m charity < input.txt
Publishing to PyPI
- Build distributions:
python -m build - Upload:
python -m twine upload dist/*
Install build and twine first if needed: pip install build twine.
Release files for charity 0.1.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 | |
|---|---|---|---|
| charity-0.1.0.tar.gz | 12.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| charity-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.4 kB
Release files / charity-0.1.0.tar.gz
| Download URL | charity-0.1.0.tar.gz |
|---|---|
| Size | 12.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3be9170bc9084060af59fdb05743a9d66e651304f6175b30d0d4d05bf4114406
|
|
BLAKE2b-256 checksum How to use checksums |
4f64c5adf3a8739c1b01e0e15e10d73a6fb01d19ab62df7940a2ca898e5b1f6a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.3
|
Release files / charity-0.1.0-py3-none-any.whl
| Download URL | charity-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1259ab680d62288778d72721f2742d66ac260bd7dad42d620c759e76d8636855
|
|
BLAKE2b-256 checksum How to use checksums |
8f0e2eca6cdc751e4e3b2e3b5dc0863d0d1da450e8dd1940820ca012d4c2f319
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.3
|