print color
v0.4.6
from print_color import print
print ( "Hello world" , tag = 'success' , tag_color = 'green' , color = 'white' ) 인쇄 색상은 파이썬의 터미널 색상 인쇄에 대한 최소한의 접근 방식입니다. print() 함수 주변의 래퍼이며 다음과 같은 추가 선택 매개 변수를 제공 할 수 있습니다.
tagtag_color 또는 tag_colourtag_formatcolor 또는 colourbackgroundformat응용 프로그램을위한 사용자 정의 가능한 로거가되고, 형식 경고, 정보 메시지 및 오류를 산들 바람으로 만듭니다.
이 프로젝트에는 테스트를 위해 pytest 제외하고 의존성이 없습니다.
PYPI 에서이 프로젝트를 확인하십시오.
그림 물감:
purple
blue
green
yellow
red
magenta
cyan
white
black
tagtag_color 또는 tag_colourcolor 또는 colourbackgroundformatpip3 install print-color from print_color import print
print ( "Hello world" , tag = 'success' , tag_color = 'green' , color = 'white' ) print ( "Error detected" , tag = 'failure' , tag_color = 'red' , color = 'magenta' ) print ( "Printing in color" , color = 'green' , format = 'underline' , background = 'grey' )이 프로젝트를 추가하거나 개선하십시오. :) 풀 요청을 작성하고 제안한 변경 사항을 설명하십시오. 이것은 매우 간단한 프로젝트이므로 기능 요청은 최소화되어야합니다. 더 많은 색상, 형식 등과 같은 것들이 이상적입니다.
파이썬 시로 제작되었습니다.