FULLCOLOR
*********
fullcolor is a simple python module meant to make it easy to print text in full 24bit colouring.
Instead of the usual 256 different colors, fullcolor enables users to use the full 16.7 million color gammut.
Support for this does depend on the terminal, but if unsupported, it should fallback to 256 colors with no user intervention.
Currently it provides the ability to:
* set the foreground or background to any color that can be expressed as a 6 digit hex code or (R, G, B) tuple
* convert between RGB, HEX (supports both 3 and 6 digit hex codes), and terminal color encodings (though this should rarely ever be used).
* allows users to extend color modes to print in (modifying the Tmode enum will automatically update the Color classes slots)
* reset terminal color
* has a default set of colors for simple use cases
* has some common functions to demonstrate use (currently this just includes a rainbow function)
USAGE:
To import base color class
.. code:: python
from fullcolor.colors import Color
To import common colors:
.. code:: python
from fullcolor.common import CommonColors
Sample print statements:
.. code:: python
:linenos:
from fullcolor.colors import Color, Tmode
from fullcolor.common import CommonColors as cc, rainbow
# print green background, red foreground, then reset terminal colors
print(cc.GREEN.bg + cc.RED.fg + 'Christmas tree.' + cc.RT)
# create custom colors and use them
custom1 = Color('561f0a')
custom2 = Color((100, 240, 100))
custom3 = Color('#a02')
print(custom1.fg + custom2.bg + 'This is gonna be ' + custom3.bg + 'ugly.' + custom1.rt)
# print a nice rainbow
print(rainbow())
# customize the rainbow
print(rainbow(cols=80, printchar='#', mode=Tmode.fg))
Metadata
Release files for fullcolor 0.2.4
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 |
|---|---|---|---|---|
| fullcolor-0.2.4.tar.gz | 16.1 kB | Without provenance | Details for fullcolor-0.2.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fullcolor-0.2.4-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for fullcolor-0.2.4-py2.py3-none-any.whl |
Total release size: 24.6 kB
Release files / fullcolor-0.2.4.tar.gz
| Download URL | fullcolor-0.2.4.tar.gz |
|---|---|
| Size | 16.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
620a1640e73d72edf8119fd9e554adeeea6b282d9d3c19bd9275f14f8260fb53
|
|
BLAKE2b-256 checksum How to use checksums |
241294a3a9f6ab8aa3d4de6f65724a66611392efe33fd9a7cf255a8509d07f41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / fullcolor-0.2.4-py2.py3-none-any.whl
| Download URL | fullcolor-0.2.4-py2.py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
910440a89a7c0b45dce9d9a639707d9e021c20db96c2a0c40228fb7be3480848
|
|
BLAKE2b-256 checksum How to use checksums |
3dd4e0a98dce8608fb067efa99df0fef260c035754e45f13814ae6200d46df11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for fullcolor 0.2.4
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.