Pyroxide 是一个基于 Rust 构建的无锁、高并发 Python 后台任务代理,通过 WASM 沙箱与动态原生插件实现无 GIL 执行,具备微秒级延迟且无需额外基础设施。

Stars

17

7 天增长

暂无数据

Fork 数

0

开放 Issue

0

开源协议

Apache-2.0

最近更新

2026-07-26

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

它将进程内 GIL 绕过、WASM 沙箱安全性与即时编译(Rust/C/Zig)原生库整合于一体,在标准 Python 并发方案基础上实现最高 36 倍加速,且无需 Redis 或 Celery 等外部服务。

适合谁使用

  • 需要高吞吐量与低延迟的 Python 开发者
  • 希望在 FastAPI 等异步循环中卸载 CPU 密集任务以免阻塞的用户
  • 构建多租户 SaaS、需要安全运行不可信用户代码的开发者
  • 处理大数据负载、追求零拷贝共享内存的数据工程师与科学家

典型使用场景

  • 从异步事件循环(如 FastAPI)中卸载重型计算以避免阻塞
  • 在受安全约束的 WASM 沙箱中运行不可信用户插件
  • 复用系统原生库(.so/.dylib)而无需编写包装代码
  • 批量提交并管理大量短生命周期后台任务,开销极低

项目优势

  • 通过 WASM 与动态原生插件绕过 GIL,无需 multiprocessing 的额外开销
  • 基于 OS 信号量的微秒级任务分发延迟(<25 µs),无轮询消耗
  • 零基础设施依赖:完全在进程内运行,无需 Redis/RabbitMQ/Celery
  • 针对超过 1 MB 的负载采用零拷贝共享内存,消除序列化瓶颈

使用前须知

  • 动态编译原生插件(Rust/C/Zig)需本地工具链,且可因安全要求被禁用
  • WASM 沙箱受配置的内存与超时限制,并非所有工作负载都适用
  • 项目较新,社区成熟度与生产环境验证可能不及 Celery 或 multiprocessing

README 快速开始

Installation

项目描述

A high-concurrency, lock-free task broker bridging Python and Rust via PyO3. Bypasses the GIL for high-throughput background processing.

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

l0ng-ai
精选
l0ng-ai GitHub avatar

tty7

tty7 is a fast, GPU-accelerated terminal workbench with persistent sessions, built-in input tools, SSH support, and coding agent awareness.

开发者工具CLI 与终端
359
m-novotny
精选
m-novotny GitHub avatar

memguard-rs

A Rust library that provides secure memory handling primitives including zeroization on drop, memory locking, constant-time comparison, and compile-time guarded regions, with zero dependencies and no_std support.

嵌入式与物联网安全
131
inbjo
inbjo GitHub avatar

MirrorProxy

MirrorProxy is a self-hosted, Rust-based mirror proxy platform with an embedded React admin console and cross-platform client for managing package sources.

Rust
204