Termp
Drawing in the terminal
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()
Convert Pictures
- with color
t = termp(140, 140)
t.image("file.jpg", 140, color=True)
- without color
t = termp(140, 140)
t.image("file.jpg", 140)
- color filter picture
t = termp(140, 140)
t.image("file.jpg", 140)
t.givecolor("green")
Metadata
Release files for termp 0.2.15
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| termp-0.2.15.tar.gz | 3.7 kB | Without provenance | Details for termp-0.2.15.tar.gz |
Release files / termp-0.2.15.tar.gz
| Download URL | termp-0.2.15.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3cab9577f341c48459d45277e6995c079a2ba3479b24f1119072166d0eb535f6
|
|
BLAKE2b-256 checksum How to use checksums |
e0b3ae8add0ebcc45a065e56f153c3fb7c45c22d7cde981be7d33630babb7abf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for termp 0.2.15
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.