Note: This package has been built automatically by zero2pypi. If possible, you should use the zero-install feed instead: http://gfxmonk.net/dist/0install/python-termstyle.xml
termstyle
termstyle is a simple python library for adding coloured output to terminal (console) programs. The definitions come from ECMA-048, the “Control Functions for Coded Character Sets” standard.
Installation:
I thoroughly recommend using the zero-install feed (see the project homepage) to manage your dependencies if at all possible. zero-install provides a much better system than pip or easy_install, and works with absolutely any language and allows decentralised package management that requires no special privileges to install.
Example Usage:
from termstyle import *
print "%s:%s" % (red('Hey'), green('how are you?'))
print blue('How ', bold('you'), ' doin?')
or, you can use a colour just as a string:
print "%sBlue!%s" % (blue, reset)
Styles:
reset or default (no colour / style)
colour:
black red green yellow blue magenta cyan white
background colour:
bg_black bg_red bg_green bg_yellow bg_blue bg_magenta bg_cyan bg_white bg_default
In terminals supporting transparency bg_default is often used to set the background to transparent [1].
weight:
bold inverted
style:
italic underscore
Controls:
auto() - sets colouring on only if sys.stdout is a terminal disabe() - disable colours enable() - enable colours
Metadata
Release files for termstyle 0.1.11
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 |
|---|---|---|---|---|
| termstyle-0.1.11.tar.gz | 4.6 kB | Without provenance | Details for termstyle-0.1.11.tar.gz |
Release files / termstyle-0.1.11.tar.gz
| Download URL | termstyle-0.1.11.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ef74b83698ea014112040cf32b1a093c1ab3d91c4dd18ecc03ec178fd99c9f9f
|
|
BLAKE2b-256 checksum How to use checksums |
65534dfdfe12b499f375cc78caca9cf146c01e752bab7713de4510d35e3da306
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for termstyle 0.1.11
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.