tqdme
Environment Variables
TQDME_URL- URL to the TQDME server. Default:http://tqdm.meTQDME_DISPLAY- Show TQDM progress bars in the terminal. Default:TrueTQDME_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
tqdmeserver assumes you have provided anindex.htmlfile in thebasedirectory.
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)
| File | Size | Uploaded | |
|---|---|---|---|
| tqdme-0.0.3.tar.gz | 8.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|