pip install ctprintor
poetry add ctprintfrom ctprint import ctp, ctdecode, cterr, ctlog # callableprint colored and some interactive help-message. nothing return
ctp.help() # print help messageobj of ctprint. decode <tags> in the strings and print it. nothing return
# decode <tags> and then print the string
ctp('<bw> black text on white background /> default formating')decode <tags> in the strings and return it decoded
# decode <tags> in the strings and return decoded string
string0 = ' background /> default'
string1 = ' formating'
ctdecode('<bw> black text on white', string0, string1)return string
exception required. print colored error message from try/except. nothing return
try:
1/0 # any broken line
except Exception as _ex:
cterr(_ex)vars required. print colored message with names $ values of all **vars. nothibg return
var0 = var1 = 0
def example_ctlog():
var2 = 'string val'
var3 = {'ctp_string': '<bg_red><red>red text on red background (NO) >'}
# out of the function, var0=var2 - nothing problems.
ctlog(var0=var0, var1=var1, var2=var2, var3=var3)



![ctp.help() output[1]](https://user-images.githubusercontent.com/31666804/154970079-d4f150fe-fa74-466c-8e57-576c6b5cb0ce.png)
![ctp.help() output[2]](https://user-images.githubusercontent.com/31666804/154970102-ea031f0e-a836-47c8-bf0d-7235a8937f6f.png)