Skip to content
/ Badges Public

Badges is a Python3 library that is used for advanced and intuitive printing.

License

Notifications You must be signed in to change notification settings

EntySec/Badges

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Badges

Developer Language Forks Stars CodeFactor

Badges is a Python3 library that is used for advanced and intuitive printing.

Features

  • 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.

Installation

pip3 install git+https://github.com/EntySec/Badges

Examples

Status messages

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...

Map plotting

from badges import Badges

plot = Map()
plot.deploy(55.751244, 37.618423)

print(plot.get_map())
Result
                       . _..::__:  ,-"-"._       |7       ,     _,.__
       _.___ _ _<_>`!(._`.`-.    /        _._     `_ ,_/  '  '-._.---.-.__
     .{     " " `-==,',._\{  \  / {)     / _ ">_,-' `                .--?_
      \_.:--.       `._ )`^-. "'      , [_/(                       __,/-'
     '"'     \         "    _L       oD_,--' *              )     /. (|
              |           ,'         _)_.\\._<> 6              _,' /  '
              `.         /          [_/_'` `"(                <'}  )
               \\    .-. )          /   `-'"..' `:._          _)  '
        `        \  (  `(          /         `:\  > \  ,-^.  /' '
                  `._,   ""        |           \`'   \|   ?_)  {\
                     `=.---.       `._._       ,'     "`  |' ,- '.
                       |    `-._        |     /          `:`<_|h--._
                       (        >       .     | ,          `=.__.`-'\
                        `.     /        |     |{|              ,-.,\     .
                         |   ,'          \   / `'            ,"     \
                         |  /             |_'                |  __  /
                         | |                                 '-'  `-'   \.
                         |/                                        "    /
                         \.                                            '

Tables

from badges import Tables

tables = Tables()
tables.print_table('Table 1', ('ID', 'Name'), ('111', 'Ivan Nikolskiy'))
Result
Table 1:
ID Name 111 Ivan Nikolskiy

About

Badges is a Python3 library that is used for advanced and intuitive printing.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages