Skip to main content

tqdme

Environment Variables

  • TQDME_URL - URL to the TQDME server. Default: http://tqdm.me
  • TQDME_DISPLAY - Show TQDM progress bars in the terminal. Default: True
  • TQDME_VERBOSE - Print debug messages. Default: False

Usage

tqdm Replacement

Use tqdme as a drop-in replacement for tqdm in your Python scripts.

import time
# from tqdm import tqdm
from tqdme import tqdme

num_iterations = 100 # Define the number of iterations

for i in tqdme(range(num_iterations)):
    time.sleep(0.1)  # Sleep for 0.1 seconds

Relay Server (Flask + SocketIO)

Note: The tqdme server assumes you have provided an index.html file in the base directory.

from tqdme.server import Server
from flask import send_from_directory
from pathlib import Path

script_directory = Path(__file__).parent.resolve()

server = Server(script_directory, 'localhost', 3768)

app = server.app

@server.app.route('/src/<path:path>')
def get_static_assets(path):
    return send_from_directory(server.base / 'src', path)

server.run()

Distrubution

python -m pip install --upgrade build
python -m pip install --upgrade twine
python -m build
python -m twine upload dist/*

Metadata

Release files for tqdme 0.0.3

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

Source distribution (sdist)

Source distribution for tqdme 0.0.3
File Size Uploaded
tqdme-0.0.3.tar.gz 8.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tqdme 0.0.3
File Interpreter ABI Platform
tqdme-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 14.6 kB

Release files / tqdme-0.0.3.tar.gz

Download URL tqdme-0.0.3.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
360a626c768a862fe383da1becc49457258251d77edfa1bf78d5022d305331ef
BLAKE2b-256 checksum
How to use checksums
7c3d4479ddd8e485b56750be9a69461e73343442ba1f7b381c9f9f1e03823aa8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.8

Release files / tqdme-0.0.3-py3-none-any.whl

Download URL tqdme-0.0.3-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
751c7c03958063b74d32ff773f64169e8af984c0fb6b5047bb4501692559b22e
BLAKE2b-256 checksum
How to use checksums
7fad47b1dea46af1571fa3c276599af1b5c68a493725bead0fa54678464637a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.8

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

0.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