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

All Samples(10)  |  Call(0)  |  Derive(5)  |  Import(5)

src/c/i/circuits-3.0.0.dev/circuits/io/serial.py   circuits(Download)
from collections import deque
 
from circuits.core import Component, handler, Event
from circuits.core.pollers import BasePoller, Poller
from circuits.core.utils import findcmp
class Serial(Component):
 
    channel = "serial"
 
    def __init__(self, port, baudrate=115200, bufsize=BUFSIZE,

src/c/i/circuits-3.0.0.dev/circuits/io/file.py   circuits(Download)
from circuits.tools import tryimport
from circuits.core.utils import findcmp
from circuits.core import handler, Component, Event
from circuits.core.pollers import BasePoller, Poller
from circuits.six import binary_type, string_types, PY3
class File(Component):
 
    channel = "file"
 
    def init(self, filename, mode="r", bufsize=BUFSIZE, encoding=None,

src/c/i/circuits-3.0.0.dev/circuits/protocols/irc.py   circuits(Download)
 
from circuits.net.events import write
from circuits.core import handler, Event, Component
 
from .line import Line
class IRC(Component):
    """IRC Protocol Component
 
    Creates a new IRC Component instance that implements the IRC Protocol.
    Incoming messages are handled by the "read" Event Handler, parsed and

src/c/i/circuits-3.0.0.dev/tests/core/test_debugger.py   circuits(Download)
 
from circuits import Debugger
from circuits.core import Event, Component
 
 
class test(Event):
    """test Event"""
 
 
class App(Component):

src/c/i/circuits-3.0.0.dev/tests/core/test_call_wait_timeout.py   circuits(Download)
#!/usr/bin/env python
 
import pytest
 
from circuits.core import handler, Component, Event, TimeoutError
class App(Component):
    @handler('wait')
    def _on_wait(self, timeout=-1):
        result = self.fire(hello())
        try: