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.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file tpng.py-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: tpng.py-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.9

File hashes

Hashes for tpng.py-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 27280c74b8a048a36838e035143e1414fd92727211b080ad260b8755e3db43b1
MD5 e9d79e9dd3ca096f9b7d73ffa47f7711
BLAKE2b-256 42ae2126add46417e0812bcb6de3b8d29420f154fb9454e94edd448e12789ed7

See more details on using hashes here.

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