~~~~~~~~~~~~~~
Python module to ease the use of colors on programs that run on CLI.
Works fine on Linux and any Operating System running BaSH or compatibles.
If the shell's not color compatible, he'll get the raw string.
The module have predefined some basic colors, but you can use any color,
if you know the color code.
Usage example
-------------
>>> from colors import Color
>>> yellow = Color('1;33')
>>> print yellow('Hello World')
Hello World
>>> from colors import red
>>> print red('Ola Mundo')
Working with this module as an optional dependency
--------------------------------------------------
If you don't want to force the users to have PyColors installed
you can make the use of the colors module optional. For example: ::
# trying to use colors
try:
from colors import light_blue, light_red, red, white
except:
light_blue = light_red = red = white = lambda(x): str(x)
With this, if the user don't have the colors module, he'll get the
raw strings normally.
:copyright: 2009 Rafael Goncalves Martins.
:license: BSD, see LICENSE for more details.
Metadata
Release files for pycolors 0.1.2
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 |
|---|---|---|---|---|
| pycolors-0.1.2.tar.gz | 7.3 kB | Without provenance | Details for pycolors-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pycolors-0.1.2-py2.6.egg | Legacy Egg format | - | - | Details for pycolors-0.1.2-py2.6.egg |
Total release size: 12.6 kB
Release files / pycolors-0.1.2.tar.gz
| Download URL | pycolors-0.1.2.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d5dc8649127e9e70497cedf68ee9cdb765a8c0d86b019a798be19464524044a
|
|
BLAKE2b-256 checksum How to use checksums |
a67dbd57a149c8914f9dc80d317852fa30da87f9e81f8d55b15de7358f46ae3b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pycolors-0.1.2-py2.6.egg
| Download URL | pycolors-0.1.2-py2.6.egg |
|---|---|
| Size | 5.3 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
0ebf2ee318316606489990ef801d7258f24135e786336aa5ad6520cf46bcaf0f
|
|
BLAKE2b-256 checksum How to use checksums |
26f6684719402c7661eb4bc8aebe46a52a7f244742dc19324bcc9f1fade9adc5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pycolors 0.1.2
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.