This release is a pre-release and may not be stable for production use.
Coloform
Similar to colorama by Jonathan Hartley this project aims to provide a simple interface for coloring terminal output, contrary to colorama it doesn't try to provide support for Windows.
If you need Windows support, or run this on something other than a mainstream terminal emulator, this is probably not for you.
Concept
Usage is very similar to colorama, you have objects for foreground, background, styles and cursor.
These are prefixed with Rich, to differentiate them from the colorama objects (if for some reason you have to, like me, have both packages available).
Coloramas Cursor is unchanged and available for convenience.
from coloform import Fore, Back, Style
msg = (
f"Look ma: {Style.UNDERLINED}more{Style.RESET_UNDERLINED} {Style.ITALICS}styles{Style.RESET_ITALICS}, "
f"than we {Style.BOLD}ever{Style.RESET_ALL} "
f"{Style.STRIKE_OUT}wanted{Style.RESET_STRIKE_OUT} "
f"{Style.BLINK}needed{Style.RESET_BLINK}!\n"
f"Also, {Fore.HEX_1234FF}HEX{Fore.RESET} and {Fore.RGB_0_255_255}RGB{Fore.RESET} "
f"colors for {Style.DOUBLE_UNDERLINED}fore- and {Back.RGB_255_0_255}background{Style.RESET_ALL}.\n"
f"Common {Fore.RED}aliases {Back.GREEN}just{Fore.RESET} work!{Style.RESET_ALL}"
)
print(msg)
Features loads of useless aliases (Style.UNDERLINE == Style.UNDERLINED etc.).
Why
Because it's not the 90s anymore, and screw compatibility. Also, I like to see bad UI design in terminals, and this is my contribution towards that.
Thanks
Thanks to Sascha Peilicke for his documentation work around ANSI escape codes.
Metadata
Release files for coloform 0.0.1a8
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 |
|---|---|---|---|---|
| coloform-0.0.1a8.tar.gz | 110.3 kB | With provenance | Details for coloform-0.0.1a8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| coloform-0.0.1a8-py3-none-any.whl | Python 3 | none | any | Details for coloform-0.0.1a8-py3-none-any.whl |
Total release size: 115.4 kB
Release files / coloform-0.0.1a8.tar.gz
| Download URL | coloform-0.0.1a8.tar.gz |
|---|---|
| Size | 110.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f05ce61b54332acc81b3891234e39a833beaf3938bc5abb1357df6dd63f34ead
|
|
BLAKE2b-256 checksum How to use checksums |
3830321fb672ac1a2396a66b0070a9f9a04cd029d145709cdac732fb64a48d09
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 20, 2025.
Transparency logRelease files / coloform-0.0.1a8-py3-none-any.whl
| Download URL | coloform-0.0.1a8-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
263183c2de0d4c66e78e705f02f0915f8681ed7d14e204b67a0d0a6772eabc48
|
|
BLAKE2b-256 checksum How to use checksums |
ee2e23ffb39429c46077e29f5f8a5049d6e2fa92308a7e0a1e9fac63d6417548
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 20, 2025.
Transparency logSecurity for coloform 0.0.1a8
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for coloform-0.0.1a8.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 20, 2025.
Transparency logA 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.