Skip to main content

No project description provided

Project description

patch_bay

特性

  • 中央节点按配置在进程间转发字节流;拓扑由配置给出。
  • PatchBay:中央交换;按配置把某 Jack 发出的字节转发到其他 Jack(Jack 与 Jack 不直连)。
  • Jack:业务侧接入点,只与 PatchBay 这条总线收发;不与其他 Jack 建立关系。
  • 每条边可绑定表达式;按当前数据包求值决定是否允许经过。
  • 支持任意数据结构;传输为字节,编码与解析由业务自行决定。

配置

jacks

数组;元素字段:

字段 说明
name 名称(wires 里用名字引用,便于配置复用)
address 该机 Jack 握手时上报的地址 host:port,须在列表内唯一

业务侧 Jack 只认 地址(与这里对应条目的 address 一致);不必在代码里写 name

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.4.tar.gz (19.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.4-py3-none-any.whl (26.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: python_library_patch_bay-0.1.4.tar.gz
  • Upload date:
  • Size: 19.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.4.tar.gz
Algorithm Hash digest
SHA256 863fdc8afc68a929e6e853f5a50c2defe4f5014636bd959bd21e88fcdbf78f66
MD5 c45ac1ee676af0a7c6a31e7844d24080
BLAKE2b-256 529f1378cf2aa81404d12c7a75a3b92bd092ef414e1ff6d7e9bb647b9ad5287f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_library_patch_bay-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 efe291bc843a9382424f813891495a39fd3445f293c35a56ce55bdbf209acd0b
MD5 b9a599c5143ec7bd5b709da26d3bf728
BLAKE2b-256 6bbdfd180e7a2ae7cb04b40c92b8065bd04ec92646f5e05d9dc1c12b3be133e4

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