# 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.TPNG("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)
Raw data
{
"_id": null,
"home_page": "https://github.com/romanin-rf/tpng.py",
"name": "tpng.py",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "tpng.py",
"author": "programmer-from-parlament",
"author_email": "semina054@gmail.com",
"download_url": "",
"platform": null,
"description": "# tpng.py\n## Description\nThe library has the ability to convert `image` to `string` for [rich](https://pypi.org/project/rich). \n\n**TPNG** - is a library for converting images into a colour-coded string. Mapping is implemented via the [rich](https://pypi.org/project/rich) library.\n\n[More information...](https://github.com/romanin-rf/tpng.py)\n\n## Installation\n```\npip install --upgrade tpng.py\n```\n\n## Examples\n```python\nimport tpng\nfrom rich.console import Console\n\nc = Console()\nt = tpng.TPNG(\"image.png\")\n\nstring = t.get_rich_string()\n\nc.print(string)\n```\n\n<div id=\"header\" align=\"center\"><img src=\"https://romanin-rf.github.io/tpng.py/data/tpng_with_rich.gif\" width=\"800\"></div>\n\n## Author\n- Roman Slabicky\n - [Vkontakte](https://vk.com/romanin2)\n - [GitHub](https://github.com/romanin-rf)\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A special file format for displaying images in the terminal.",
"version": "0.2.5",
"split_keywords": [
"tpng.py"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e01b2f1d6ba87d62be7681cf489ae137e97f51ae12b7c803cb3690bbf0e9c88e",
"md5": "e39b432990540d00bef06df36a3e058a",
"sha256": "63bd79483d27959d52cbcf4692506082a83142c6b9992645faedc1f04bfe0b51"
},
"downloads": -1,
"filename": "tpng.py-0.2.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e39b432990540d00bef06df36a3e058a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 3772,
"upload_time": "2023-04-24T16:48:40",
"upload_time_iso_8601": "2023-04-24T16:48:40.363542Z",
"url": "https://files.pythonhosted.org/packages/e0/1b/2f1d6ba87d62be7681cf489ae137e97f51ae12b7c803cb3690bbf0e9c88e/tpng.py-0.2.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-04-24 16:48:40",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "romanin-rf",
"github_project": "tpng.py",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "pillow",
"specs": []
},
{
"name": "rich",
"specs": []
}
],
"lcname": "tpng.py"
}