Main > Programming > Libraries >

python-Observable 0.1.0

python-Observable 0.1.0

Sponsored Links

python-Observable 0.1.0 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.013 MB
Platform: Any Platform
License: GPL (GNU General Public License)
Price:
Downloads: 1418
Date added: 2005-12-05
Publisher: Manuel Amador

python-Observable 0.1.0 description

python-observable library lets Python developers build loosely coupled object meshes with a complete Observer/Observable implementation.

In software development literature, Observer/Observable is a software
pattern. From an Observer/Observable perspective, there are two kinds
of objects:

- objects which experience events or state changes (Observables)
- objects which need to know about other objects events (Observers)

If you have any experience with event-based programming, such as with
toolkits like GTK+ or Qt, youll be familiar with the Observer/Observable
pattern. Observer objects register themselves with the Observable object
of their interest, and when Observables experience events, these events
are relayed to the Observers.

Observer/Observable lets software developers build loosely coupled object meshes. What this means to you: your software will be more stable and easier to refactor.

This module has a complete Observer/Observable implementation. To take advantage of this module, all you have to do is:

- Make your Observable classes inherit from Observable (dont forget to call Observable.__init__(self) in the constructor)
- Make your Observer classes inherit from Observer (dont forget to call Observer.__init__(self) in the constructor)
- At runtime, for each object you want to observe, call self.observe(observable_object) in a method of your Observer object.
- In your Observable object, every time an event happens, call:
...
self.broadcastEvent("MyEventName",argument1,argument2...)
...
- In your Observer object, implement a method named: def processEvent(self,notifierObject,eventName,*args): which will receive the notifier object, an event name, and a variable number of arguments, every time broadcastEvent is called in any of the Observable objects that have been observed()

Thats it. Keep in mind that processEvent() will be invoked in the same thread context as the code which called broadcastEvent() in the Observable object. Thus, processEvent() methods should return quickly and never do blocking operations (suggested technique for coping with blocking operations: run them in a separate thread, which sleeps until a flag is raised, and raise the flag in the processEvent() method as appropriate).

python-Observable 0.1.0 Screenshot

Advertisements

python-Observable 0.1.0 Keywords

Bookmark python-Observable 0.1.0

Hyperlink code:
Link for forum:

python-Observable 0.1.0 Copyright

WareSeeker periodically updates pricing and software information of python-Observable 0.1.0 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of python-Observable 0.1.0 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
python-amarok is a fairly complete amaroK remote control class for Python. Free Download
python-inotify project is a Python interface to the inotify file notification system present in Linux 2.6. Free Download
Class::Observable is a Perl module that allows other classes and objects to respond to events in yours. Free Download
JWhoisServer project is a small, fast, and highly configurable RFC 3912 compliant whois server. Free Download
ExpenseTracker is a tag based personal expense tracking software. Free Download
Scons Erlang is an add on for SCons, a make/autotools replacement, to compile Erlang projects. Free Download
Dee-Python is an implementation of a truly relational database language with Python. Free Download
IFMonitor is a simple network interface monitor for KDE. Free Download