mirror of
https://github.com/LiteyukiStudio/magicoca.git
synced 2024-11-22 00:27:38 +08:00
通信模块
.github/workflows | ||
magicoca | ||
tests | ||
.gitignore | ||
LICENSE | ||
main.py | ||
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()
# 可跨进程通信