Minpubsub
A minimal PubSub based distributed message queue model with multiple backend persistence modes - InMemory, SQLite, MySQL, MongoDB.
Install / Use
/learn @jyotiska/MinpubsubREADME
minpubsub
A minimal PubSub based distributed message queue model with multiple backend persistence modes - SQLite, MySQL, MongoDB.
Usage
Create a pubsub object::
>> from minpubsub import create
>> pubsub = create('memory') # for in-memory message queue
>> pubsub = create('sqlite') # for sqlite based message queue
>> pubsub = create('sqlite', '<directory>', '<db_name>') # for sqlite based message queue, you can optionally also specify a directory and the database name
>> pubsub = create('mysql', '<host>', '<username>', '<password>', '<schema>') # for mysql based message queue
>> pubsub = create('mongodb', '<host>', '<port>') # for mongodb based message queue
Subscribe to a Topic::
>> subscriber = pubsub.subscribe('topic') # for subscribing to a single topic
>> subscriber = pubsub.subscribe('topic_1', 'topic_2', 'topic_3') # for subscribing to multiple topics
Publish a message to a topic::
>> pubsub.publish('topic_1', 'hello world!')
Retrieve a message from the message queue::
>> subscriber.getNext()
Retrieve all messages from the message queue::
>> subscriber.getAll()
Retrieve number of messages available in the message queue::
>> subscriber.getCount()
Stop listening to a Topic (not available for in-memory message queue) ::
>> subscriber.closeTopic('<topic_name>')
minpubsub is an experimental project and a work in progress. It is not yet ready to be used in production environment.
Supported backends
- memory
- sqlite
- mysql
- mongodb
Related Skills
feishu-drive
349.2k|
things-mac
349.2kManage Things 3 via the `things` CLI on macOS (add/update projects+todos via URL scheme; read/search/list from the local Things database)
clawhub
349.2kUse the ClawHub CLI to search, install, update, and publish agent skills from clawhub.com
codebase-memory-mcp
1.2kHigh-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 66 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.
