Skip to main content

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.

More information...

Installation

pip install --upgrade tpng.py

Examples

import tpng
from rich.console import Console

c = Console()
t = tpng.TPNG("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

tpng.py-0.2.5-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page