Metadata-Version: 2.1
Name: colorpie
Version: 0.0.1
Summary: Terminal color style handler.
Home-page: https://github.com/ClaudiuDrug/colorpie
Author: Claudiu DRUG
Author-email: claudiu.drug@outlook.com
License: MIT License
Project-URL: Bug Tracker, https://github.com/ClaudiuDrug/colorpie/issues
Classifier: Programming Language :: Python :: 3.7
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: Microsoft :: Windows :: Windows 10
Classifier: Operating System :: POSIX :: Linux
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Utilities
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE

# colorpie
Terminal color style handler.

### Installation:

```commandline
python -m pip install [--upgrade] colorpie
```

### Available tools:

<details>
<summary>Style4Bit</summary>
<p>

```python

from colorpie import Style4Bit

style = Style4Bit(
    color='red',
    highlight='black',
    attributes=['bold', 'slow_blink']
)

if __name__ == '__main__':
    print(style.format('Hello, World!'))
```

</p>
</details>


<details>
<summary>Style8Bit</summary>
<p>

```python

from colorpie import Style8Bit

style = Style8Bit(
    color=0,
    highlight=16,
    attributes=['bold']
)

if __name__ == '__main__':
    print(style.format('Hello, World!'))
```

Some colors can be referred to by their name:

`
black, maroon, green, olive, navy, purple, teal, silver,
grey, red, lime, yellow, blue, magenta, cyan, white and gold
`

Also, by their hex or rgb values.
(see `__256_color__` dict in [mapping.py](src/colorpie/mapping.py)).

</p>
</details>
