mirror of
https://github.com/LiteyukiStudio/magicoca.git
synced 2024-11-22 08:37:37 +08:00
通信模块
magicoca | ||
tests | ||
.gitignore | ||
LICENSE | ||
pdm.lock | ||
pyproject.toml | ||
README.md |
magicoca
A communication library for Python
支持的通信方式
- 进程通信
稀奇古怪的语法
from magicoca.chan import Chan
ch = Chan()
# 发送消息
ch << "hello"
# 接受消息
msg = str << ch
# 通道关闭
ch.close()
# 可跨进程通信