toutes les options
bookworm  ] [  trixie  ] [  sid  ]
[ Paquet source : python-roundrobin  ]

Paquet : python3-roundrobin (0.0.4-2)

Liens pour python3-roundrobin

Screenshot

Ressources Debian :

Télécharger le paquet source python-roundrobin :

Responsables :

Ressources externes :

Paquets similaires :

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

Autres paquets associés à python3-roundrobin

  • dépendances
  • recommandations
  • suggestions
  • enhances

Télécharger python3-roundrobin

Télécharger pour toutes les architectures proposées
Architecture Taille du paquet Espace occupé une fois installé Fichiers
all 4,2 ko26,0 ko [liste des fichiers]