爱意满满的作品展示区。
leviathan0992

一个用于实时更新终端输出的 Python 库

  •  
  •   leviathan0992 · Apr 16, 2018 · 3968 views
    This topic created in 3133 days ago, the information mentioned may be changed or developed.

    写了一个 Python 库用来实时更新终端输出:

    开源在 Github: pygrape

    使用这个库模拟 pip 的下载:

    gif

    15 replies  •  2018-04-17 13:40:10 +08:00
    ipwx
    ipwx
    Apr 16, 2018
    1
    比起这个,你有什么优势?

    http://click.pocoo.org/5/utils/#showing-progress-bars
    ipwx
    ipwx
    Apr 16, 2018
    2
    对,还有这个:

    https://github.com/tqdm/tqdm
    leviathan0992
    leviathan0992
    OP
    Apr 16, 2018
    3
    @ipwx 我这个不限于显示一个进程的 bars
    leviathan0992
    leviathan0992
    OP
    Apr 16, 2018
    5
    @ipwx 不想解释了
    locktionc
    locktionc
    Apr 16, 2018
    6
    你之前是写 JavaScript 的吗?你的代码有一股 JS 的味道。
    leviathan0992
    leviathan0992
    OP
    Apr 16, 2018
    7
    @locktionc 之前写易语言的
    BOYPT
    BOYPT
    Apr 16, 2018
    8
    不同语言的用户群对待轮子的态度区别蛮大的,你做个 node/go 轮子,一般都会“已 star ”、“点赞”,python 的轮子,就会……这样。。。
    KKKKKK
    KKKKKK
    Apr 16, 2018 via iPhone
    9
    第一次见人在 ci 里面不跑 testcase 的
    qiyue201707
    qiyue201707
    Apr 16, 2018
    10
    易语言什么梗
    qiyue201707
    qiyue201707
    Apr 16, 2018
    11
    @KKKKKK CI 又不是专门为了跑测试的
    locktionc
    locktionc
    Apr 16, 2018
    12
    @leviathan0992 #7 难怪你的代码有一股奇怪的味道。
    xuyl
    xuyl
    Apr 16, 2018
    13
    @KKKKKK 跑了代码风格检查。。。
    leviathan0992
    leviathan0992
    OP
    Apr 17, 2018
    14
    @locktionc 易语言和 js 有什么关系,脑回路清奇
    ty89
    ty89
    Apr 17, 2018
    15
    一直都在用 tqdm,感觉是在重复造轮子
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2014 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 15:07 · PVG 23:07 · LAX 07:07 · JFK 10:07
    ♥ Do have faith in what you're doing.