Pulsing¶
Backbone for distributed AI systems.
Actor runtime. Streaming-first. Zero dependencies. Built-in discovery.
A distributed actor runtime built in Rust, designed for Python. Connect AI agents and services across machines — no Redis, no etcd, no YAML.
Why Pulsing?¶
-
Zero Dependencies
Pure Rust + Tokio. No etcd, NATS, Redis, or Consul. Just
pip install pulsing. -
Streaming-first
Native streaming support built for LLM token generation and real-time communication.
-
Built-in Discovery
SWIM/Gossip protocol for automatic node discovery and failure detection. No configuration needed.
-
Built in Rust, Designed for Python
Full async Python API via PyO3.
@remotedecorator turns any class into a distributed Actor.
What Can You Build?¶
-
Distributed Agents
Native integration with AutoGen and LangGraph. Distribute your agents across machines.
-
Works with Ray
Use Pulsing as the communication layer for Ray actors. Streaming, discovery, and cross-cluster calls — built in.
-
Subprocess with Resources
Keep the Python
subprocesscall style and optionally route commands through Pulsing when you attachresources.
Quick Start¶
import asyncio
import pulsing as pul
@pul.remote
class Counter:
def __init__(self, value=0):
self.value = value
def inc(self):
self.value += 1
return self.value
async def main():
await pul.init()
counter = await Counter.spawn(value=0)
print(await counter.inc()) # 1
print(await counter.inc()) # 2
await pul.shutdown()
asyncio.run(main())
Learn More¶
| Goal | Link |
|---|---|
| What is Pulsing / who is it for? | Overview |
| Understand the Actor model | Actor Basics |
| Build a cluster | Remote Actors |
Run commands with pulsing.subprocess |
Subprocess Example |
| Operate your system | CLI Operations |
| Architecture and design | Architecture & Design |
| API details | API Overview |
| Full API contract | Complete Reference |