A special file format for displaying images in the terminal.
Project description
tpng.py
Description
The library has the ability to convert image
to string
for rich.
TPNG - is a library for converting images into a colour-coded string. Mapping is implemented via the rich library.
Installation
pip install --upgrade tpng.py
Examples
import tpng
from rich.console import Console
c = Console()
t = tpng.open("image.png")
string = t.get_rich_string()
c.print(string)
Author
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file tpng.py-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: tpng.py-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8668dbaeadb3b401da86b203301fa4d3e2c7d774129cfb6e4e614432cd332a9f |
|
MD5 | 3c4fdbeb832b8697383fba6d337aecd2 |
|
BLAKE2b-256 | 60fe3fe1dfc331c9e0650db02165c19cd101282e55a7eb47b71c832d782af00e |