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!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file circuits-1.1.1.tar.gz
.
File metadata
- Download URL: circuits-1.1.1.tar.gz
- Upload date:
- Size: 159.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 370f141b5f83bc679ade6dec80e99d262afdc2e17a6cce9f4fb17b4da0b92115 |
|
MD5 | 19b072702053debfff4040db1000a4b4 |
|
BLAKE2b-256 | 425c0b3ac5e9ffd5b068ea34a5d76fb5b5c2f47f3daaecaeb4394e22c23f6f05 |
File details
Details for the file circuits-1.1.1-py2.6.egg
.
File metadata
- Download URL: circuits-1.1.1-py2.6.egg
- Upload date:
- Size: 221.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ee2462b4273c7f6bbc177e7dd8e6ed861f952f24c2900c3d4d06eec45eeea73 |
|
MD5 | 568f9297d63bc0312f8619deab6e30e1 |
|
BLAKE2b-256 | 36389638f3f0965b1cd454f51b5a6564b2485eba30f37d37e51bf16920cadb3a |
File details
Details for the file circuits-1.1.1-py2.5.egg
.
File metadata
- Download URL: circuits-1.1.1-py2.5.egg
- Upload date:
- Size: 221.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17d1018d46a9aafeef2393009347605ff9454a5874a8f7777a1b6e4dcbb8ef6b |
|
MD5 | 953f29f251db814dad3139f1f836e2eb |
|
BLAKE2b-256 | 6c3ca83caad59f38ad3784fd576c82eb2c5443f9daadd6a881b1e119ddb8478d |