DelayViewer
DelayViewer is a Python assistant for showing progress info visually within the shell running a python command with long exposure. This library provides a simple spinner graphic and a stopwatch. The predominant use case is to display progress for sections within a decorated function.
Installation
Use the package manager pip to install delayviewer.
pip install delayviewer
Spinner Usage
from delayviewer.spinner import handle_spinner
import time
@handle_spinner
def test_spinner(spinner=None):
spinner.start('delaying 5 sec')
time.sleep(5)
spinner.stop()
test_spinner()
Stopwatch Usage
from delayviewer.stopwatch import handle_stopwatch
import time
@handle_stopwatch
def test_stopwatch(stopwatch=None):
stopwatch.start('clocking 5 sec')
time.sleep(5)
stopwatch.stop('Finished timing!')
test_stopwatch()
CLI Utility
The following CLI is included with this package for testing the various progress and timing indicators.
# dlyview -h
usage: dlyview [-h] {spinner,stopwatch,time.show,sleep.ticks} ...
-.-.-. Delay viewer elements for python scripts
positional arguments:
{spinner,stopwatch,time.show,sleep.ticks}
spinner test Spinner graphic for viewing thru execution delays
stopwatch test StopWatch for viewing thru execution delays
time.show test time show wrapper
sleep.ticks test sleeping ticks progress viewer
options:
-h, --help show this help message and exit
.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
License
Acknowledgements
Thanks to several posts on StackOverflow regarding basic Spinner class implementation. Took that concept and generated the Stopwatch class to mimic behavior.
Metadata
Release files for delayviewer 0.1.1
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 |
|---|---|---|---|---|
| delayviewer-0.1.1.tar.gz | 6.9 kB | Without provenance | Details for delayviewer-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| delayviewer-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for delayviewer-0.1.1-py3-none-any.whl |
Total release size: 14.6 kB
Release files / delayviewer-0.1.1.tar.gz
| Download URL | delayviewer-0.1.1.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
686327cca97077d79d8db2e678995d854e3c1e8d9ae23eeab2de9d36e9d01634
|
|
BLAKE2b-256 checksum How to use checksums |
d50ff9d445720c3b5479832930c8ee5875079cd5f83da3193aa619b430c08913
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Release files / delayviewer-0.1.1-py3-none-any.whl
| Download URL | delayviewer-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b49d3612a2f794dafc7d41a0c5ee20710759f0d331a39f14cf18f44bddeb3dd6
|
|
BLAKE2b-256 checksum How to use checksums |
2a7dc2a1e35e2ce85ada7470dfe35e0ff4489c2f79e57fe52c4d892474f1140e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Security for delayviewer 0.1.1
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.