全部搜尋項
bookworm  ] [  trixie  ] [  sid  ]
[ 原始碼: python-roundrobin  ]

套件:python3-roundrobin(0.0.4-3)

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。3 kB26。0 kB [檔案列表]