Metadata-Version: 2.1
Name: terminarty
Version: 0.0.5
Summary: A simple CLI helper for python
Home-page: UNKNOWN
Author: Artemon121
License: UNKNOWN
Keywords: terminal,cli,command-line,python,colored
Platform: UNKNOWN
Classifier: Development Status :: 1 - Planning
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: Unix
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Description-Content-Type: text/markdown
License-File: LICENSE

# Terminarty 

###### A simple CLI helper for Python

[![License: MIT](https://img.shields.io/pypi/l/terminarty)](https://opensource.org/licenses/MIT)

[![Version](https://img.shields.io/pypi/v/terminarty)](https://pypi.org/project/terminarty/)

[![Python versions](https://img.shields.io/pypi/pyversions/terminarty)](https://python.org/)

[![Downloads](https://img.shields.io/pypi/dm/terminarty)](https://pypi.org/project/terminarty/)



## Installation



```bash

pip install terminarty

```

## Features

**Inputs**

```python

from terminarty import Terminal



terminal = Terminal()



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

```

!["What is yout name?"](https://imgur.com/huf4E5P.png)



**Choises**

```python

from terminarty import Terminal



terminal = Terminal()



choise = terminal.choise("What is your favorite color?", ["red", "green", "blue"])



if choise == "green":

    print("I like green too!")

else:

    print("Ok.")

```

!["What is your favorite color?" (red, green, blue)](https://imgur.com/NQwkfj6.png)



**Text Boxes**

```python

from terminarty import Box, BoxStyles



print(Box("Hello World", BoxStyles.Ascii))

```

There are several box styles available:

```text

Ascii:

    +───────────+

    │Hello World│

    +───────────+

Thin:

    ┌───────────┐

    │Hello World│

    └───────────┘

Thick:

    ┏━━━━━━━━━━━┓

    ┃Hello World┃

    ┗━━━━━━━━━━━┛

Double:

    ╔═══════════╗

    ║Hello World║

    ╚═══════════╝

Round:

    ╭───────────╮

    │Hello World│

    ╰───────────╯

```

**Waitings**

```python

from terminarty import Waiting

import time



with Waiting("Loading"): # "Loading..." would work the same

    time.sleep(5)

```

!["Loading..."](https://imgur.com/a/hMhNov2.gif)



