light-client
A Python library for frog-based progress bars and frog wisdom.
Installation
pip install light-client
Progress bar
FrogBar is a drop-in replacement for tqdm. Instead of a solid block bar, a frog 🐸 hops across lily pads 🍃.
Wrap an iterable:
from light_client import FrogBar
import time
for item in FrogBar(range(100), desc="Processing"):
time.sleep(0.05)
Processing: [🍃🍃🍃🍃🍃🍃🍃🐸🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃] 35.0% 1.8s [35/100 it] *ribbit*
Context manager with manual updates:
with FrogBar(total=50, desc="Catching flies", unit="fly") as bar:
for fly in flies:
catch(fly)
bar.update(1)
Parameters
| Parameter | Default | Description |
|---|---|---|
iterable |
None |
Iterable to wrap |
total |
inferred | Total number of steps |
desc |
"Hopping" |
Label shown before the bar |
bar_width |
20 |
Number of lily pad cells |
unit |
"it" |
Unit label for the count |
leave |
True |
Keep the bar on screen when done |
file |
stderr |
Output stream |
Quotes
Timeless wisdom from history's greatest frog thinkers.
from light_client import get_random_quote, print_quote
quote, author = get_random_quote()
print(f'"{quote}" — {author}')
# "Leap before you look." — Frog Thoreau
print_quote() # prints a random quote
print_quote(3) # prints quote at index 3
ASCII art
Eight frogs included: classic, tiny, zen, lily, detective, kawaii, sage, startup.
from light_client import get_frog, get_random_frog, list_frogs, print_frog
print_frog("zen") # print a named frog
print_frog() # print a random frog
name, art = get_random_frog()
frogs = list_frogs() # ['classic', 'tiny', 'zen', ...]
___
.-' `'.
/ \
| O O |
| ^^ |
| \____/ |
\ /
'-.___.-'
| |
frog is one
Metadata
Release files for light-client 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| light_client-2.0.0.tar.gz | 4.7 kB | Without provenance | Details for light_client-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| light_client-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for light_client-2.0.0-py3-none-any.whl |
Total release size: 10.6 kB
Release files / light_client-2.0.0.tar.gz
| Download URL | light_client-2.0.0.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec227815726162c4f2274b14432ad294ac3450124d091fb5151570a3a31c3e12
|
|
BLAKE2b-256 checksum How to use checksums |
1bba1e59d00ff09747ec8ec14d6007643261355d3c9c177f64dda19f8521fad2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.11
|
Release files / light_client-2.0.0-py3-none-any.whl
| Download URL | light_client-2.0.0-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
45d7af687aff4b3e61ca0ffc4c6fd9f03a719df677e424ad000c17b701d35937
|
|
BLAKE2b-256 checksum How to use checksums |
ca287dd4ea3000d99af1e08e2b2af9fcac4000b4a5d9d51fc7c97f7d933f35f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.11
|
Security for light-client 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.