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.2.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.2
33 LICENSE_FILE= MIT:{{WRKSRC}}/LICENSE
37 [PY35].USES_ON= python:py35
39 [PY36].USES_ON= python:py36
41 [PY27].USES_ON= python:py27
43 [FILE:2643:descriptions/desc.single]
47 |PyPI version| |License| |Supported Python| |Format| |Docs|
\r
51 This package facilitates the creation and rendering of graph descriptions in
\r
52 the DOT_ language of the Graphviz_ graph drawing software (`master repo`_) from
\r
55 Create a graph object, assemble the graph by adding nodes and edges, and
\r
56 retrieve its DOT source code string. Save the source code to a file and render
\r
57 it with the Graphviz installation of your system.
\r
59 Use the ``view`` option/method to directly inspect the resulting (PDF, PNG,
\r
60 SVG, etc.) file with its default application. Graphs can also be rendered
\r
61 and displayed within `Jupyter notebooks`_ (formerly known as
\r
62 `IPython notebooks`_, example_) as well as the `Jupyter Qt Console`_.
\r
68 - GitHub: https://github.com/xflr6/graphviz
\r
69 - PyPI: https://pypi.python.org/pypi/graphviz
\r
70 - Documentation: https://graphviz.readthedocs.io
\r
71 - Changelog: https://graphviz.readthedocs.io/en/latest/changelog.html
\r
72 - Issue Tracker: https://github.com/xflr6/graphviz/issues
\r
73 - Download: https://pypi.python.org/pypi/graphviz#downloads
\r
79 This package runs under Python 2.7, and 3.4+, use pip_ to install:
\r
83 $ pip install graphviz
\r
85 To render the generated DOT source code, you also need to install Graphviz
\r
88 Make sure that the directory containing the ``dot`` executable is on your
\r
95 Create a graph object:
\r
99 >>> from graphviz import Digraph
\r
101 >>> dot = Digraph(comment='The Round Table')
\r
103 >>> dot #doctest: +ELLIPSIS
\r
104 <graphviz.dot.Digraph object at 0x...>
\r
106 Add nodes and edges:
\r
110 >>> dot.node('A', 'King Arthur')
\r
111 >>> dot.node('B', 'Sir Bedevere the Wise')
\r
112 >>> dot.node('L', 'Sir Lancelot the Brave')
\r
114 >>> dot.edges(['AB', 'AL'])
\r
115 >>> dot.edge('B', 'L', constraint='false')
\r
117 Check the generated source code:
\r
121 >>> print(dot.source) # doctest: +NORMALIZE_WHITESPACE
\r
124 A [label="King Arthur"]
\r
125 B [label="Sir Bedevere the Wise"]
\r
126 L [label="Sir Lancelot the Brave"]
\r
129 B -> L [constraint=false]
\r
132 Save and render the source code, optionally view the result:
\r
136 >>> dot.render('test-output/round-table.gv', view=True) # doctest: +SKIP
\r
137 'test-output/round-table.gv.pdf'
\r
139 .. image:: https://raw.github.com/xflr6/graphviz/master/docs/round-table.png
\r
147 606741c028acc54b1a065b33045f8c89ee0927ea77273ec409ac988f2c3d1091 166880 graphviz-0.8.2.zip