Skip to main content

graphscii

Print ASCII graphs in the terminal.

Risk graph

Installation

The easiest way to install is with pip:

sudo pip install graphscii

To manually install, use:

sudo python ./setup.py install

Usage

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')
g.draw()
Simple triangle graph

For more examples, see the examples directory.

Metadata

Release files for graphscii 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for graphscii 1.0.4
File Size Uploaded Provenance Actions
graphscii-1.0.4.tar.gz 4.4 kB Without provenance Details for graphscii-1.0.4.tar.gz

Release files / graphscii-1.0.4.tar.gz

Download URL graphscii-1.0.4.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1f0fb5cb540cffc3517d6addce8fc6926e9b8d06714d2f32a82f990895afdeb4
BLAKE2b-256 checksum
How to use checksums
1e2f98a61d7e003ca0c31b54084e915c77c19c920749249750f9c58e9aa6f423
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for graphscii 1.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page