Used to make your design of terminal apps easier!
Project description
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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file BetterDesign-2.0.0.tar.gz.
File metadata
- Download URL: BetterDesign-2.0.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9bf5b4fd89d3f95cca2cf36a33f6a2caf55f2b105e736895fe6169e65b5361b
|
|
| MD5 |
de354c7423b640eed16759fd5c1fce36
|
|
| BLAKE2b-256 |
c3ed6c69e07d3d893297b21e75f38d97deecf4969d57358b6c2e47de2f4002bb
|
File details
Details for the file BetterDesign-2.0.0-py3-none-any.whl.
File metadata
- Download URL: BetterDesign-2.0.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09e76a1b79b6a1871654c89e259b56a3cf981969aa58bfac6c79fab6c89f6fd3
|
|
| MD5 |
530c185024bb50e2a1b964acf62c6cdc
|
|
| BLAKE2b-256 |
ed16825339bad4a4232fb63a3026d683dd251b5813ac952cf872b4fae11f52e3
|