Sexy fonts for the console
Project description
██████╗ ███████╗ ██████╗ ███╗ ██╗ ████████╗ ███████╗
██╔════╝ ██╔════╝ ██╔═══██╗ ████╗ ██║ ╚══██╔══╝ ██╔════╝
██║ █████╗ ██║ ██║ ██╔██╗ ██║ ██║ ███████╗
██║ ██╔══╝ ██║ ██║ ██║╚██╗██║ ██║ ╚════██║
╚██████╗ ██║ ╚██████╔╝ ██║ ╚████║ ██║ ███████║
╚═════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═╝ ╚══════╝
This is a Python port of cfonts. Thanks for the original code and beautiful console fonts!
NOTE: This project supports Python 2.7+ and 3.4+
Installation
$ pip install python-cfonts
Usage
Command line interface:
$ cfonts --help
Usage: cfonts [OPTIONS] TEXT
This is a tool for sexy fonts in the console. Give your cli some love.
Options:
--version Show the version and exit.
-m, --max-length INTEGER Use to define the amount of maximum
characters per line
-s, --spaceless Use to disable the padding around your
output
-z, --line-height INTEGER Use to define your line height
-l, --letter-spacing INTEGER Use to define your letter spacing
-a, --align [left|center|right]
Use to align your text output
-b, --background [transparent|black|red|green|yellow|blue|magenta|cyan|white|bright_black|bright_red|bright_green|bright_yellow|bright_blue|bright_magenta|bright_cyan|bright_white]
Use to define the background color
-c, --colors TEXT Use to define the font color
-f, --font [console|block|simpleBlock|simple|3d|simple3d|chrome|huge]
Use to define the font face
--help Show this message and exit.
Or generate the fonts pragramatically:
from cfonts import render, say
output = render('Hello world', colors=['red', 'yellow'], align='center')
print(output)
Tests
$ pipenv run pytest
License
The project is originated by @dominikwilkowski, under GPLv2 license. Ported by @frostming, under GPLv2 license. See LICENSE for details
Changelog
- v0.3.0 Supports Python 2.7
- v0.2.0 Initial commit and testing
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python-cfonts-0.3.0.tar.gz
(23.6 kB
view hashes)
Built Distribution
Close
Hashes for python_cfonts-0.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 472232f741998a72237db17d4f38e13766a75372152c45f9c4119f23463bb5cf |
|
MD5 | 1d057ac465cb7d4c17c58da862fb3f95 |
|
BLAKE2b-256 | 4f8c285bfdeaeed21c78f740759546d6e4cdc9e5129321c37bcb90d96497c49a |