Skip to main content

A simple CLI helper for python

Project description

Terminarty

A simple CLI helper for Python

License: MIT

Version

Python versions

Downloads

Installation

$ pip install terminarty

Features

Inputs

from terminarty import Terminal



terminal = Terminal()



name = terminal.input("What is your name?")

"What is yout 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.")

"What is your favorite color?" (red, green, blue)

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


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)

Uploaded Source

Supported by

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