python3-roundrobin

collection of roundrobin utilities

Description

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'
  ```

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

https://github.com/linnik/roundrobin


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install python3-roundrobin