[ Fonte: python-roundrobin ]
Pacote: python3-roundrobin (0.0.4-3)
Links para python3-roundrobin
Recursos de Debian:
- Relatórios de bug
- Informação de desenvolvedor(a)
- Debian Changelog
- Arquivo de copyright
- Rastreador de patch Debian
Baixe o pacote-fonte python-roundrobin:
- [python-roundrobin_0.0.4-3.dsc]
- [python-roundrobin_0.0.4.orig.tar.gz]
- [python-roundrobin_0.0.4-3.debian.tar.xz]
Mantenedor(a):
Fontes externas:
- Pagina principal [github.com]
Pacotes similares:
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'
```
Outros pacotes relacionados a python3-roundrobin
|
|
|
|
-
- dep: python3
- linguagem orientada a objetos de alto nível e interativa (versão python3 padrão)
Download de python3-roundrobin
| Arquitetura | Tamanho do pacote | Tamanho instalado | Arquivos |
|---|---|---|---|
| all | 4.3 kB | 26.0 kB | [lista de arquivos] |
