Rel is a lightweight (0.4.9.26) event/observer pattern library for Python that implements the standard pyevent interface without external dependencies. It provides a simple publish-subscribe mechanism with event registration, firing, and listener management. The library is API-stable with infrequent releases.
pip install relVerified import paths — ran on the pinned version, not inferred.
Basic usage: add listeners, fire events synchronously or with a delay.
Use rel.timeout or rel.schedule for timed callbacks, not threading.Thread.
Replace EventHandler instances with rel.add() and rel.fire(). Visit documentation for migration.
Call rel.dispatch() (blocking) to start the event loop after scheduling. Use a non-blocking alternative like rel.timeout if you need async in a GUI framework.
Use: from rel import EventHandler (or simply import rel and use rel.add/fire).
Use: from rel import add (or import rel and then rel.add).
No dependency data recorded yet.