-
-
Notifications
You must be signed in to change notification settings - Fork 1
Home
nexconnectio edited this page Jan 17, 2025
·
2 revisions
PynneX is a pure-Python library for event-driven concurrency with emitter/listener pattern, designed for async and multi-threaded environments.
Modern Python applications often blend async I/O and multithreading. PynneX offers a focused approach:
- Decorator-based emitters and listeners for clean, event-driven code
- Built-in thread-safety, so you don't manually deal with locks or queues
- Easy background task handling via
@nx_with_worker
- Seamless integration with asyncio
- No external dependencies beyond Python 3.10+
- Pure Python: No external dependencies needed
- Async/Await Friendly: Supports both synchronous and asynchronous slots
- Thread-Safe: Automatic signal/slot management across thread boundaries
-
Worker Thread Pattern:
@nx_with_worker
for dedicated thread & event loop