loadspinner
A CLI based loading spinner which is used to tell the user work is being done in the background.
Loadspinner contains more than 20 spinners to choose from, and you can even create your own spinner.
Prerequisites
- Terminal that accepts ANSI codes
Usage
Creating a spinner:
import loadspinner
spinner = loadspinner.Spinner(spinner_type="classic")
Starting the spinner:
spinner.start() # starts the spinner
spinner.stop() # stops the spinner
[!HINT] You can also assign a timer to spinners, e.g.
spinner.start(5)will stop the spinner after 5 seconds.
Usage with context managers:
import loadspinner
with loadspinner.Spinner("newton"):
input("press enter to stop ")
Usage with decorators:
from loadspinner import functionSpinner
@functionSpinner("building")
def doWork():
# code...
doWork()
Spinners can be made or customized:
import loadspinner
loadspinner.makeSpinner(
name="myCustomSpinner",
frames=["a", "b", "c", "1", "2", "3"],
interval=200,
)
The above code will create its own spinner which can be accessed as its own name, e.g. loadspinner.Spinner("myCustomSpinner")
Metadata
Release files for loadspinner 0.6
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 | |
|---|---|---|---|---|
| loadspinner-0.6.tar.gz | 5.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| loadspinner-0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.6 kB
Release files / loadspinner-0.6.tar.gz
| Download URL | loadspinner-0.6.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
add72f1fd5016900bc69acbe0079c9ff328953a1f6080a567afd01ac679ac6f7
|
|
BLAKE2b-256 checksum How to use checksums |
d77a22c0a36a9bf01d38a39c57b58f39978e96fab29b9a2dabecb51c97b3beec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / loadspinner-0.6-py3-none-any.whl
| Download URL | loadspinner-0.6-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
882fa55183df3b5afbe96b04dff724c9f4d2795199ba8dd2cb7cfa93e9f3a03b
|
|
BLAKE2b-256 checksum How to use checksums |
209141befec182ffad82ca53848bb09e66e721b20c293b2590c90f78d383cdbd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Security for loadspinner 0.6
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.