observable
minimalist event system
What it is and what it does
Observable is a minimalist event system for Python that lets you attach handler functions to named events and trigger them on demand. It supports both decorator-style registration (`@obs.on("event_name")`) and direct method calls, and provides utilities to remove handlers, check registration status, and manage events. The package has no external dependencies and installs cleanly.
Typical usage involves creating an Observable instance, registering event handlers, and calling `trigger()` to invoke them with arbitrary arguments. It's designed for simple event-driven architectures where you need decoupled communication between different parts of your code—for example, error handling, state changes, or user actions. The package is stable and production-ready in its API, but has not been maintained since early 2020.
Use it for:
- Decouple error handling from core logic by registering error handlers that trigger on specific failure conditions.
- Build simple plugin systems where external code registers handlers for application lifecycle events.
- Implement state-change notifications so multiple parts of an application react when data changes.
- Create callback chains for asynchronous workflows without introducing heavy async/await complexity.
- Prototype event-driven architectures before committing to a larger framework.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Observable provides a lightweight event system that lets you register handler functions to trigger on named events and invoke them programmatically.
Yes, for small to medium projects that need lightweight event handling without external dependencies. The API is simple and stable. However, do not use for new projects requiring ongoing maintenance or Python version support beyond 3.7—the package is abandoned and will not receive updates. Consider it only when you need a minimal, self-contained event system and can tolerate no future fixes.
Install
observable on PyPI
pip
pip install observableuv
uv add observablepoetry
poetry add observableInstalling observable
Before you install
Installation is straightforward with no runtime dependencies. However, the package has been abandoned since early 2020 with no commits or releases in nearly six years, so maintenance and security updates are not expected.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and proprietary projects.
Quickstart
pip install observable
from observable import Observable
obs = Observable()
@obs.on("error")
def error_handler(message):
print(f"Error: {message}")
obs.trigger("error", "Something went wrong")
Requires Python 3.5 or later; Python 2 is not supported.
Verify before relying
- Whether the package works reliably with Python versions released after 3.7 (last tested version in classifiers)
- Whether abandonment has led to compatibility issues with modern Python ecosystems
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | abandoned — 2,885 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 156,647/month — #10,779 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: observable-1.0.3-py2.py3-none-any.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
pyventusPyventus is a Python library for building…
permissive · top 15,000 on PyPI
psygnalPsygnal implements the observer pattern with a…
permissive · top 5,000 on PyPI
fastapi-eventsFastapi-events is an event dispatching and…
permissive · top 15,000 on PyPI
bubusBubus is a Pydantic-powered event bus library…
permissive · top 5,000 on PyPI
reactivexRxPY is a library for building asynchronous and…
permissive · top 5,000 on PyPI
RxRxPY provides a library for composing…
permissive · top 5,000 on PyPI
PypubsubProvides a publish-subscribe messaging system…
permissive · top 15,000 on PyPI
EventsProvides a publish-subscribe event system where…
permissive · top 1,000 on PyPI
abxbusAn in-memory event bus for async Python that…
permissive · top 15,000 on PyPI