通信模块
Go to file
2024-10-10 01:03:40 +08:00
.github/workflows first comm 2024-10-10 01:03:40 +08:00
magicoca first comm 2024-10-10 00:49:47 +08:00
tests first comm 2024-10-10 00:49:47 +08:00
.gitignore first comm 2024-10-10 00:49:47 +08:00
LICENSE Initial commit 2024-10-08 22:06:22 +08:00
pdm.lock first comm 2024-10-10 00:49:47 +08:00
pyproject.toml first comm 2024-10-10 00:49:47 +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()

# 可跨进程通信