Skip to main content

No project description provided

Project description

patch_bay

特性

  • 中央节点按配置在进程间转发字节流;拓扑由配置给出。
  • PatchBay:单进程监听,按边将某 Jack 发出的数据转发到其他 Jack。
  • Jack:业务侧长连接,发送与接收数据包。
  • 每条边可绑定表达式;按当前数据包求值决定是否允许经过。
  • 支持任意数据结构;传输为字节,编码与解析由业务自行决定。

配置

jacks

数组;元素字段:

字段 说明
name 名称
address 通讯地址 host:port

wires

数组;元素常用键名 fromto。字段:

字段 说明
from 源端 Jack 的 name
to 目标 Jack 的 name
rule rules 中已定义的规则 id

rules

说明
规则 id,供 wiresrule 引用
表达式字符串;求值时带入当前数据包相关变量(如原始字节、可解析出的 JSON 等)
转发条件 仅表达式成立时沿该边发出;不成立或求值失败则不发出

listen

默认 说明
8765 监听端口;绑定地址固定为 0.0.0.0。填 0 时由操作系统分配空闲端口(多用于测试)。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_library_patch_bay-0.1.0.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_library_patch_bay-0.1.0-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file python_library_patch_bay-0.1.0.tar.gz.

File metadata

  • Download URL: python_library_patch_bay-0.1.0.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.6

File hashes

Hashes for python_library_patch_bay-0.1.0.tar.gz
Algorithm Hash digest
SHA256 49e3e7e0eb627b59c7014d107e040f2d1dc5144a035233399ef8346c7db0ce04
MD5 f063cab810a8e61b70b61ea76fb72e24
BLAKE2b-256 c0e4c78263340f2f384c852baa0950f4c2be7fff8d9d46948efec7b63d480a42

See more details on using hashes here.

File details

Details for the file python_library_patch_bay-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for python_library_patch_bay-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7bbb9d4e663b25bd324e8ad98d497b7877d8dc0df650fe0dce1f50e30912b0a9
MD5 78bb22978cb5f95fcf18f28d46d383e4
BLAKE2b-256 bed0098496cc2c59466acbaa8434d87c5c54b6da589b1a78c646954b2922977d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page