🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

tqdme

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tqdme

Forward progress from tqdm to a public website

0.0.3
PyPI
Maintainers
1

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/*

Keywords

bar

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts