Changelog History
Page 2
-
v0.16 Changes
β Add
.unflatten()
method toGraph
,Digraph
, andSource
. Add standaloneunflatten()
.Make
Source.__str__()
return the.source
instead of therepr()
(likeGraph
andDigraph
).Render with
dot -K<engine> ...
instead of<engine> ...
internally βͺ (work aroundupstream issue <https://gitlab.com/graphviz/graphviz/-/issues/1753>
_).β Add documentation hint to archived upstream version for Windows.
π Re-render most documentation graphs with Graphviz 2.44.1.
-
v0.15 Changes
Graph
andDigraph
instances created via the context-manager returned bysubgraph()
now (re)usedirectory
,format
,engine
, andencoding
from the parent 0οΈβ£ instead of using defaults (behavioral change). Note that these attributes are only relevant when rendering the subgraph independently (i.e. as a stand-alone graph) from within thewith
-block, which was previously underdocumented. PR#116 <https://github.com/xflr6/graphviz/pull/116>
_ BMaxV. To reflect that the DOT language does not allow subgraph statements to specifystrict
(i.e. no way to override the setting of the containing graph), instances created via the context-manager are nowstrict=None
instead ofFalse
0οΈβ£ (so they continue to render stand-alone as non-strict by default).β¬οΈ Drop Python 3.5 support and tag Python 3.9 support.
β Add documentation link to new upstream installation procedure for Windows.
-
v0.14.2 Changes
π Adapt
graphviz.version()
to support the Graphviz Release version entry β format introduced with2.44.2
(version()
is needed to run the tests). -
v0.14.1 Changes
Document the colon-separated
node[:port[:compass]]
format used fortail
andhead
points in theedge()
- andedges()
-methods. PR#101 <https://github.com/xflr6/graphviz/pull/101>
_ MichaΕ GΓ³ral. -
v0.14 Changes
π Improve handling of escaped quotes (
\"
). Different from other layout engine escapes sequences such as\l
and\N
(which are passed on as is by 0οΈβ£ default), there is no use case for backslash-escaping a literal quote character because escaping of quotes is done by this library. Therefore, a backslash-escaped quote (e.g. inlabel='\\"'
) is now treated the same as a plain unescaped quote, i.e. bothlabel='"'
andlabel='\\"'
produce the same DOT source[label="\""]
(a label that renders as a literal quote). Before this change, use of'\\"'
could break the quoting mechanism creating invalid or unintended DOT, possibly leading to syntax errors from the rendering π¨ process.β Add notebook section to documentation.
β Add
sphinx.ext.viewcode
to docs (note that this currently lacks links for methods, so that not all of the code is linked; use the source repo for reading on).π Improve test and doc building config.
-
v0.13.2 Changes
November 08, 2019π Fix missing support for four-part versions in
graphviz.version()
. -
v0.13.1 Changes
November 07, 2019π· Tag Python 3.8 support.
π Fix quoting for non-ASCII numerals.
-
v0.13 Changes
September 09, 2019β Add explicit support for layout engine escape sequences such as
\l
and\N
. These already worked implicitly before but where broken by backslash π escaping in0.12
, which is reverted by this release. Escaping now resembles the stdlibre
module: literal backslashes need to be escaped (doubled), which is most conveniently done by using raw string literals for strings that π use escape sequences (including escaped backslashes), e.g.label=r'\\'
.β Add
escape()
function (resemblingre.escape()
) for disabling all meta-characters in a string for rendering.π² Use
logging
in example notebook, add notebooks demonstrating layout engines β and escape sequence usage, improve tests with parametrization. -
v0.12 Changes
August 21, 2019π Fix missing escaping of backslashes, e.g. in labels (pull request DNGros).
β Add
quiet
argument to standaloneview()
function, andquiet_view
argument on.render()
and.view()
methods. Suppresses thestderr
π output of started viewer processes (unavailable on Windows).β Add basic debug logging via the stdlib
logging
module.β Reformatted some examples, improved tests by using autospec for mocks.
-
v0.11.1 Changes
July 05, 2019Include
stderr
instr()
of raisedsubprocess.CalledProcessError
.