Skip to main content

Termp

Drawing in the terminal

pypi

Install

pip install --upgrade termp

Usage

from Termp import *

Create a text picture:

t = termp(50,50)
# Create a 50 × 50 text image

Draw:

t.line(0,0,49,49)
t.circle(25,25,10)
t.rect(0,0,49,49)
t.fill(30,5, "#")
t.fill(20,30, "#")

Result:

t.print()

image

Convert Pictures

  • with color
t = termp(140, 140)
t.image("file.jpg", 140, color=True)

image

  • without color
t = termp(140, 140)
t.image("file.jpg", 140)

image

  • color filter picture
t = termp(140, 140)
t.image("file.jpg", 140)
t.givecolor("green")

image

Download files

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

Source Distribution

termp-0.2.15.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file termp-0.2.15.tar.gz.

File metadata

  • Download URL: termp-0.2.15.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.5

File hashes

Hashes for termp-0.2.15.tar.gz
Algorithm Hash digest
SHA256 3cab9577f341c48459d45277e6995c079a2ba3479b24f1119072166d0eb535f6
MD5 832a3027f7967e13c852b8704b9fb8ed
BLAKE2b-256 e0b3ae8add0ebcc45a065e56f153c3fb7c45c22d7cde981be7d33630babb7abf

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.15 This release

1 file

0.2.14

1 file

0.2.13

1 file

0.2.12

1 file

0.2.11

1 file

0.2.10

1 file

0.2.9

1 file

0.2.8

1 file

0.2.7

1 file

0.2.6

1 file

0.2.5

1 file

0.2.4

1 file

0.2.3

1 file

0.2.2

1 file

0.2.1

1 file

0.2.0

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.5

2 files

0.1.3

2 files

0.1.2

2 files

0.1.0

2 files

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page