全部搜索项
bookworm  ] [  trixie  ] [  sid  ]
[ 源代码: python-roundrobin  ]

软件包:python3-roundrobin(0.0.4-2)

python3-roundrobin 的相关链接

Screenshot

Debian 的资源:

下载源码包 python-roundrobin

维护小组:

外部的资源:

相似软件包:

collection of roundrobin utilities

This is rather small collection of round robin utilities.

Some examples:

  ```
   >>> import roundrobin
   >>> get_roundrobin = roundrobin.basic(["A", "B", "C"])
   >>> ''.join([get_roundrobin() for _ in range(7)])
   'ABCABCA'
   >>> # weighted round-robin balancing algorithm as seen in LVS
   >>> get_weighted = roundrobin.weighted([("A", 5), ("B", 1), ("C", 1)])
   >>> ''.join([get_weighted() for _ in range(7)])
   'AAAAABC'
   >>> # smooth weighted round-robin balancing algorithm as seen in Nginx
   >>> get_weighted_smooth = roundrobin.smooth([("A", 5), ("B", 1), ("C", 1)])
   >>> ''.join([get_weighted_smooth() for _ in range(7)])
   'AABACAA'
  ```

其他与 python3-roundrobin 有关的软件包

  • 依赖
  • 推荐
  • 建议
  • 增强

下载 python3-roundrobin

下载可用于所有硬件架构的
硬件架构 软件包大小 安装后大小 文件
all 4.2 kB26.0 kB [文件列表]