## Loaderr
Ever wonder why the solutions you think of in your head never work? Why your ability to write awesome code is limited? Well here it is – you're not using `Loaderr`.
With `Loaderr`, you can create simple loading icons to use in your projects. Say you want your program to seem like it's processing something?
```
from loaderr import *
loading("Processing$.$", dots, medium, 5)
```
It's that simple! With this code, your program will literally halt its progress just to print:
```
Processing.
Processing..
Processing...
```
## Tutorial
There are two functions in `Loaderr`.
+ `clear_line()`
Sets the cursor back so text can be printed over it.
+ `loading(string, logo, timing, repeat)`
Creates a "loading" thing.
+ The `string` is determines what surrounds the loading animation. For example `Loading$$` will create `Loading.` -> `Loading..` -> `Loading...`. The two `$` indicate where the animation is placed. If the string is empty, it replaces the entire string.
+ The `logo` is an array that stores the animation. To get the dots, you could do `[".", "..", "..."]`.
+ The `timing` is an array the stores the wait times within each animation. For example, `[0.5]` will display the animation every half a second. `[0.1, 0.2]` will display the first frame after `0.1` seconds and the next after `0.2` seconds.
+ The `repeat` is the amount of times to loop the animation.
## Pre-Sets
There are several pre-defined animations and wait times. These are inside the `loaderr.py` file. For example, `loaderr.table_flip` is `(╯°□°)╯┳━┳` -> `(╯°□°)╯┳━┳` -> `(╯°□°)╯︵┻━┻` -> `(╯°□°)╯︵ ┳━┳`
Ever wonder why the solutions you think of in your head never work? Why your ability to write awesome code is limited? Well here it is – you're not using `Loaderr`.
With `Loaderr`, you can create simple loading icons to use in your projects. Say you want your program to seem like it's processing something?
```
from loaderr import *
loading("Processing$.$", dots, medium, 5)
```
It's that simple! With this code, your program will literally halt its progress just to print:
```
Processing.
Processing..
Processing...
```
## Tutorial
There are two functions in `Loaderr`.
+ `clear_line()`
Sets the cursor back so text can be printed over it.
+ `loading(string, logo, timing, repeat)`
Creates a "loading" thing.
+ The `string` is determines what surrounds the loading animation. For example `Loading$$` will create `Loading.` -> `Loading..` -> `Loading...`. The two `$` indicate where the animation is placed. If the string is empty, it replaces the entire string.
+ The `logo` is an array that stores the animation. To get the dots, you could do `[".", "..", "..."]`.
+ The `timing` is an array the stores the wait times within each animation. For example, `[0.5]` will display the animation every half a second. `[0.1, 0.2]` will display the first frame after `0.1` seconds and the next after `0.2` seconds.
+ The `repeat` is the amount of times to loop the animation.
## Pre-Sets
There are several pre-defined animations and wait times. These are inside the `loaderr.py` file. For example, `loaderr.table_flip` is `(╯°□°)╯┳━┳` -> `(╯°□°)╯┳━┳` -> `(╯°□°)╯︵┻━┻` -> `(╯°□°)╯︵ ┳━┳`
Release files for loaderr 1.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 | |
|---|---|---|---|
| loaderr-1.0.0.tar.gz | 5.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| loaderr-1.0.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 9.2 kB
Release files / loaderr-1.0.0.tar.gz
| Download URL | loaderr-1.0.0.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cc6f17580b98c9b258b3f6d587f12ccc7c31712e829a416a84e95713b82f8d24
|
|
BLAKE2b-256 checksum How to use checksums |
72bda7305f6a1b6755b9ce4c3d36857fa3b7c4e12b530240c9a3c25dcd19d446
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / loaderr-1.0.0-py2.py3-none-any.whl
| Download URL | loaderr-1.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
e10886ae206ed23bd6874d6f6ec4f17fc57b297faf4698ffaa483713666d1c2a
|
|
BLAKE2b-256 checksum How to use checksums |
d80ea494c97d7fdcafc8e65df80af48dd44121b00ea575c80d8b8e1e595c871c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |