tbraille

Figlet/Toilet using braille characters.


Keywords
braille, cli, figlet, toilet
License
MIT
Install
pip install tbraille==1.2.4

Documentation

⣀⣀⣀⣀⣀⣀⢠⣤⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢰⣶⡆⠀⢠⣤⣤⡄⠀⠀⢠⣤⣤⡄
⠉⠉⣿⣿⠉⠉⢸⣿⣤⣤⣤⡀⠀⣤⣄⣤⣤⡄⢀⣤⣤⣤⣤⠀⢠⣤⣤⣤⡄⠀⠀⠀⣿⡇⠀⠀⠀⠀⣿⡇⠀⠀⠀⣠⣤⣤⣤⡀
⠀⠀⣿⣿⠀⠀⢸⣿⠋⠉⣿⡇⠀⣿⡿⠉⠉⠁⢀⣩⣭⣽⣿⡇⠀⠀⢸⣿⡇⠀⠀⠀⣿⡇⠀⠀⠀⠀⣿⡇⠀⠀⢸⣿⣭⣭⣿⡇
⠀⠀⣿⣿⠀⠀⢸⣿⣷⣶⣿⠇⠀⣿⡇⠀⠀⠀⠸⣿⣿⣿⣿⡇⠀⠀⢸⣿⡇⠀⠀⠀⢿⣷⣶⡆⠀⠀⢿⣷⣶⡆⠘⢿⣶⣶⣶⠆

tbraille — Toilet/Figlet-like CLI tool

Installation and Usage

$ pip install tbraille
$ tbraille -f NotoMono-Regular -s 20 "¡Apagando las luces!"

⠀⠀⠀⠀⠀⠀⠀⠀⣶⣶⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠛⢻⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠛⢻⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢶⡶
⠀⠀⠿⠿⠀⠀⠀⣸⡟⢿⣇⠀⢸⣿⠟⠻⣿⡄⠀⠿⠛⠻⣿⡀⢠⣿⠛⢻⣿⠃⠀⠿⠛⠻⣿⡀⢸⣿⠟⠛⣿⡄⢠⣿⠟⠻⣿⡇⢠⣾⠟⠻⣷⡄⠀⠀⠀⠀⠀⠀⠀⠀⢸⡇⠀⠀⠀⠿⠛⠻⣿⡀⠀⣾⡟⠛⠿⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⡇⠀⠀⢸⣿⠀⠀⣿⡇⢀⣾⠟⠛⠻⠃⢠⣾⠟⠛⣿⡆⠀⣾⡟⠛⠿⠀⠀⠀⢸⡇
⠀⠀⢰⡆⠀⠀⢠⣿⠷⠾⣿⡄⢸⣿⠀⠀⣿⡇⢰⣿⠛⢛⣿⡇⠈⣿⡶⠾⠟⠀⢰⣿⠛⢛⣿⡇⢸⣿⠀⠀⣿⡇⢸⣿⠀⠀⣿⡇⢸⣯⠀⠀⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⢸⡇⠀⠀⢰⣿⠛⢛⣿⡇⠀⠙⠻⢿⣶⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⡇⠀⠀⢸⣿⠀⠀⣿⡇⢸⣿⡀⠀⠀⠀⢸⣿⠛⠛⠛⠃⠀⠙⠻⢿⣶⠀⠀⠀⠸⠇
⠀⠀⢸⡇⠀⠀⠾⠏⠀⠀⠹⠷⢸⣿⠷⠾⠿⠁⠘⠿⠶⠾⠿⠇⢠⣿⠿⠶⣶⡆⠘⠿⠶⠾⠿⠇⠸⠿⠀⠀⠿⠇⠈⠿⠷⠾⠿⠇⠈⠻⠷⠾⠟⠁⠀⠀⠀⠀⠀⠀⠰⠶⠾⠷⠶⠆⠘⠿⠶⠾⠿⠇⠸⠷⠶⠾⠟⠀⠀⠀⠀⠀⠀⠀⠰⠶⠾⠷⠶⠆⠘⠿⠶⠾⠿⠇⠀⠻⠷⠶⠾⠇⠈⠻⠷⠶⠾⠇⠸⠷⠶⠾⠟⠀⠀⠀⠿⠿
⠀⠀⠾⠷⠀⠀⠀⠀⠀⠀⠀⠀⠸⠿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⠷⠤⠤⠾⠇

Use as library

>>> from tbraille.board import Board
>>> board = Board(10, 10)
>>> for i in range(10):
...     board[i, i] = 1
...
>>> print(str(board))
⠑⢄
⠀⠀⠑⢄
⠀⠀⠀⠀⠑