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 details)
Built Distribution
File details
Details for the file tqdm_logger-1.0.1.tar.gz
.
File metadata
- Download URL: tqdm_logger-1.0.1.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.6.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8cb19b5c4b64aa8c4d281eec7905bc50ee63bd6d0592af081e692ad2bf9ff76 |
|
MD5 | 63f4e64c41bab342d1cab615e21aca23 |
|
BLAKE2b-256 | 26ca5b642bb2d3dffa3bf3e54c69410c6aa6d504a5d408ae0927e87796f565ce |
File details
Details for the file tqdm_logger-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: tqdm_logger-1.0.1-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.6.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83555ca8b73463cedb889ecd6ed124c83bf1764de8162f560c5add8ff0297e52 |
|
MD5 | be2b9f6129f801692ea0035963991096 |
|
BLAKE2b-256 | d50393311a3bb79ce14faa34a894c3f0d246d1ba942268de70a2bdebcc434302 |