TQDM Logging utility
Project description
TQDM Logger
A utility to log tqdm progress bars into a file instead of stdout.
Description
Well we all use tqdm progress bars to track the progress of a running code. Sometimes we would like to log those progress bars in a log file instead of stdout. Using tqdm as is has a problem. It write each update in a newline. This utility is to solve this problem and be able to update progress bars inplace.
General Usage
Use the TqdmLogger class to declare a log stream handler with a log file, and pass that to tqdm's file argument. Thats it!!!
Example Usage
import time
from tqdm_logger import TqdmLogger
log_file = 'temp_log.log'
tqdm_stream = TqdmLogger(log_file)
tqdm_stream.reset()
for x in tqdm(range(100), file = tqdm_stream):
time.sleep(.5)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tqdm_logger-1.0.1.tar.gz
(15.1 kB
view hashes)
Built Distribution
Close
Hashes for tqdm_logger-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83555ca8b73463cedb889ecd6ed124c83bf1764de8162f560c5add8ff0297e52 |
|
MD5 | be2b9f6129f801692ea0035963991096 |
|
BLAKE2b-256 | d50393311a3bb79ce14faa34a894c3f0d246d1ba942268de70a2bdebcc434302 |