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.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

tpng.py-0.2.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

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

Hashes for tpng.py-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8668dbaeadb3b401da86b203301fa4d3e2c7d774129cfb6e4e614432cd332a9f
MD5 3c4fdbeb832b8697383fba6d337aecd2
BLAKE2b-256 60fe3fe1dfc331c9e0650db02165c19cd101282e55a7eb47b71c832d782af00e

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