Skip to main content

Python libray for displaying images on terminal

Project description

# teimpy
[![PyPI version](](
[![MIT licensed](](
[![Build Status](](

Python library for displaying image on terminal.

## Installation

$ pip

## Example

import numpy as np
from teimpy import get_drawer, Mode

R = np.array([1.0, 0, 0])
G = np.array([0, 1.0, 0])
B = np.array([0, 0, 1.0])

def _get_color(x, y):
tmp = (y * (1.0 - x) * R + (1.0 -y ) * x * G + (1.0 - y) * (1.0 - x) * B)
return (255 * tmp).astype(np.uint8)

tics = np.linspace(0, 1, 128)
xs, ys = np.meshgrid(tics, tics)
buffer = np.vectorize(_get_color, signature='(),()->(3)')(xs, ys)
![Result of](

## Feature

* Resize images to fit terminal size.
* Drawing with iterm2 inline image.
![Drawing with iterm2 inline image](
* Drawing with Braille fonts.
![Drawing with Braille ofnts](
* Drawing with half block fonts.
![Drawing with half block fonts](

## License
This software is released under the MIT License, see [LICENSE](LICENSE).

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for teimpy, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size teimpy-0.0.2-py3-none-any.whl (9.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page