Skip to main content

Print ASCII graphs in the terminal

Project description

Print ASCII graphs in the terminal.

Risk graph


The easiest way to install is with pip:

sudo pip install graphscii

To manually install, use:

sudo python ./ install


To draw a graph, create a Graph object, add nodes and edges, and invoke the draw() method:

from graphscii import Graph

g = Graph()
g.add_node('n0', pos=[0.1, 0.1])
g.add_node('n1', pos=[0.9, 0.1])
g.add_node('n2', pos=[0.5, 0.9])
g.add_edge('n0', 'n1', label='e0')
g.add_edge('n1', 'n2', label='e1')
g.add_edge('n2', 'n0', label='e2')
Simple triangle graph

For more examples, see the examples directory.

Project details

Download files

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

Files for graphscii, version 1.0.4
Filename, size File type Python version Upload date Hashes
Filename, size graphscii-1.0.4.tar.gz (4.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page