通信模块
Go to file
2024-10-20 22:06:37 +08:00
.github/workflows first comm 2024-10-12 23:34:36 +08:00
magicoca 重写select逻辑,benchmark结果看来提升了225倍 2024-10-20 22:06:03 +08:00
tests 重写select逻辑,benchmark结果看来提升了225倍 2024-10-20 22:06:03 +08:00
.gitignore 重写select逻辑,benchmark结果看来提升了225倍 2024-10-20 22:06:37 +08:00
LICENSE Initial commit 2024-10-08 22:06:22 +08:00
main.py 重写select逻辑,benchmark结果看来提升了225倍 2024-10-20 22:06:03 +08:00
pdm.lock 重写select逻辑,benchmark结果看来提升了225倍 2024-10-20 22:06:03 +08:00
pyproject.toml 重写select逻辑,benchmark结果看来提升了225倍 2024-10-20 22:06:03 +08:00
README.md first comm 2024-10-10 00:49:47 +08:00

magicoca

A communication library for Python

支持的通信方式

  • 进程通信

稀奇古怪的语法

from magicoca.chan import Chan

ch = Chan()

# 发送消息

ch << "hello"

# 接受消息

msg = str << ch

# 通道关闭

ch.close()

# 可跨进程通信