py-dagviz
This package creates a text rendering of a directed acyclic graph (DAG) for visualization purposes in a terminal.
It contains a single function visualize_dag that takes a networkx.DiGraph object from the networkx package.
• 0
├─• 1
├─┼─• 2
│ ├─┼─• 3
└─│─┴─• 4
└─• 5
Usage
import networkx as nx
from dagviz import visualize_dag
g = nx.DiGraph()
# Creates the graph to visualize
# If the graph contains cycles (i.e., not a DAG), visualization fails
g.add_nodes_from([0, 1, 2, 3, 4, 5])
g.add_edges_from([(0, 1), (0, 2), (1, 2), (1, 3), (1, 5), (2, 4), (0, 4), (2, 3)])
print(visualize_dag(g, round_angle=False))
# • 0
# ├─• 1
# ├─┼─• 2
# │ ├─┼─• 3
# └─│─┴─• 4
# └─• 5
print(visualize_dag(g, round_angle=True)) # display may be bad under some terminal fonts
# • 0
# ├─• 1
# ├─┼─• 2
# │ ├─┼─• 3
# ╰─│─┴─• 4
# ╰─• 5
Metadata
Release files for py-dagviz 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 | Provenance | Actions |
|---|---|---|---|---|
| py-dagviz-0.1.0.tar.gz | 3.3 kB | Without provenance | Details for py-dagviz-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| py_dagviz-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for py_dagviz-0.1.0-py3-none-any.whl |
Total release size: 7.5 kB
Release files / py-dagviz-0.1.0.tar.gz
| Download URL | py-dagviz-0.1.0.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f4676d86d789f2bc10b83abdd7176fdab0f51513ac56ad1a5df7a3182d25faac
|
|
BLAKE2b-256 checksum How to use checksums |
4292918155536d507986c902317dd56590758d728a4ab7a823412475a452dc53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.5
|
Release files / py_dagviz-0.1.0-py3-none-any.whl
| Download URL | py_dagviz-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f727c9190d4151692d4106be694ab16385b32607250b33fa9ed26908d75c8910
|
|
BLAKE2b-256 checksum How to use checksums |
dc0a283dd06883b74c08eb06e7f5fed0073066fcdf5146a22bb2ef5b83563bfd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.5
|
Security for py-dagviz 0.1.0
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.