Simple package that converts a text to have colors in a terminal output.
Project description
##################DESCRIPT#######################
This is a very simple package that converts a text to have colors in a terminal output. Available colors: grey, red, green, yellow, blue, purple, cyan, white. Three methods: txtcolor(), bgcolor(), complrandom() -> all of them returns a string.
Note: This package is still being worked on as the colors only works on specific terminals, one of them which is VSC’s terminal. Note: There is a bug where you can’t use start_index and stop_index with random set to True.
##################EXAMPLES#######################
- Two examples of a txtcolor():
- # Example 1:
print(txtcolor(text=”Hello World!”, random=True)) # each character will have a random color
- # Example 2:
print(txtcolor(text=”Hello World!”, color=”red”, start_index=3, stop_index=7, bold=True))
- Two examples of bgcolor():
- # Example 1:
print(bgcolor(text=”Hello World!”, random=True))
- # Example 2:
print(txtcolor(text=”Hello World!”, color=”blue”, start_index=3, stop_index=7))
- One example of complrandom():
- # Example 1:
print(complrandom(text=”Hello World!”))
Change Log
0.0.1 (2021-12-05)
First Release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file colego-0.0.1.tar.gz
.
File metadata
- Download URL: colego-0.0.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d415c6a0b5c88b85b23b2f4297e72ee777dc678d3496d73cd0f1cd099a33db23 |
|
MD5 | 40c56a598c6118c5f55ca8f308d71eb9 |
|
BLAKE2b-256 | 6b8f40e7d589fdd4f173a323bc83d12d8085c57663928b925de783065384ee6c |
Provenance
File details
Details for the file colego-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: colego-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c59d8b2f0311eb01b8c25a92742c320afc0fd2afcbbf35f651491a3a69093b9a |
|
MD5 | fc744d549236600b857f19a87a0257b9 |
|
BLAKE2b-256 | cedfea54ddfd09fe536405a251b0df54ee075f9594038ee1353329674e7bfe84 |