console_color_writer
write lines with color tags !
Installation
pip install console_color_writer
https://pypi.org/project/console-color-writer/
Usage
example:
from console_color_writer import *
print_green('ok','some info text ...')
print_yellow('alert','some info text ...')
print_red('bad','some info text ...')
print_cyan('some info text ... only cyan')
print_magenta('some info text ... only magenta')
print_white('only white text here (super white)')
print('\nhere some tag example:')
print_green_tag('ok','some info text ...')
print_yellow_tag('alert','some info text ...')
print_red_tag('bad','some info text ...')
print('\nthat all ... color makes the world better !')
Get help
Get help ➡️ Github issue
Update log
1.0.0 first release
how to upload a new version (for me)
en: https://packaging.python.org/tutorials/packaging-projects/
zh: https://python-packaging-zh.readthedocs.io/zh_CN/latest/minimal.html#id2
make sure have twine installed first
-
change
setup.py -
testing
py setup.py develop -
py setup.py sdist -
twine upload dist/*
test code :
py
from console_color_writer import *
print_green('ok','some info text ...')
print_yellow('alert','some info text ...')
print_red('bad','some info text ...')
print_cyan('some info text ... only cyan')
print_magenta('some info text ... only magenta')
print_white('only white text here (super white)')
dumb_menu.demo()
Metadata
Release files for console-color-writer 1.0.1
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 |
|---|---|---|---|---|
| console_color_writer-1.0.1.tar.gz | 2.6 kB | Without provenance | Details for console_color_writer-1.0.1.tar.gz |
Release files / console_color_writer-1.0.1.tar.gz
| Download URL | console_color_writer-1.0.1.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
57345aa2deb9ce521a897a9215072c43737680361246ef359e4bde64cd92dc80
|
|
BLAKE2b-256 checksum How to use checksums |
af5e801af3cfe6631ed79203646215f25d50e70e0e7ddfb5fceb2c997788f42b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.0
|
Security for console-color-writer 1.0.1
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.