все параметры
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

  • зависимости
  • рекомендации
  • предложения
  • enhances

Загрузка python3-roundrobin

Загрузить для всех доступных архитектур
Архитектура Размер пакета В установленном виде Файлы
all 4,3 Кб26,0 Кб [список файлов]