Metadata-Version: 2.1
Name: pytoolbox_talw3g
Version: 0.2
Summary: A small package with useful simple tools
Project-URL: Homepage, https://github.com/Talw3g/pytoolbox
Project-URL: Bug Tracker, https://github.com/Talw3g/pytoolbox/issues
Author-email: Thibault MARION <pytoolbox@otter.mozmail.com>
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.7
Description-Content-Type: text/markdown

# pytoolbox: a simple Python utilities pool


pytoolbox is a simple Python projects that aims to regroup some
utilities I often use in my other Python projects.
Project's source is available [here](https://github.com/Talw3g/pytoolbox).

This project currently includes the following modules:

  * **colortxt**: offers a convenient way to customize text with color, background and blink.
  * **confirm**: a dialog wrapper that asks for user's
  choice in the infamous *[Y/n], [y/N]* way.

## Installation

```bash
pip install pytoolbox-talw3g
```

## Usage

##### colortxt:
```python
from pytoolbox import colortxt
print(colortxt.ctxt('foobar', 'red', blink=True, bgcol='wht'))
print(colortxt.ctxt('foobar', 'blue', 'grn'))
print(colortxt.ctxt('foobar', 'yel'))
```

##### confirm:
```python
from pytoolbox import confirm
question = 'foobar ?'
confirm.confirm(question, 'no')
```
