stabilofont
stabilofont is a python package that serves to provide color, bakcground or style to python text that runs on the terminal / cmd. When we develop a program sometimes we need to mark important information that we need, so I develop it stabilofont is to facilitate you and me in developing a program
To use this package you must first ensure that the python you are using is version> = 3.0 because This package only works with python version >= 3.0 , after making sure that your python meets the requirements for typing below. Documentation
pip3 install stabilofont //## recommended install v0.3 version pip3 install stabilofont==0.3
after completing it please enter into the root folder of your project then import it as follows
//#file main.py from stabilofontfont import * ...
to use it is quite easy, you just need to write down the name of the color you want, consider the example below
//## main.py from stabilofont import * kata = Blue("Awesome") print(kata)
List Colors
- Black=> Black(parameters)
- Red => Red(parameters)
- Green => Green(parameters)
- Blue => Blue(parameters)
- Yellow => Yellow(parameters)
- Purple => Purple(parameters)
- Cyan => Cyan(parameters)
- White => White(parameters)
Besides the example above, you can also combine it with other styles such as bold
from stabilofont import *input = str(input("Apa pendapatmu tentang bahasa python ? : "))
print(Bold(Blue(input)))
not only that stabilofont is also able to provide the desired background text for the following examples
//## main.py from stabilofont import * kata = bgGreen(Blue("Awesome")) print(kata)
List Background
- Black => bgBlack(parameters)
- Red => bgRed(parameters)
- Green => bgGreen(parameters)
- Blue => bgBlue(parameters)
- Yellow => bgYellow(parameters)
- Purple => bgPurple(parameters)
- Cyan => bgCyan(parameters)
- White => bgWhite(parameters)
It's not enough just to get here stabilofont is also able to provide text with bold results, custom colors and also the following background colors for example
//## main.py from stabilofont import * kata = bgPurple(Bold(Blue("Awesome"))) print(kata)
available for works email : rizkimaulana348@gmail.com