dagviz-0.3.0
توضیحات
Visualization for DAGs
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | dagviz-0.3.0 |
| نام | dagviz |
| نسخه کتابخانه | 0.3.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Wim Yedema |
| ایمیل نویسنده | wim.yedema@gmail.com |
| آدرس صفحه اصلی | https://github.com/WimYedema/dagviz.git |
| آدرس اینترنتی | https://pypi.org/project/dagviz/ |
| مجوز | Apache-2.0 |
# DAGVIZ
DAGVIZ offers a "git log"-like visualization for DAGs represented in networkx.
## Installation
DAGVIZ can be installed with `pip`:
```bash
pip install dagviz
```
## Documentation
Documentation is available at https://wimyedema.github.io/dagviz/.
## Usage
DAGVIZ relies on networkx for the representation and manipulation of the
DAG. An SVG file can be generated as follows:
```py
import dagviz
import networkx as nx
# Create the DAG
G = nx.DiGraph()
for i in range(5):
G.add_node(f"n{i}")
G.add_edge(f"n0", f"n1")
G.add_edge(f"n0", f"n2")
G.add_edge(f"n0", f"n4")
G.add_edge(f"n1", f"n3")
G.add_edge(f"n2", f"n3")
G.add_edge(f"n3", f"n4")
# Create an SVG as a string
r = dagviz.render_svg(G)
with open("simple.svg", "wt") as fs:
fs.write(r)
```
نیازمندی
| مقدار | نام |
|---|---|
| >=1.0,<2.0) | importlib-metadata |
| >=2.5.1,<3.0.0 | networkx |
| >=1.4.1,<2.0.0 | svgwrite |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4.0 | Python |
نحوه نصب
نصب پکیج whl dagviz-0.3.0:
pip install dagviz-0.3.0.whl
نصب پکیج tar.gz dagviz-0.3.0:
pip install dagviz-0.3.0.tar.gz