Observer Design Pattern for python gevent coroutine package
Observer Design Pattern for python gevent coroutine package Description
Description: This is simple implementation of the observer design pattern. Acting as a registration hub, it fires events when requested. Also i have gevent.Timeout like interface in situations when you need to run event-method in the same greenlet. Example:
e = Observer() ev = e.wait('kill') try: gevent.sleep(3) except FiredEvent: print 'Fired!' else: print 'Not Fired!' finally: ev.cancel()
But rememeber, if you are using subscribe method, event-method will be executed in another greenlet.
Implements the observer design pattern via generator coroutines, wrapped up to use the new 'with' statement of Python 2.5. Enables the loosely-coupled observation of any container implementing the dictionary protocol.
SERIALDATASTREAM is a design pattern for a function to receive and process a continuous stream of data from a device connected to a USB or serial port. This function does not execute as written; it includes explanations and examples for all of the...
WebDeco implemens the Decoration Design Pattern for J2EE/JavaEE web applications. It does so by providing a Servlet Filter that wraps a very flexible and extensible framework for content extraction and decoration.
A compact development framework for Adobe ColdFusion applications, implementing an MVC design pattern for web applications. CFRhino has both an event and extension frameworks allowing it to be fully extended.
Lazarus-chain is a implementation of the chain of responsibility design pattern for Lazarus and Delphi (written in Free Object Pascal). Chains can be constructed in runtime by a configuration file. I use this little framework in several projects.
The Singleton design pattern (DP) has a catchy name, but the wrong focus -- on identity rather than on state. The Borg design pattern has all instances share state instead, and Python makes it, literally, a snap.
The Java Design Pattern API provides a lightweight architecture for representing design patterns as Marker Interfaces within Java applications. This allows for richer JavaDoc documentation and opens up the possibility of pattern-aware development...
All files and free downloads are copyright of their respective owners. We do not provide any hacked, cracked, illegal, pirated version of scripts, codes, components downloads. All files are downloaded from the publishers website, our file servers or download mirrors. Always Virus check files downloaded from the web specially zip, rar, exe, trial, full versions etc. Download links from rapidshare, depositfiles, megaupload etc not published.