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

All Samples(258)  |  Call(0)  |  Derive(145)  |  Import(113)

src/c/i/circuits-3.0.0.dev/examples/factorial.py   circuits(Download)
 
from circuits import task, Worker
from circuits import Component, Debugger, Event, Timer
 
 
class App(Component):
 
    def init(self, *args, **kwargs):
        Worker(process=True).register(self)
 

src/c/i/circuits-3.0.0.dev/examples/hello_bridge.py   circuits(Download)
from os import getpid
 
from circuits import Component, Debugger, Event, Manager
 
 
class hello(Event):
    """hello Event"""
 
 
class App(Component):

src/c/i/circuits-3.0.0.dev/examples/web/terminal/terminal.py   circuits(Download)
from circuits.net.events import write
from circuits.web.events import stream
from circuits import handler, Event, Component
from circuits.web import Server, Controller, Logger, Static, Sessions
 
class Command(Component):
 
    channel = "cmd"
 
    def __init__(self, request, response, command, channel=channel):

src/c/i/circuits-3.0.0.dev/examples/hello_node.py   circuits(Download)
 
from circuits.node import Node, remote  # noqa
from circuits import Component, Debugger, Event
 
 
class hello(Event):
    """hello Event"""
 
 
class App(Component):

src/c/i/circuits-3.0.0.dev/docs/source/man/examples/handler_returns.py   circuits(Download)
#!/usr/bin/env python
 
from circuits import Component, Event
from circuits.core.debugger import Debugger
 
class Identify(Event):
    """Identify Event"""
    success = True
 
class Pound(Component):
class Dog(Component):
 
    def Identify(self):
        return self.__class__.__name__
 

src/c/i/circuits-3.0.0.dev/examples/timers.py   circuits(Download)
"""
 
from circuits import Event, Component, Timer
 
 
class App(Component):

src/c/i/circuits-3.0.0.dev/examples/circ.py   circuits(Download)
from urwid import AttrWrap, Edit, Frame, ListBox, Pile, SimpleListWalker, Text
 
from circuits import handler, Component
from circuits import __version__ as systemVersion
from circuits.net.sockets import TCPClient, Connect
class Client(Component):
 
    channel = "client"
 
    def init(self, host, port=6667, opts=None):

src/c/i/circuits-3.0.0.dev/examples/primitives/wait.py   circuits(Download)
#!/usr/bin/env python
 
from circuits import Component, Event
 
 
class App(Component):
 
    def foo(self):
        return 1
 

src/c/i/circuits-3.0.0.dev/examples/primitives/fire.py   circuits(Download)
#!/usr/bin/env python
 
from circuits import Component, Event
 
 
class App(Component):
 
    def foo(self):
        print("Foo!")
 

src/c/i/circuits-3.0.0.dev/examples/primitives/call.py   circuits(Download)
#!/usr/bin/env python
 
from circuits import Component, Event
 
 
class App(Component):
 
    def foo(self):
        return 1
 

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next