Skip to main content

console_color_writer

Downloads

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 !')

Imgur

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

  1. change setup.py

  2. testing py setup.py develop

  3. py setup.py sdist

  4. 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()

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

console_color_writer-1.0.1.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file console_color_writer-1.0.1.tar.gz.

File metadata

  • Download URL: console_color_writer-1.0.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.0

File hashes

Hashes for console_color_writer-1.0.1.tar.gz
Algorithm Hash digest
SHA256 57345aa2deb9ce521a897a9215072c43737680361246ef359e4bde64cd92dc80
MD5 27ed981b426b6ae6c3ed510117b58f18
BLAKE2b-256 af5e801af3cfe6631ed79203646215f25d50e70e0e7ddfb5fceb2c997788f42b

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 file

1.0.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page