alle opties
bookworm  ] [  trixie  ] [  sid  ]
[ Bron: python-roundrobin  ]

Pakket: python3-roundrobin (0.0.4-3)

Verwijzigingen voor python3-roundrobin

Screenshot

Debian bronnen:

Het bronpakket python-roundrobin downloaden:

Beheerder:

Externe bronnen:

Vergelijkbare pakketten:

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

Andere aan python3-roundrobin gerelateerde pakketten

  • depends
  • recommends
  • suggests
  • enhances

python3-roundrobin downloaden

Pakket downloaden voor alle beschikbare platforms
Platform Pakketgrootte Geïnstalleerde grootte Bestanden
all 4,3 kB26,0 kB [overzicht]