All Projects → frostming → Python Cfonts

frostming / Python Cfonts

Licence: mit
Sexy fonts for the console

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Python Cfonts

Sqlite Utils
Python CLI utility and library for manipulating SQLite databases
Stars: ✭ 368 (+157.34%)
Mutual labels:  cli, click
Mprislyrics
Small command-line utility that displays lyrics in sync with the currently playing song in a MPRIS2 capable player.
Stars: ✭ 24 (-83.22%)
Mutual labels:  command-line-app, cli
Typer
Typer, build great CLIs. Easy to code. Based on Python type hints.
Stars: ✭ 6,793 (+4650.35%)
Mutual labels:  cli, click
Claws
Awesome WebSocket CLient - an interactive command line client for testing websocket servers
Stars: ✭ 187 (+30.77%)
Mutual labels:  command-line-app, cli
Simple Console
Add an elegant command-line interface to any page
Stars: ✭ 107 (-25.17%)
Mutual labels:  command-line-app, cli
Doitlive
Because sometimes you need to do it live
Stars: ✭ 3,073 (+2048.95%)
Mutual labels:  cli, click
Terjira
Terjira is a very interactive and easy to use CLI tool for Jira.
Stars: ✭ 713 (+398.6%)
Mutual labels:  command-line-app, cli
pyGinit
A simple github automation cli
Stars: ✭ 15 (-89.51%)
Mutual labels:  command-line-app, click
Hopp Doc Gen
📔 API documentation generator CLI for https://hoppscotch.io
Stars: ✭ 70 (-51.05%)
Mutual labels:  command-line-app, cli
Pyinquirer
A Python module for common interactive command line user interfaces
Stars: ✭ 1,151 (+704.9%)
Mutual labels:  command-line-app, cli
Command
A library to build command line applications using PHP
Stars: ✭ 164 (+14.69%)
Mutual labels:  command-line-app, cli
Click
Python composable command line interface toolkit
Stars: ✭ 11,741 (+8110.49%)
Mutual labels:  cli, click
Certigo
A utility to examine and validate certificates in a variety of formats
Stars: ✭ 662 (+362.94%)
Mutual labels:  command-line-app, cli
Pyintelowl
Robust Python SDK and Command Line Client for interacting with IntelOwl's API.
Stars: ✭ 26 (-81.82%)
Mutual labels:  cli, click
Elixir cli spinners
Spinnig Animations for Command Line Applications
Stars: ✭ 117 (-18.18%)
Mutual labels:  command-line-app, cli
Sphinx Click
A Sphinx plugin to automatically document click-based applications
Stars: ✭ 134 (-6.29%)
Mutual labels:  cli, click
Spring Cloud Cli
Spring Cloud CLI features
Stars: ✭ 139 (-2.8%)
Mutual labels:  cli
Swiftplate
Easily generate cross platform Swift framework projects from the command line
Stars: ✭ 1,746 (+1120.98%)
Mutual labels:  cli
Fugu
Swiss Army knife for Docker
Stars: ✭ 139 (-2.8%)
Mutual labels:  cli
Wireless Tools
Wireless tools for Node.js
Stars: ✭ 139 (-2.8%)
Mutual labels:  cli
  ██████╗ ███████╗  ██████╗  ███╗   ██╗ ████████╗ ███████╗
 ██╔════╝ ██╔════╝ ██╔═══██╗ ████╗  ██║ ╚══██╔══╝ ██╔════╝
 ██║      █████╗   ██║   ██║ ██╔██╗ ██║    ██║    ███████╗
 ██║      ██╔══╝   ██║   ██║ ██║╚██╗██║    ██║    ╚════██║
 ╚██████╗ ██║      ╚██████╔╝ ██║ ╚████║    ██║    ███████║
  ╚═════╝ ╚═╝       ╚═════╝  ╚═╝  ╚═══╝    ╚═╝    ╚══════╝

Tests

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.6+

Installation

$ pip install python-cfonts

Usage

Documentation

Command line interface:

usage: cfonts [-h] [-V]
              [-f {console,block,simpleBlock,simple,3d,simple3d,chrome,huge,grid,pallet,shade,slick}]
              [-c COLORS] [-b BACKGROUND] [-a {left,center,right}]
              [-l LETTER_SPACING] [-z LINE_HEIGHT] [-s] [-m MAX_LENGTH]
              [-g GRADIENT] [-i] [-t]
              text

positional arguments:
  text

optional arguments:
  -h, --help            show this help message and exit
  -V, --version         show program's version number and exit
  -f {console,block,simpleBlock,simple,3d,simple3d,chrome,huge,grid,pallet,shade,slick}, --font {console,block,simpleBlock,simple,3d,simple3d,chrome,huge,grid,pallet,shade,slick}
                        Use to define the font face
  -c COLORS, --colors COLORS
                        Use to define the font color
  -b BACKGROUND, --background BACKGROUND
                        Use to define the background color
  -a {left,center,right}, --align {left,center,right}
                        Use to align the text output
  -l LETTER_SPACING, --letter-spacing LETTER_SPACING
                        Use to define the letter spacing
  -z LINE_HEIGHT, --line-height LINE_HEIGHT
                        Use to define the line height
  -s, --spaceless       Use to define the background color
  -m MAX_LENGTH, --max-length MAX_LENGTH
                        Use to define the amount of maximum characters per
                        line
  -g GRADIENT, --gradient GRADIENT
                        Define gradient colors(separated by comma)
  -i, --independent-gradient
                        Set this option to re-calculate the gradient colors
                        for each new line.Only works in combination with the
                        gradient option.
  -t, --transition-gradient
                        Set this option to generate your own gradients. Each
                        color set in the gradient option will then be
                        transitioned to directly.

Or generate the fonts pragramatically:

from cfonts import render, say

output = render('Hello world', colors=['red', 'yellow'], align='center')
print(output)

Supported Characters

A O 2 2 =
B P 3 3 @
C Q 4 4 #
D R 5 5 $
E S 6 6 %
F T 7 7 &
G U 8 8 (
H V 9 9 )
I W ! ! /
J X ? ? :
K Y . . ;
L Z + + ,
M 0 - - '
N 1 _ _ `` (space)
"

Contributing

python-cfonts is managed by pdm, first install it:

pipx install pdm

Then, install a dependencies:

pdm install -d

Run tests:

$ pdm run pytest tests

License

The project is originated by @dominikwilkowski, under GPLv2 license. Ported by @frostming, under MIT license. See LICENSE for details

Changelog

  • v1.4.0 Officially drop support of Python 3.5
  • v1.3.1 Fix the sdist.
  • v1.3.0 Relicense to MIT.
  • v1.2.0 Add font tiny.
  • v1.1.0 Switch to argparse to drop dependency click.
  • v1.0.0 Support gradient colors and transition gradient.
  • v0.5.0 Add four new fonts and double quote as supported charater.
  • v0.3.1 Fix a bug that the background doesn't span the full width.
  • v0.3.0 Supports Python 2.7.
  • v0.2.0 Initial commit and testing.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].