A Python library for making printing cooler with colours and loading bars.
Project description
NonStdOut
(nonstandard output)
by Sushii64
library for making printing cooler
haha get it
Installation
Install using pip
like so:
pip install nonstdout
Optionally, clone this repository in the folder of the project and import it locally:
git clone https://github.com/Sushii64/nonstdout
Usage
Import everything from the library:
from nonstdout import *
Each command in the library has docstrings, refer to those to learn how to use the library.
Example Program
from nonstdout import *
clear()
print("-- Text Styling --\n")
print("print()")
print(" normal text")
print("printd()")
printd(" debug text!")
print("printe()")
printe(" error text!")
print("printw()")
printw(" warning text!")
print("prints()")
prints(" success text!")
print()
pause()
clear()
print("-- Loading Bars --\n")
load(15, beg="loading - ")
pause()
load(12, "#", ".", "Loading... [", "]")
pause()
load(5, "O", "o", "im a ghost ", " >:3", 0.3)
pause()
clear()
print("-- Loading Spinners --\n")
spinner(5, before_text="loading ")
pause()
print()
spinner(3, before_text="downloading 'real' drivers ")
spinner(2, before_text="installing 'real' drivers ")
spinner(1, before_text="setting up images ")
spinner(4, before_text="crying in the corner ")
spinner(2, before_text="verifying 'real' drivers ")
spinner(2, before_text="finalising ")
pause()
clear()
print("All done!")
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nonstdout-1.0.0.tar.gz
(14.0 kB
view details)
Built Distribution
nonstdout-1.0.0-py3-none-any.whl
(14.1 kB
view details)
File details
Details for the file nonstdout-1.0.0.tar.gz
.
File metadata
- Download URL: nonstdout-1.0.0.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cae0b23028dd5246c2ec44b74005af5ea14969d423c2a6a7f40f8e8aae3e7af |
|
MD5 | 43af3de3c06e283fc31c126674d2bf13 |
|
BLAKE2b-256 | 096506389ae72e1d066cb385e9a8b119d18a2d01acc949ce88c4b98c698a71f7 |
File details
Details for the file nonstdout-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: nonstdout-1.0.0-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 188e16971c7a220b725df71fa9f5382c0acc37e5a3ac4bbc46cb13b4e28c3a39 |
|
MD5 | 5089a33b7135596345dea201a4691852 |
|
BLAKE2b-256 | 2776a3c02081295e1b95978e256e2028cf63276211714512b3eae0d8e0b9b694 |