| .\" Automatically generated by Pandoc 3.8.3 |
| .\" |
| .TH "TQDM" "1" "2015\-2026" "tqdm User Manuals" |
| .SH NAME |
| tqdm \- fast, extensible progress bar for Python and CLI |
| .SH SYNOPSIS |
| tqdm |
| .SH DESCRIPTION |
| See \c |
| .UR https://github.com/tqdm/tqdm |
| .UE \c |
| \&. |
| Can be used as a pipe: |
| .IP |
| .EX |
| $ \f# count lines of code\f |
| $ cat *.py \f|\f tqdm \f|\f wc \-l |
| 327it |
| 327 |
|
|
| $ \f# find all files\f |
| $ find . \-name \(dq*.py\(dq \f|\f tqdm \f|\f wc \-l |
| 432it |
| 432 |
|
|
| \f# ... and more info\f |
| $ find . \-name \(aq*.py\(aq \-exec wc \-l \(rs{} \(rs; \(rs |
| \f|\f tqdm \-\-total 432 \-\-unit files \-\-desc counting \(rs |
| \f|\f awk \(aq{ sum += $1 }; END { print sum }\(aq |
| counting: 100%\f|\f█████████\f|\f 432/432 |
| 131998 |
| .EE |
| .SH OPTIONS |
| .TP |
| \-h, \-\-help |
| Print this help and exit. |
| .TP |
| \-v, \-\-version |
| Print version and exit. |
| .TP |
| \-\-desc=\fdesc\f |
| str, optional. |
| Prefix for the progressbar. |
| .TP |
| \-\-total=\ftotal\f |
| int or float, optional. |
| The number of expected iterations. |
| If unspecified, len(iterable) is used if possible. |
| If float(\(lqinf\(rq) or as a last resort, only basic progress |
| statistics are displayed (no ETA, no progressbar). |
| If \fgui\f is True and this parameter needs subsequent updating, |
| specify an initial arbitrary large positive number, e.g.\ 9e9. |
| .TP |
| \-\-leave |
| bool, optional. |
| If , keeps all traces of the progressbar upon termination |
| of iteration. |
| If \fNone\f, will leave only if \fposition\f is |
| \f0\f. |
| .TP |
| \-\-ncols=\fncols\f |
| int, optional. |
| The width of the entire output message. |
| If specified, dynamically resizes the progressbar to stay within this |
| bound. |
| If unspecified, attempts to use environment width. |
| The fallback is a meter width of 10 and no limit for the counter and |
| statistics. |
| If 0, will not print any meter (only stats). |
| .TP |
| \-\-mininterval=\fmininterval\f |
| float, optional. |
| Minimum progress display update interval seconds. |
| .TP |
| \-\-maxinterval=\fmaxinterval\f |
| float, optional. |
| Maximum progress display update interval seconds. |
| Automatically adjusts \fminiters\f to correspond to |
| \fmininterval\f after long display update lag. |
| Only works if \fdynamic_miniters\f or monitor thread is enabled. |
| .TP |
| \-\-miniters=\fminiters\f |
| int or float, optional. |
| Minimum progress display update interval, in iterations. |
| If 0 and \fdynamic_miniters\f, will automatically adjust to equal |
| \fmininterval\f (more CPU efficient, good for tight loops). |
| If > 0, will skip display of specified number of iterations. |
| Tweak this and \fmininterval\f to get very efficient loops. |
| If your progress is erratic with both fast and slow iterations (network, |
| skipping items, etc) you should set miniters=1. |
| .TP |
| \-\-ascii=\fascii\f |
| bool or str, optional. |
| If unspecified or False, use unicode (smooth blocks) to fill the meter. |
| The fallback is to use ASCII characters \(rq 123456789#\(lq. |
| .TP |
| \-\-disable |
| bool, optional. |
| Whether to disable the entire progressbar wrapper . |
| If set to None, disable on non\-TTY. |
| .TP |
| \-\-unit=\funit\f |
| str, optional. |
| String that will be used to define the unit of each iteration |
| . |
| .TP |
| \-\-unit\-scale=\funit_scale\f |
| bool or int or float, optional. |
| If 1 or True, the number of iterations will be reduced/scaled |
| automatically and a metric prefix following the International System of |
| Units standard will be added (kilo, mega, etc.) |
| . |
| If any other non\-zero number, will scale \ftotal\f and |
| \fn\f. |
| .TP |
| \-\-dynamic\-ncols |
| bool, optional. |
| If set, constantly alters \fncols\f and \fnrows\f to the |
| environment (allowing for window resizes) . |
| .TP |
| \-\-smoothing=\fsmoothing\f |
| float, optional. |
| Exponential moving average smoothing factor for speed estimates (ignored |
| in GUI mode). |
| Ranges from 0 (average speed) to 1 (current/instantaneous speed) |
| . |
| .TP |
| \-\-bar\-format=\fbar_format\f |
| str, optional. |
| Specify a custom bar string formatting. |
| May impact performance. |
| , where l_bar=`{desc}: |
| {percentage:3.0f}%|' and r_bar=`| {n_fmt}/{total_fmt} |
| ' Possible vars: |
| l_bar, bar, r_bar, n, n_fmt, total, total_fmt, percentage, elapsed, |
| elapsed_s, ncols, nrows, desc, unit, rate, rate_fmt, rate_noinv, |
| rate_noinv_fmt, rate_inv, rate_inv_fmt, postfix, unit_divisor, |
| remaining, remaining_s, eta. |
| Note that a trailing \(lq:\(rq is automatically removed after {desc} if |
| the latter is empty. |
| .TP |
| \-\-initial=\finitial\f |
| int or float, optional. |
| The initial counter value. |
| Useful when restarting a progress bar . |
| If using float, consider specifying \f{n:.3f}\f or similar in |
| \fbar_format\f, or specifying \funit_scale\f. |
| .TP |
| \-\-position=\fposition\f |
| int, optional. |
| Specify the line offset to print this bar (starting from 0) Automatic if |
| unspecified. |
| Useful to manage multiple bars at once (eg, from threads). |
| .TP |
| \-\-postfix=\fpostfix\f |
| dict or *, optional. |
| Specify additional stats to display at the end of the bar. |
| Calls \fset_postfix(**postfix)\f if possible (dict). |
| .TP |
| \-\-unit\-divisor=\funit_divisor\f |
| float, optional. |
| , ignored unless \funit_scale\f is True. |
| .TP |
| \-\-write\-bytes |
| bool, optional. |
| Whether to write bytes. |
| If (default: False) will write unicode. |
| .TP |
| \-\-lock\-args=\flock_args\f |
| tuple, optional. |
| Passed to \frefresh\f for intermediate output (initialisation, |
| iterating, and updating). |
| .TP |
| \-\-nrows=\fnrows\f |
| int, optional. |
| The screen height. |
| If specified, hides nested bars outside this bound. |
| If unspecified, attempts to use environment height. |
| The fallback is 20. |
| .TP |
| \-\-colour=\fcolour\f |
| str, optional. |
| Bar colour (e.g.\ `green', `#00ff00'). |
| .TP |
| \-\-delay=\fdelay\f |
| float, optional. |
| Don\(cqt display until seconds have elapsed. |
| .TP |
| \-\-delim=\fdelim\f |
| chr, optional. |
| Delimiting character . |
| Use `\(rs0' for null. |
| N.B.: on Windows systems, Python converts `\(rsn' to `\(rsr\(rsn'. |
| .TP |
| \-\-buf\-size=\fbuf_size\f |
| int, optional. |
| String buffer size in bytes used when \fdelim\f is |
| specified. |
| .TP |
| \-\-bytes |
| bool, optional. |
| If true, will count bytes, ignore \fdelim\f, and default |
| \funit_scale\f to True, \funit_divisor\f to 1024, and |
| \funit\f to `B'. |
| .TP |
| \-\-tee |
| bool, optional. |
| If true, passes \fstdin\f to both \fstderr\f and |
| \fstdout\f. |
| .TP |
| \-\-update |
| bool, optional. |
| If true, will treat input as newly elapsed iterations, i.e.\ numbers to |
| pass to \fupdate()\f. |
| Note that this is slow (\(ti2e5 it/s) since every input must be decoded |
| as a number. |
| .TP |
| \-\-update\-to |
| bool, optional. |
| If true, will treat input as total elapsed iterations, i.e.\ numbers to |
| assign to \fself.n\f. |
| Note that this is slow (\(ti2e5 it/s) since every input must be decoded |
| as a number. |
| .TP |
| \-\-null |
| bool, optional. |
| If true, will discard input (no stdout). |
| .TP |
| \-\-manpath=\fmanpath\f |
| str, optional. |
| Directory in which to install tqdm man pages. |
| .TP |
| \-\-comppath=\fcomppath\f |
| str, optional. |
| Directory in which to place tqdm completion. |
| .TP |
| \-\-log=\flog\f |
| str, optional. |
| CRITICAL|FATAL|ERROR|WARN(ING)||DEBUG|NOTSET. |
| .SH AUTHORS |
| tqdm developers \c |
| .UR https://github.com/tqdm |
| .UE \c. |
|
|