A simple spinner library.
Project description
Spinny
Ever wanted a simple solution to a simple problem? I've attempted to do that with a very simple spinner library. It's so small, that you don't even need to install it; you can just copy and paste it into your code file. Yes, I said file, not base. Why? It's about 10 lines long. And it uses only vanilla Python. It's based off of this Stackoverflow answer. It can be installed from PyPI here.
Jut saying, the code is golfed so that it's as short as I can make it. Although that makes it copy-and-pastable, it also makes it illegible. Caveat emptor.
How to use it
See the example below (there's an error, you should import it using the phrase spinny
):
It also handles errors cleanly, printing out the cause of the error and stopping.
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
Built Distribution
Hashes for spinny-1.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c07d051cc3161cc60c6c16782d32282773067611e8de8562c8a957d7593d2b2 |
|
MD5 | 6582f4379f5806adf8672f36bb4ccc56 |
|
BLAKE2b-256 | dbb896f4ccf96f6cadb1ef90caffcec8a2c934803e9983bab6fe7f92ffa680f4 |