circuits.tools – Development Tools

Often you will end up needing to do some debugging or inspection of your system. The circuits.tools package provides a set of development tools for debugging, inspection and analysis.

circuits.tools.graph(x, name=None)

Display a directed graph of the Component structure of x

Parameters:
  • x (Component or Manager) – A Component or Manager to graph
  • name (str) – A name for the graph (defaults to x’s name)

@return: A directed graph representing x’s Component sturcture. @rtype: str

circuits.tools.reprhandler(c, h)

Display a nicely formatted Event Handler, h from Component c.

Parameters:
  • c (Manager or Manager subclass) – A Component that contains Event Handler h
  • x (function or method) – An Event Handler

@return: A nicely formatted representation of the Event Handler, x @rtype: str