Skip to main content

banner_kimwonjoon

pyfiglet

    ____       __            __     __
   /  _/  ____/ /___  ____  / /_   / /______  ____ _      __
   / /   / __  / __ \/ __ \/ __/  / //_/ __ \/ __ \ | /| / /
 _/ /   / /_/ / /_/ / / / / /_   / ,< / / / / /_/ / |/ |/ /
/___/   \__,_/\____/_/ /_/\__/  /_/|_/_/ /_/\____/|__/|__/

Usage

You can use pyfiglet in one of two ways. First, it operates on the commandline as C figlet does and supports most of the same options. Run with --help to see a full list of tweaks. Mostly you will only use -f to change the font. It defaults to standard.flf.

tools/pyfiglet 'text to render'

Pyfiglet is also a library that can be used in python code:

from pyfiglet import Figlet
f = Figlet(font='slant')
print(f.renderText('I dont know'))

or

import pyfiglet
f = pyfiglet.figlet_format("I dont know", font="slant")
print(f)

If you want to watch ASCII Art

$ kimwonjoon-pic
        .   ,, _
      /     `、
      /     ● ╮
     / ●     💧 l
     l 💧 し  💧 |
     l 💧 __,,ノ 💧l
      \💧_´' ̄´_💧/
    .   /💧   ̄ 💧 ╮
      / 💧   💧 .╮
    . |  💧    .|

로또 번호가 필요하다면? If you need LOTTO numbers

$ kimwonjoon-lotto
로또 번호 : [3, 6, 15, 17, 31, 45]

If you have found some new fonts that you want to use, you can use the command line interface to install your font file as follows:

pyfiglet -L <font file>

The font file can be a ZIP file of lots of fonts or just a single font. Depending on how you installed pyfiglet, you may find that you need root access to install the font - e.g. sudo pyfiglet -L <font file>.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

banner_kimwonjoon-0.5.1.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

banner_kimwonjoon-0.5.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

Release history Release notifications | RSS feed

This release

0.5.1 This release

2 files

0.5.0

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page