https://github.com/entysec/badges
Badges is a Python3 library that is used for advanced and intuitive printing.
https://github.com/entysec/badges
Last synced: 9 months ago
JSON representation
Badges is a Python3 library that is used for advanced and intuitive printing.
- Host: GitHub
- URL: https://github.com/entysec/badges
- Owner: EntySec
- License: mit
- Created: 2023-06-22T09:33:52.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-12T11:21:43.000Z (11 months ago)
- Last Synced: 2025-03-28T02:22:14.762Z (10 months ago)
- Language: Python
- Size: 173 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Badges
[](https://entysec.com)
[](https://github.com/EntySec/Badges)
[](https://github.com/EntySec/Badges/forks)
[](https://github.com/EntySec/Badges/stargazers)
[](https://www.codefactor.io/repository/github/EntySec/Badges)
Badges is a Python3 library that is used for advanced and intuitive printing.
## Features
* Support for different colors using [ColorScript](https://github.com/EntySec/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
```python3
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
```python3
from badges import Map
plot = Map()
plot.deploy(55.751244, 37.618423)
print(plot.get_map())
```
Result
. _..::__: ,-"-"._ |7 , _,.__
_.___ _ _<_>`!(._`.`-. / _._ `_ ,_/ ' '-._.---.-.__
.{ " " `-==,',._\{ \ / {) / _ ">_,-' ` .--?_
\_.:--. `._ )`^-. "' , [_/( __,/-'
'"' \ " _L oD_,--' * ) /. (|
| ,' _)_.\\._<> 6 _,' / '
`. / [_/_'` `"( <'} )
\\ .-. ) / `-'"..' `:._ _) '
` \ ( `( / `:\ > \ ,-^. /' '
`._, "" | \`' \| ?_) {\
`=.---. `._._ ,' "` |' ,- '.
| `-._ | / `:`<_|h--._
( > . | , `=.__.`-'\
`. / | |{| ,-.,\ .
| ,' \ / `' ," \
| / |_' | __ /
| | '-' `-' \.
|/ " /
\. '
### Tables
```python3
from badges import Tables
tables = Tables()
tables.print_table('Table 1', ('ID', 'Name'), ('111', 'Ivan Nikolskiy'))
```
Result
Table 1:
ID Name
111 Ivan Nikolskiy