tmlpy - Python implementation of Terminal Markup Language
A Python module to implement tml, which make the output of coloured/formatted text in the terminal easier and more readable.
Usage in Python
First, install tmlpy:
pip install tmlpy
The output of coloured/formatted text is easy using the following syntax:
from tmlpy import tml
tml.print("<red>this text is <bold>red</bold></red> ", "and the following is <green>%s</green>" % "not red", sep='')
Format
Each tag is enclosed in angle brackets, much like HTML.
You can nest tags as deeply as you like.
It's not required to close tags you've opened, though it can make for easier reading.
Available Tags
Foreground Colours
<red><green><yellow><blue><magenta><cyan><lightgrey><darkgrey><black><white><lightred><lightgreen><lightyellow><lightblue><lightmagenta><lightcyan>
Background Colours
<bg-red><bg-green><bg-yellow><bg-blue><bg-magenta><bg-cyan><bg-lightgrey><bg-darkgrey><bg-black><bg-white><bg-lightred><bg-lightgreen><bg-lightyellow><bg-lightblue><bg-lightmagenta><bg-lightcyan>
Attributes
<bold><dim><underline><blink><reverse><hidden>
Related
Metadata
Release files for tmlpy 0.1.0
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 | |
|---|---|---|---|---|
| tmlpy-0.1.0.tar.gz | 4.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tmlpy-0.1.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 8.8 kB
Release files / tmlpy-0.1.0.tar.gz
| Download URL | tmlpy-0.1.0.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8620e7c98401f27772311dd5d341f14923076156260bed9612c8b19ef474f5db
|
|
BLAKE2b-256 checksum How to use checksums |
3ac0e91e0d7a9cf29807fd2875ae173b082d0593f9d7978f1a94300825ea26eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.0
|
Release files / tmlpy-0.1.0-py2.py3-none-any.whl
| Download URL | tmlpy-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
3c1a97d744452267e7c596a509cd60e460fe8f5670800f784efeb14bbb68ede6
|
|
BLAKE2b-256 checksum How to use checksums |
ea28e4da970f1d4b60853c60225b1aa27b2b6b448940a2ac5861e339f4a7e580
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.0
|
Security for tmlpy 0.1.0
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.