1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
3 NAMEBASE= python-graphviz
6 VARIANTS= py27 py35 py36
7 SDESC[py35]= Simple Python interface for Graphviz (PY 35)
8 SDESC[py36]= Simple Python interface for Graphviz (PY 36)
9 SDESC[py27]= Simple Python interface for Graphviz (PY 27)
10 HOMEPAGE= https://github.com/xflr6/graphviz
11 CONTACT= Python_Automaton[python@ironwolf.systems]
14 SITES[main]= PYPI/g/graphviz
15 DISTFILE[1]= graphviz-0.8.3.zip:main
21 OPTIONS_AVAILABLE= PY27 PY35 PY36
22 OPTIONS_STANDARD= none
23 VOPTS[py35]= PY27=OFF PY35=ON PY36=OFF
24 VOPTS[py36]= PY27=OFF PY35=OFF PY36=ON
25 VOPTS[py27]= PY27=ON PY35=OFF PY36=OFF
27 RUN_DEPENDS= graphviz:primary:standard
29 DISTNAME= graphviz-0.8.3
33 [PY35].USES_ON= python:py35
35 [PY36].USES_ON= python:py36
37 [PY27].USES_ON= python:py27
39 [FILE:2533:descriptions/desc.single]
43 |PyPI version| |License| |Supported Python| |Format| |Docs|
47 This package facilitates the creation and rendering of graph descriptions
49 the DOT_ language of the Graphviz_ graph drawing software (`master repo`_)
53 Create a graph object, assemble the graph by adding nodes and edges, and
54 retrieve its DOT source code string. Save the source code to a file and
56 it with the Graphviz installation of your system.
58 Use the ``view`` option/method to directly inspect the resulting (PDF, PNG,
59 SVG, etc.) file with its default application. Graphs can also be rendered
60 and displayed within `Jupyter notebooks`_ (formerly known as
61 `IPython notebooks`_, example_) as well as the `Jupyter Qt Console`_.
67 - GitHub: https://github.com/xflr6/graphviz
68 - PyPI: https://pypi.org/project/graphviz/
69 - Documentation: https://graphviz.readthedocs.io
70 - Changelog: https://graphviz.readthedocs.io/en/latest/changelog.html
71 - Issue Tracker: https://github.com/xflr6/graphviz/issues
72 - Download: https://pypi.org/project/graphviz/#files
78 This package runs under Python 2.7, and 3.4+, use pip_ to install:
82 $ pip install graphviz
84 To render the generated DOT source code, you also need to install Graphviz
87 Make sure that the directory containing the ``dot`` executable is on your
94 Create a graph object:
98 >>> from graphviz import Digraph
100 >>> dot = Digraph(comment='The Round Table')
102 >>> dot #doctest: +ELLIPSIS
103 <graphviz.dot.Digraph object at 0x...>
109 >>> dot.node('A', 'King Arthur')
110 >>> dot.node('B', 'Sir Bedevere the Wise')
111 >>> dot.node('L', 'Sir Lancelot the Brave')
113 >>> dot.edges(['AB', 'AL'])
114 >>> dot.edge('B', 'L', constraint='false')
116 Check the generated source code:
120 >>> print(dot.source) # doctest: +NORMALIZE_WHITESPACE
123 A [label="King Arthur"]
124 B [label="Sir Bedevere the Wise"]
125 L [label="Sir Lancelot the Brave"]
128 B -> L [constraint=false]
131 Save and render the source code, optionally view the result:
135 >>> dot.render('test-output/round-table.gv', view=True) # doctest:
137 'test-output/round-table.gv.pdf'
140 https://raw.github.com/xflr6/graphviz/master/docs/round-table.png
148 c61de040e5354c088d2785ea447dd8c26fc572dcc389e4e23e2b46947808d43e 166030 graphviz-0.8.3.zip