跳转至

Pulsing

分布式 AI 系统的通信骨干。

Actor 运行时。流式优先。零依赖。内置发现。

用 Rust 构建、为 Python 设计的分布式 Actor 运行时。跨机器连接 AI Agent 和服务——不需要 Redis,不需要 etcd,不需要 YAML。

为什么选择 Pulsing?

  • 零依赖


    纯 Rust + Tokio 实现。无需 etcd、NATS、Redis 或 Consul。只需 pip install pulsing。

  • 流式优先


    原生流式支持,为 LLM token 生成和实时通信而设计。

  • 内置发现


    SWIM/Gossip 协议实现自动节点发现和故障检测。无需配置。

  • Rust 构建,Python 设计


    通过 PyO3 提供完整异步 Python API。@remote 装饰器将任意类变成分布式 Actor。


你可以构建什么?

  • 分布式 Agent


    原生集成 AutoGen 和 LangGraph。跨机器分布你的 Agent。

    分布式 Agent

  • 与 Ray 协同


    用 Pulsing 作为 Ray Actor 的通信层。流式、发现、跨集群调用——开箱即用。

    Ray + Pulsing

  • 带资源约束的子进程


    保持 Python subprocess 的调用方式,并在附带 resources 时按需切到 Pulsing 执行后端。

    子进程示例


快速开始

pip install pulsing
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())

快速开始


深入了解

目标 链接
Pulsing 是什么 / 适合谁? 概述
理解 Actor 模型 Actor 基础
构建集群 远程 Actor
使用 pulsing.subprocess 执行命令 子进程示例
运维系统 CLI 运维
架构与设计 架构与设计
API 详情 API 概述
完整 API 契约 完整参考

社区