Metadata-Version: 2.3
Name: intrabus
Version: 0.1.0
Summary: Lightweight ZeroMQ pub/sub + req/rep message bus for single‑host threaded / multi‑process Python apps
License: MIT
Keywords: zeromq,pubsub,rpc,message-bus,threading
Author: BuilderCrafter
Requires-Python: >=3.9,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: pyzmq (>=26.0,<27.0)
Project-URL: Repository, https://github.com/BuilderCrafter/intrabus
Description-Content-Type: text/markdown

# intrabus

**intrabus** is a tiny ZeroMQ‑powered message bus that brings **pub/sub events** and **request‑reply RPC** to any multi‑threaded or multi‑process Python application — with **zero external infrastructure**.

## Quick Start

Install from TestPyPI while the project is in pre‑release:

```bash
pip install --index-url https://test.pypi.org/simple/ intrabus

```python
from intrabus import BusInterface, run_topic_broker, run_central_broker

# start background brokers (for dev/testing)
run_topic_broker()
run_central_broker()

# create two modules
alice = BusInterface("Alice")
bob = BusInterface("Bob")

bob.subscribe("greetings", lambda t, m: print("Bob got:", m))

alice.publish("greetings", {"msg": "Hi Bob!"})
print(bob.send_request("Alice", {"question": "ping?"}))
