Skip to main content

Event framework with a Component architecture

Project description

A Lightweight, Event driven Framework with a strong Component Architecture.

Components communicate with one another by propagating Events on Channels throughout the System. Each Component has a set of Event Handlers that can listen for or filter Events on one or more Channels. Components react to Events and in turn expose further Events into the System. Each Component is capable of managing it’s own Events as well as those of other Components. Complex directed graph structures can be created with Component Registrations, this gives a level of hierarchy and separation of concern.

Example:
>>> from time import sleep
>>> from circuits import Event, Component
>>>
>>> class App(Component):
...   def hello(self):
...      print "Hello World!"
>>> app = App()
>>> app.start()
>>> app.push(Event(), "hello")
>>> sleep(1)
Hello World!

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for circuits, version 1.1.1
Filename, size File type Python version Upload date Hashes
Filename, size circuits-1.1.1-py2.5.egg (221.3 kB) File type Egg Python version 2.5 Upload date Hashes View
Filename, size circuits-1.1.1-py2.6.egg (221.0 kB) File type Egg Python version 2.6 Upload date Hashes View
Filename, size circuits-1.1.1.tar.gz (159.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page