Badges is a Python3 library that is used for advanced and intuitive printing.
- Support for different colors using ColorScript commands.
- Map plotting that enables you to point on a specific place on an ASCII map.
- Logging support, if logging is enabled, you can log all the messages to the file.
pip3 install git+https://github.com/EntySec/Badges
from badges import Badges
badges = Badges()
reply = badges.input_question("Do it [y/N]: ")
if reply.lower() in ['y', 'yes']:
badges.print_process("Doing it...")
else:
badges.print_warning("Not doing it.")
Result
[?] Do it [y/N]: y [*] Doing it...
from badges import Map
plot = Map()
plot.deploy(55.751244, 37.618423)
print(plot.get_map())
Result
. _..::__: ,-"-"._ |7 , _,.__ _.___ _ _<_>`!(._`.`-. / _._ `_ ,_/ ' '-._.---.-.__ .{ " " `-==,',._\{ \ / {) / _ ">_,-' ` .--?_ \_.:--. `._ )`^-. "' , [_/( __,/-' '"' \ " _L oD_,--' * ) /. (| | ,' _)_.\\._<> 6 _,' / ' `. / [_/_'` `"( <'} ) \\ .-. ) / `-'"..' `:._ _) ' ` \ ( `( / `:\ > \ ,-^. /' ' `._, "" | \`' \| ?_) {\ `=.---. `._._ ,' "` |' ,- '. | `-._ | / `:`<_|h--._ ( > . | , `=.__.`-'\ `. / | |{| ,-.,\ . | ,' \ / `' ," \ | / |_' | __ / | | '-' `-' \. |/ " / \. '
from badges import Tables
tables = Tables()
tables.print_table('Table 1', ('ID', 'Name'), ('111', 'Ivan Nikolskiy'))
Result
Table 1:
ID Name 111 Ivan Nikolskiy