Last updated:
0 purchases
BetterDesign 2.0.0
BetterDesign
Purpose
BetterDesign is a simple python module to make styling command line applications easier.
Usage
You can install this module using:
pip install BetterDesign
You can import this module using:
import BetterDesign as bd
Printing a table code example:
import BetterDesign as bd
values = {
"GitHub": "https://github.com/c0nvict/BetterDesign",
"PyPi": "https://pypi.org/project/BetterDesign"
}
table = bd.table(values)
print(table)
Centering a string code example:
import BetterDesign as bd
string = "Hello world!"
print(bd.center(string)) # this works for multiple line strings and allows you to use the "end" keyword unlike python's native center.
Using colors with a table code example:
import BetterDesign as bd
values = {
"GitHub": "https://github.com/c0nvict/BetterDesign",
"PyPi": "https://pypi.org/project/BetterDesign"
}
table = bd.table(values, value_color="green", key_color="green", border_color="red")
print(table)
There is some other stuff that I have not shown examples for yet, just feel free to read the code or message me on discord at convict#0001!
Updates and new features
If I ever update this, it will be uncommon since I only made this when I was bored. I do plan to eventually add some stuff with colors, feel free to submit a pull request if you add anything!
Credits
This was solely developed by c0nvict, this isn't supposed to be a huge project, just some things to make your application nicer
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.