sgr-ansi
awesome SGR ANSI colorful text interface in terminal
full supported in python3.7+, macosx
awesome colorful text
install
pip install sgr-ansi
usage
Beware of two rules:
- styles require alphabet order
- styles go before colors
about styles, you can use as many as possible, but colors only the last two will take effect
so like BDISUkrgybmcw, all BDISU will take effect, but for colors only cw: cyan on white will take effect
styles/colors supported
styles
B: bold, D: dimmed, I: italic, S: strike_through, U: underlined
colors
k: black, r: red, g: green, y: yellow b: blue, m: magenta, c: cyan, w: white
import sgr_ansi as echo
echo.BIg()
echo.BIg('I love you 3 thousand times')
chained call
from sgr_ansi import Chain
Chain().BIy('Yep,').BIUb(
'How do you like this?'
).Bm('\n\t[✔]').BUg('1.').Bg('Y: yes.').Bm('\n\t[✘]').BUr('2.').Br('N: not.').show()
run demo
just run
sgransito check all available styles
# after installed sgr_ansi, cli sgransi is available
sgransi -h
Metadata
Release files for sgr-ansi 0.0.5
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 |
|---|---|---|---|---|
| sgr-ansi-0.0.5.tar.gz | 17.9 kB | Without provenance | Details for sgr-ansi-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sgr_ansi-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for sgr_ansi-0.0.5-py3-none-any.whl |
Total release size: 46.7 kB
Release files / sgr-ansi-0.0.5.tar.gz
| Download URL | sgr-ansi-0.0.5.tar.gz |
|---|---|
| Size | 17.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d691f23151829c7af505a02928199cf61ff34fc94f2ae4c206061303e90b62d1
|
|
BLAKE2b-256 checksum How to use checksums |
cb5aef8487fa24d36c05ddaee5977540a584e2ac9f36de268cdc4601be76ae80
|
| 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/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.0
|
Release files / sgr_ansi-0.0.5-py3-none-any.whl
| Download URL | sgr_ansi-0.0.5-py3-none-any.whl |
|---|---|
| Size | 28.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f479a518f542673cb6edfb9fe8924dc2b1b32b3b70de51ac890c9b6152e9e637
|
|
BLAKE2b-256 checksum How to use checksums |
87cbc5f24030dad7e9c5a03a26727c49735b7be4b9ae724e0d96d67d4884777a
|
| 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/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.0
|
Security for sgr-ansi 0.0.5
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.