Skip to content

acifani/boxing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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      β•‘
    β•‘                  β•‘
    β•‘                  β•‘
    β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•