PyDot

Python interface to Graphviz's Dot language
Download

PyDot Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Freeware
  • Price:
  • FREE
  • Publisher Name:
  • Ero Carrera
  • Publisher web site:
  • http://code.google.com/u/ero.carrera/
  • Operating Systems:
  • Mac OS X
  • File Size:
  • 20 KB

PyDot Tags


PyDot Description

Python interface to Graphviz's Dot language PyDot is a free and open source Python library that allows you to easily create both directed and non directed graphs from Python. Currently all attributes implemented in the Dot language are supported (up to Graphviz 2.16).Output can be inlined in Postscript into interactive scientific environments like TeXmacs, or output in any of the format's supported by the Graphviz tools dot, neato, twopi. NOTE: PyDot is licensed and distributed under the terms of the MIT License. Requirements: · Pyparsing · Graphviz What's New in This Release: · The parser has been improved a lot. It passes all of GraphViz's regression tests (which I consider quite an accomplishment seeing the kind of crazy constructs on those ) · Different charsets should now be dealt with properly. · The search of GraphViz's executables has been improved for all platforms. On Windows, paths and registry keys are searched. On Unix now it should exhibit the same behavior as the traditional shell path search. (Thanks Andy Gimblett and many others) · Double-quoted paths in Windows are nor properly handled. The os.path.exists() check fails if a valid path is enclosed within quotes. · 'type' keyword has been changed everywhere to 'graph_type' · Better handling of Node/Edge/Graph defaults. Added methods: set_graph_defaults, set_node_defaults, set_edge_defaults, get_graph_defaults, get_node_defaults, get_edge_defaults · Now it's possible to use rank to lay out nodes at the same level · Multiple main graphs in a file are now supported, will be returned as a list of graph instances · Handling of shapefiles Dot().set_shape_files() · Added method "add_style()" to the Node class to easily append styles to a node · Attribute lists updated to reflect the available ones in graphviz 2.16 · Added error reporting when rendering graphs with GraphViz executables. There was an often reported problem where the output graphs would have 0 size. In most cases this was due to Graphviz missing a library for a format that pydot assumed to be there. Now the error given by the executable will be reported instead of being silently ignored (Thanks Jarno) · Improved parsing of identifiers · Added non-GraphViz attributes needed by dot2tex · Jose Fonseca contributed a fix dealing with quoted strings the the dot parsing module · setup.py updated so that it's possible to install pydot through Setuptools' easy_install · Edge()'s can be created passing two Node objects as well as, the previously supported, two strings with node names. Warning: when passing two Node instances, the attributes won't be taken into account. The edge will only read the Nodes' names to create an edge, the Nodes must be separately added to the graph so all their attributes are "remembered". · Substituted all str()'s for unicode()'s · It's possible now to manually specify the path to GraphViz's executables in the case they can't be found automatically. The method 'set_graphviz_executables(paths)' will take a dictionary specifying the location of the executables. Please refer to the documentation for usage detailed information. · And too many bugfixes to list...


PyDot Related Software