Package circuits :: Package tools

Package tools

Circuits Tools

circuits.tools contains a standard set of tools for circuits. These tools are installed as executables with a prefix of "circuits."

Submodules

Functions
 
walk(x, f, d=0, v=None)
 
edges(x, e=None, v=None)
 
findroot(x, v=None)
 
kill(x)
str
graph(x, name=None)
Display a directed graph of the Component structure of x
str
reprhandler(x)
Display a nicely formatted Event Handler, x
str
inspect(x)
Display an inspection report of the Component or Manager x
Function Details

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)
Returns: str
A directed graph representing x's Component sturcture.

reprhandler(x)

 

Display a nicely formatted Event Handler, x

Parameters:
  • x (function or method) - An Event Handler
Returns: str
A nicely formatted representation of the Event Handler, x

inspect(x)

 

Display an inspection report of the Component or Manager x

Parameters:
  • x (Component or Manager) - A Component or Manager to graph
Returns: str
A detailed inspection report of x