A simple CLI helper for python
Project description
Terminarty
A simple CLI helper for Python
Installation
$ pip install terminarty
Features
Inputs
from terminarty import Terminal
terminal = Terminal()
name = terminal.input("What is your name?")
Choises
from terminarty import Choises
choise = Choises.choise(["red", "green", "blue"], "What is your favorite color?")
if choise == "green":
print("I like green too!")
else:
print("Ok.")
Text Boxes
from terminarty import Box, BoxStyles
print(Box("Hello World!", BoxStyles.Ascii))
There are several box styles available.
Ascii:
+───────────+
│Hello World│
+───────────+
Thin:
┌───────────┐
│Hello World│
└───────────┘
Thick:
┏━━━━━━━━━━━┓
┃Hello World┃
┗━━━━━━━━━━━┛
Double:
╔═══════════╗
║Hello World║
╚═══════════╝
Round:
╭───────────╮
│Hello World│
╰───────────╯
And that is all?
Yes.
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
terminarty-0.0.4.tar.gz
(4.6 kB
view hashes)