https://github.com/acifani/boxing
🥊 Draw boxes in the terminal with Python
https://github.com/acifani/boxing
boxes python text
Last synced: 4 months ago
JSON representation
🥊 Draw boxes in the terminal with Python
- Host: GitHub
- URL: https://github.com/acifani/boxing
- Owner: acifani
- License: bsd-3-clause
- Created: 2018-03-31T00:38:46.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-11-12T12:55:16.000Z (over 3 years ago)
- Last Synced: 2024-10-30T08:26:32.251Z (over 1 year ago)
- Topics: boxes, python, text
- Language: Python
- Homepage: https://pypi.org/project/boxing/
- Size: 8.79 KB
- Stars: 7
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
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)``
.. code-block:: python
>>> from boxing import boxing
>>> boxing("Hello, world!")
┌───────────────────┐
│ │
│ Hello, world! │
│ │
└───────────────────┘
>>> boxing("boxing", style="double", padding=2, margin=1)
╔══════════════════╗
║ ║
║ ║
║ boxing ║
║ ║
║ ║
╚══════════════════╝