Metadata-Version: 2.1
Name: tpng.py
Version: 0.2.0
Summary: A special file format for displaying images in the terminal.
Home-page: https://github.com/romanin-rf/tpng.py
Author: programmer-from-parlament
Author-email: semina054@gmail.com
License: MIT
Keywords: tpng.py
Platform: UNKNOWN
Requires: pillow
Requires: rich
Description-Content-Type: text/markdown
License-File: LICENSE

# tpng.py
## Description
The library has the ability to convert `image` to `string` for [rich](https://pypi.org/project/rich). 

**TPNG** - is a library for converting images into a colour-coded string. Mapping is implemented via the [rich](https://pypi.org/project/rich) library.

[More information...](https://github.com/romanin-rf/tpng.py)

## Installation
```
pip install --upgrade tpng.py
```

## Examples
```python
import tpng
from rich.console import Console

c = Console()
t = tpng.open("image.png")

string = t.get_rich_string()

c.print(string)
```

<div id="header" align="center"><img src="https://romanin-rf.github.io/tpng.py/data/tpng_with_rich.gif" width="800"></div>

## Author
- Roman Slabicky
    - [Vkontakte](https://vk.com/romanin2)
    - [GitHub](https://github.com/romanin-rf)


