Skip to main content

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}")

Release files for tqdm-logging-wrapper 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tqdm-logging-wrapper 1.0.1
File Size Uploaded
tqdm-logging-wrapper-1.0.1.tar.gz 5.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tqdm-logging-wrapper 1.0.1
File Interpreter ABI Platform
tqdm_logging_wrapper-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.0 kB

Release files / tqdm-logging-wrapper-1.0.1.tar.gz

Download URL tqdm-logging-wrapper-1.0.1.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
072d00d3fc915af1191e65af8840039cefa623e17c119dba485206dfa41dd440
BLAKE2b-256 checksum
How to use checksums
06a1debf3b48ee1aacc19f160592fca3cbd4b4ca5efc86f9f21e0e1d4be555d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 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.1-py3-none-any.whl

Download URL tqdm_logging_wrapper-1.0.1-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aa77a881ce49d56a6f3530bd64d19204b32163430983fe33aa745b18263f6222
BLAKE2b-256 checksum
How to use checksums
0514c34693db4831832e1a4ac1d8ff41971b0894ce70d9ba5baa035500ff782b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page