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 details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tpng.py-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 3.8 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 63bd79483d27959d52cbcf4692506082a83142c6b9992645faedc1f04bfe0b51
MD5 e39b432990540d00bef06df36a3e058a
BLAKE2b-256 e01b2f1d6ba87d62be7681cf489ae137e97f51ae12b7c803cb3690bbf0e9c88e

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