Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(7)  |  Call(3)  |  Derive(0)  |  Import(4)
Display an inspection report of the Component or Manager x

:param x: A Component or Manager to graph
:type  x: Component or Manager

@return: A detailed inspection report of x
@rtype:  str

        def inspect(x):
    """Display an inspection report of the Component or Manager x

    :param x: A Component or Manager to graph
    :type  x: Component or Manager

    @return: A detailed inspection report of x
    @rtype:  str
    """

    s = []
    write = s.append

    write(" Components: %d\n" % len(x.components))
    for component in x.components:
        write("  %s\n" % component)
    write("\n")

    from circuits import reprhandler

    write(" Event Handlers: %d\n" % len(x._handlers.values()))
    for event, handlers in x._handlers.items():
        write("  %s; %d\n" % (event, len(x._handlers[event])))
        for handler in x._handlers[event]:
            write("   %s\n" % reprhandler(handler))

    return "".join(s)
        


src/c/i/circuits-3.0.0.dev/examples/web/terminal/terminal.py   circuits(Download)
 
from circuits.io import File
from circuits.tools import inspect
from circuits.net.events import write
from circuits.web.events import stream
 
        if input.strip() == "inspect":
            return inspect(self)
 
        self.response.stream = True

src/c/i/circuits-3.0.0.dev/circuits/web/main.py   circuits(Download)
 
from circuits.core.pollers import Select
from circuits.tools import inspect, graph
from circuits import Component, Manager, Debugger
from circuits import __version__ as systemVersion
        print(graph(manager, name="circuits.web"))
        print()
        print(inspect(manager))
 
    for i in range(opts.mp):

src/k/d/kdb-1.0.2/kdb/plugins/stats.py   kdb(Download)
 
from circuits import handler, Component
from circuits.tools import graph, inspect
 
from pymills.utils import MemoryStats

src/c/i/circuits-3.0.0.dev/tests/tools/test_tools.py   circuits(Download)
 
from circuits import Component, reprhandler
from circuits.tools import kill, inspect, findroot, tryimport
 
 
 
    a = A()
    s = inspect(a)
 
    assert s == INSPECT