Skip to main content

Build and render a Trie from newline-separated input using Graphviz.

Project description

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

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

charity-0.1.0.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

charity-0.1.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file charity-0.1.0.tar.gz.

File metadata

  • Download URL: charity-0.1.0.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for charity-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3be9170bc9084060af59fdb05743a9d66e651304f6175b30d0d4d05bf4114406
MD5 77d2e6a4615095c723d6011b42bae5c1
BLAKE2b-256 4f64c5adf3a8739c1b01e0e15e10d73a6fb01d19ab62df7940a2ca898e5b1f6a

See more details on using hashes here.

File details

Details for the file charity-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: charity-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for charity-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1259ab680d62288778d72721f2742d66ac260bd7dad42d620c759e76d8636855
MD5 ef55a3fb8076478ef9a718d367566fa4
BLAKE2b-256 8f0e2eca6cdc751e4e3b2e3b5dc0863d0d1da450e8dd1940820ca012d4c2f319

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page