graphtty is a Python library that transforms any directed graph into colored ASCII art, designed for display in your terminal. It is a pure Python solution with zero external dependencies. The library is currently at version 0.1.8 and is actively maintained by UiPath, requiring Python 3.11 or newer.
pip install graphttyVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to define a simple directed graph with nodes and edges, then render it as ASCII art in your terminal using `graphtty.render`.
Always use `pip install graphtty` and `from graphtty import render` to ensure you're using this specific library.
Structure your graph data with explicit 'source' and 'target' for edges, representing directed relationships. For undirected graphs, explicitly define a reciprocal edge for each connection.
Run `pip install graphtty` in your terminal to install the package.
The `render` function expects a dictionary argument that defines the graph's nodes and edges. Ensure you pass a valid graph dictionary, e.g., `render(my_graph_dict)`.
Ensure every node dictionary in your graph includes at least both an 'id' (unique identifier) and a 'name' (display label) key.
No dependency data recorded yet.