{"repo":"thrau/pymq","free":true,"listed":false,"github":"https://github.com/thrau/pymq","clone":"git clone https://github.com/thrau/pymq.git","description":"A simple message-oriented middleware library built for Python IPC across machine boundaries","language":"Python","stars":25,"topics":["python","redis","queues","pubsub","rpc","message-oriented-middleware"],"license":"MIT","category":"databases-storage","readme_excerpt":"PyMQ ==== PyMQ is a simple message-oriented middleware library for implementing Python IPC across machine boundaries. The API enables different styles of remoting via Pub/Sub, Queues, and synchronous RPC. It is an excellent choice for Python projects that need robust IPC without the overhead of more complex frameworks like Celery or gRPC. With PyMQ, developers can integrate Python applications running on different machines in a loosely coupled way over existing transport mechanisms. PyMQ currently provides a Redis backend, a POSIX IPC backend for single-machine IPC, and an in-memory backend for testing. The API is extensible and other transports can be plugged in. Using PyMQ ---------- Install Starting from pymq 0.5, all providers are separated into setuptools extras. If you want to use the redis backend, then run pip install pymq[redis] Available providers: pymq[redis] Redis provider pymq[ipc] Linux IPC provider pymq[full] install all providers Initialize PyMQ The core module manages a global eventbus instance that provides the remoting primitives. The default Redis implementation uses an event loop over a pubsub object. The global eventbus is initialized via pymq.init and by passing a provider factory. This will create an eventbus instance on top of a local Redis server. Pub/Sub Pub/Sub allows asynchronous event-based communication. Event classes are used to transport state and identify channels. Queues Queues are straight forward, as they are compatible to the Python queue","default_branch":null,"files":null,"tree":[],"storefront":"/r/thrau","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/thrau/pymq/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}