Skip to main content

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)

Screenshot

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.

Screenshot

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)

Screenshot

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

BetterDesign-2.0.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

BetterDesign-2.0.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

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

Hashes for BetterDesign-2.0.0.tar.gz
Algorithm Hash digest
SHA256 f9bf5b4fd89d3f95cca2cf36a33f6a2caf55f2b105e736895fe6169e65b5361b
MD5 de354c7423b640eed16759fd5c1fce36
BLAKE2b-256 c3ed6c69e07d3d893297b21e75f38d97deecf4969d57358b6c2e47de2f4002bb

See more details on using hashes here.

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

Hashes for BetterDesign-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 09e76a1b79b6a1871654c89e259b56a3cf981969aa58bfac6c79fab6c89f6fd3
MD5 530c185024bb50e2a1b964acf62c6cdc
BLAKE2b-256 ed16825339bad4a4232fb63a3026d683dd251b5813ac952cf872b4fae11f52e3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page