Print a message with an indefinite loader
Project description
Print Loader
Table of Contents
Installation
pip install print-loader
Introduction
Sometimes you want to put an indefinite loader for a set of statements to see the progress in terminal. This package tries to solve that exact problem.
Examples
from print_loader import printl
import time
with printl("Sleeping"):
time.sleep(3)
with printl("Sleeping", update_every=0.1):
time.sleep(3)
with printl("Sleeping", update_every=0.1, loading_chars=["-", "|"]):
time.sleep(3)
with open("large_file.txt", "w") as fp, printl("Writing to file"):
for i in range(50000):
fp.write(str(i) * 30000 + "\n")
License
print-loader
is distributed under the terms of the
MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
print_loader-0.0.1a4.tar.gz
(4.5 kB
view details)
Built Distribution
File details
Details for the file print_loader-0.0.1a4.tar.gz
.
File metadata
- Download URL: print_loader-0.0.1a4.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.23.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d78593e2311b66a7d5d54f17c773f4a7aa28a62cbab74879a07d2809783cb17 |
|
MD5 | 3e3aafe37163bf145a1223b1d8757cd9 |
|
BLAKE2b-256 | b196f3e381ebf2ecb382808e78a0ff4652a5ea38688a879947c6bb552a70c25b |
File details
Details for the file print_loader-0.0.1a4-py3-none-any.whl
.
File metadata
- Download URL: print_loader-0.0.1a4-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.23.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05f2ec9e92bf2e4862856c4c19952d49c493d09347e9075597dc96d1a7bf5fe9 |
|
MD5 | 4514c43e262718aac01045bd5bbf0673 |
|
BLAKE2b-256 | 141bba7f84e33cee38199f55582e9d0fd73e17440b656657fba0bac795362120 |