Skip to content
Sections
>> Trisquel >> Paketler >> ecne (12.0LTS) >> python >> python3-roundrobin
[  ecne  ] [  xolotl  ]
[ Kaynak: python-roundrobin  ]

Paket: python3-roundrobin (0.0.4-3)

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 ile İlgili Diğer Paketler

  • bağımlılıklar
  • tavsiye edilen
  • önerilen
  • dep: python3
    interactive high-level object-oriented language (default python3 version)

python3-roundrobin indir

Tüm mevcut mimariler için indir
Mimari Paket Boyutu Kurulu Boyut Dosyalar
all 4,3 kB26 kB [dosya listesi]