TQDM logging wrapper
Wrap standard-library logging to support TQDM progress-bars.
Installation
pip install tqdm-logging-wrapper
Usage
import logging
import tqdm
import tqdm_logging_wrapper
logger = logging.getLogger(__name__)
logging.basicConfig(level=logging.INFO)
items = [1, 2, 3]
items_iter = tqdm.tqdm(items)
logger.info(f"Items: {items}")
with tqdm_logging_wrapper.wrap_logging_for_tqdm(items_iter), items_iter:
for item in items_iter:
logger.info(f"Item: {item}")
logger.info(f"Items: {items}")
Metadata
Release files for tqdm-logging-wrapper 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tqdm-logging-wrapper-1.0.0.tar.gz | 3.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tqdm_logging_wrapper-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.0 kB
Release files / tqdm-logging-wrapper-1.0.0.tar.gz
| Download URL | tqdm-logging-wrapper-1.0.0.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8298ec68e5ec5bd89ca1ed0aad7f3268e75046fa45fff39ec21001004b9f8be7
|
|
BLAKE2b-256 checksum How to use checksums |
92ac31a9fe11af9dacae578fd2ccdae68c0f805ff83120b80d2b62eecfb1f1ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
|
Release files / tqdm_logging_wrapper-1.0.0-py3-none-any.whl
| Download URL | tqdm_logging_wrapper-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f4cf78565f0581b89350758226158ad89fa3a3c88a09908604ecab0d902de10d
|
|
BLAKE2b-256 checksum How to use checksums |
418b55315c1a8ba0edbee66aa75e1cd3f78050adeadb507d5d0213d2d4f4cd22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
|