通信模块
Go to file
2024-10-13 01:12:19 +08:00
.github/workflows first comm 2024-10-12 23:34:36 +08:00
magicoca 添加通道连接特性,可用+连接两个通道,连接后将交换双方的接收端 2024-10-13 01:12:19 +08:00
tests 添加通道连接特性,可用+连接两个通道,连接后将交换双方的接收端 2024-10-13 01:09:25 +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 添加通道连接特性,可用+连接两个通道,连接后将交换双方的接收端 2024-10-13 01:09:25 +08:00
pyproject.toml 添加通道连接特性,可用+连接两个通道,连接后将交换双方的接收端 2024-10-13 01:09:25 +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()

# 可跨进程通信