Colour Splash
A simple tool enabling easy colouring of terminal outputs
Download
Using PIP to use a imported Module
pip install colour_splash
Manually to embed into a project
git clone https://github.com/lachlan2357/python-colour-splash into your project directory
Usage
Include import colour_splash at the top of your file
Examples
Red text colour with white background
colour_splash.colour("this is red text with a white background", "red", "white") or colour_splash.colour("this is red text with a white background", colour_splash.colours.red, colour_splash.colours.white)
Only white background
colour_splash.colour("this is text with a white background", background = "white") or colour_splash.colour("this is text with a white background", background = colour_splash.colours.white)
Dim text
colour_splash.colour("this is dim text", "dim") or colour_splash.colour("this is dim text", colour_splash.styles.dim)
Functions
colour_splash.colour()
Changes the foreground, background or both-grounds of text
Parameters:
textthe text you wish to be colouredforeground(optional): the string/colours value of the name of the colour you wish to use as the foreground (text) colourbackground(optional): the string/colours value of the name of the colour you wish to use as the background (highlighted) colour
colour_splash.style()
Changes the style of text
Parameters:
text: the text you wish to be styledstyle(optional): the string/styles value of the name of the style you wish to use
colour_splash.colour_start()
Starts a specific colour for all proceeding text
Parameters:
foreground(optional): the string/colours value of the name of the colour you wish to use as the foreground (text) colourbackground(optional): the string/colours value of the name of the colour you wish to use as the background (highlighted) colour
colour_splash.style_start()
Starts a specific style for all proceeding text
Parameters:
style(optional): the string/styles value of the name of the style you wish to use
colour_splash.colour_end()
Returns the proceeding text to its previous colour/style
colour_splash.style_end()
Returns the proceeding text to its previous colour/style
colour_splash.help()
Lists colours and styles and how they appear on your system
Metadata
Release files for colour-splash 0.4.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 | Actions |
|---|---|---|---|---|
| colour-splash-0.4.0.tar.gz | 16.3 kB | Without provenance | Details for colour-splash-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| colour_splash-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for colour_splash-0.4.0-py3-none-any.whl |
Total release size: 32.9 kB
Release files / colour-splash-0.4.0.tar.gz
| Download URL | colour-splash-0.4.0.tar.gz |
|---|---|
| Size | 16.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d97d8cb31899d5564e8c4a7f7bc045cd70b90225dff20300800b4a10ec02b7a9
|
|
BLAKE2b-256 checksum How to use checksums |
fef13c8770c5245d4e308d44f01f10351a0e9e1144fa981bbc267589756f80b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Release files / colour_splash-0.4.0-py3-none-any.whl
| Download URL | colour_splash-0.4.0-py3-none-any.whl |
|---|---|
| Size | 16.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
24cc7ab69e64db9d0d0fac20f6c90f17fbc8611d2a42d27fc25769c1407eab6b
|
|
BLAKE2b-256 checksum How to use checksums |
e5972a901f2799b23104a04f7fdf20279b8b59d5e5815b8e9fbada4b78af96a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Security for colour-splash 0.4.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.