Skip to content

Commit

Permalink
master
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhijithAJ committed Sep 24, 2020
1 parent 00c95df commit 2a9d6a3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions clrprint/clrprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def clrhelp() -> None:
clrprint("Colors available:",clr='default')
for clr in colormap:
clrprint('\t',clr,clr=clr)

DEBUG = True
clrprint("How to use: ",clr='g')
usage ='''
It is as simple as using 'print' and 'input' functions with an
Expand All @@ -87,8 +87,12 @@ def clrhelp() -> None:
clrprint("\tclrinput('your text',clr='g')",clr='g')
clrprint("\n\tPrint","Multi","colors","in","single","line with:",clr=['r','y','g','b'])
clrprint("\t\tEx: clrprint('tex_clr1','tex_clr2',clr=['r','g'])",clr='g')
clrprint("\n\tPrint output only when debuging with debug param: ",clr='b')
clrprint("\t\tEx: clrprint('Error: ',clr='y',debug=True)",clr='g',debug=DEBUG)
clrprint('\n\tTake user input on debug else take default value: ',clr='b')
clrprint("\t\tEx: num = clrinput('Num: ',clr='y',debug=True) or default ",clr='g',debug=DEBUG)



def clrprint(*text, clr="default", end:str="\n",sep:str=' ',debug=True) -> None:
'''
take *text and print with given color/s
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
name='clrprint',
license="MIT",
description='Print color output in IDLE, powershell, and terminal',
version='v1.0',
version='v1.0.1',
long_description_content_type='text/markdown',
long_description=README,
keywords=['basic colors', 'color print', 'cmd', 'color idle', 'color terminal',
'color powershell', 'color idle and terminal', 'color idle, cmd, powershell'],
url='https://github.com/AbhijithAJ/clrprint',
download_url='https://github.com/AbhijithAJ/clrprint/archive/V1.0.tar.gz',
download_url='https://github.com/AbhijithAJ/clrprint/archive/v1.0.1.tar.gz',
packages=['clrprint'],
python_requires=">=3.2",
install_requires=['termcolor', 'colorama'],
Expand Down

0 comments on commit 2a9d6a3

Please sign in to comment.