コード例 #1
0
ファイル: api.py プロジェクト: seamusabshere/python
        def draw_progress_bar(param, current, total):
            """Draws a text based progress report.

            """
            pct = 100 - ((total - current) * 100) / (total)
            console_log("Uploaded %s out of %s bytes [%s%%]" % (
                localize(current), localize(total), pct))
コード例 #2
0
ファイル: sourcehandler.py プロジェクト: jfpaschke/python-3
        def draw_progress_bar(param, current, total):
            """Draws a text based progress report.

            """
            pct = 100 - ((total - current) * 100) / (total)
            console_log("Uploaded %s out of %s bytes [%s%%]" % (
                localize(current), localize(total), pct), reset=True)
コード例 #3
0
ファイル: prediction.py プロジェクト: seamusabshere/bigmler
    def draw_progress_bar(current, total):
        """Draws a text based progress report.

        """
        pct = 100 - ((total - current) * 100) / (total)
        console_log("Predicted on %s out of %s models [%s%%]" % (
            localize(current), localize(total), pct))
コード例 #4
0
ファイル: prediction.py プロジェクト: seamusabshere/bigmler
    def draw_progress_bar(current, total):
        """Draws a text based progress report.

        """
        pct = 100 - ((total - current) * 100) / (total)
        console_log("Predicted on %s out of %s models [%s%%]" %
                    (localize(current), localize(total), pct))
コード例 #5
0
        def draw_progress_bar(param, current, total):
            """Draws a text based progress report.

            """
            pct = 100 - ((total - current) * 100) / (total)
            clear_progress_bar(out=out)
            reset_progress_bar(out=out)
            out.write("Uploaded %s out of %s bytes [%s%%]" % (
                localize(current), localize(total), pct))
            reset_progress_bar(out=out)