python-hostlist

Yazılım ekran görüntüsü:
python-hostlist
Yazılım detaylar:
Versiyon: 1.14
Qayıt: 20 Feb 15
Geliştirici: Kent Engstrom
Lisans: Ücretsiz
Popülerlik: 16

Rating: 4.0/5 (Total Votes: 1)

python-hostlist genişletmek ve hostlist ifadelerini toplamak için nasıl bilir bir Python modülü.
Örnek:
& Nbsp; % Piton
& Nbsp; Python 2.5.1 (R251: 54.863, 10 Temmuz 2008, 17:24:48)
& Nbsp; [GCC 4.1.2 20.070.925 (Red Hat 4.1.2-33)] linux2 üzerinde
& Nbsp; Tip "yardım", "telif hakkı", "kredi" veya daha fazla bilgi için "ruhsat".
& Nbsp; >>> Import hostlist
& Nbsp; >>> Ana = hostlist.expand_hostlist ("n [1-10,17]")
& Nbsp; >>> Ana
& Nbsp; ['N1', 'n2' 'n3', 'n4', 'N5' 'n6', 'n7', 'n8'in', 'n9'un', 'N10', 'N17']
& Nbsp; >>> Hostlist.collect_hostlist (ana)
& Nbsp; N- [1-10,17] '
& Nbsp; >>> Hostlist.collect_hostlist (["x1y1", "X2Y2", "x1y2", "X2Y1"])
& Nbsp; X [1-2] y [1-2] '
Kötü hostlists veya konak hostlist.BadHostlist istisna gündeme getirilen neden olacaktır.
'AnaMakineListesi'nde' komutu / genişletmek hostlists toplamak ve onlara ayar işlemleri gerçekleştirmek için sağlanmıştır. Örnek:
& Nbsp; % Hostlist n [1-10] n [5-20]
& Nbsp; n [1-20]
& Nbsp; % Hostlist --difference n [1-10] n [5-20]
& Nbsp; n, [1-4]
& Nbsp; % Hostlist --expand --intersection n [1-10] n [5-20]
& Nbsp; n5'in
& Nbsp; n6
& Nbsp; n7
& Nbsp; n8
& Nbsp; n9'un
& Nbsp; n10
çalıştırarak doğrudan yükleyin
& Nbsp; Python setup.py inşa & nbsp; & nbsp; (Kendin gibi)
& Nbsp; Python setup.py install (root olarak)
ya da sadece uygun yerlere hostlist.py, hostlist ve hostlist.1 dosyaları kopyalamak

Bu sürümdeki yeni nedir:.

    < li> Destek Python 3.
  • Mümkünse İthalat functools gelen azaltır.
  • Kullanım Python 2/3 yükleme hüner gelen ... / Demo / distutils modülünü / test2to3

Gereksinimler :

  • Python

Benzer yazılım

Pyro
Pyro

14 Apr 15

clusterui
clusterui

14 Apr 15

Spread
Spread

20 Feb 15

ThinLinc
ThinLinc

20 Feb 15

Yorumlar python-hostlist

Yorum Bulunamadı
Yorum eklemek
Görüntülerde açın!