acifani / boxing

πŸ₯Š Draw boxes in the terminal with Python

Home Page:https://pypi.org/project/boxing/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

boxing

Draw boxes like never before! Python porting of boxen.

Install

pip install boxing

or

pipenv install boxing

Usage

boxing(text, style='single', margin=1, padding=1)

>>> from boxing import boxing
>>> boxing("Hello, world!")

    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
    β”‚                   β”‚
    β”‚   Hello, world!   β”‚
    β”‚                   β”‚
    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

>>> boxing("boxing", style="double", padding=2, margin=1)

    ╔══════════════════╗
    β•‘                  β•‘
    β•‘                  β•‘
    β•‘      boxing      β•‘
    β•‘                  β•‘
    β•‘                  β•‘
    β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

About

πŸ₯Š Draw boxes in the terminal with Python

https://pypi.org/project/boxing/

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%