Skip to main content

Figlet-style ASCII art for Persian text (Python port of moh3n9595/persian-figlet)

Project description

Persian Figlet (Python)

Figlet-style ASCII art for Persian (Farsi) text with contextual shaping and RTL handling. This is a Python port of moh3n9595/persian-figlet.

Install

pip install .

or for development:

pip install -e .

Usage

API

from persian_figlet import render

render("سلام")              # prints to stdout
art = render("سلام", silent=True)  # returns the ASCII art string

CLI

persian-figlet "سلام"

Options:

  • --font standard – font name or path to a JSON font file
  • --silent – suppress console output

Development notes

  • The renderer logic is a direct port of the TypeScript implementation; tests can be added with pytest.

License

MIT License. Original work by Mohsen Madani; Python port by Hamid.

Project details


Download files

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

Source Distribution

persian_figlet-0.1.1.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

persian_figlet-0.1.1-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file persian_figlet-0.1.1.tar.gz.

File metadata

  • Download URL: persian_figlet-0.1.1.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for persian_figlet-0.1.1.tar.gz
Algorithm Hash digest
SHA256 53189cbb094ec94f22d20f0c313cff82135b91dbf08c4d4fdea4ceb89fcc9447
MD5 b49f29e76912d71738d71be5523e50de
BLAKE2b-256 7ce6381ee514d1a5285d113a8bd08a6a784ace0e32984282e757437f8b4d4b19

See more details on using hashes here.

File details

Details for the file persian_figlet-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: persian_figlet-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for persian_figlet-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 67a9baae3d82abdeab4e492bba74a7174988612ad1ec8042815f56aa7e22a61c
MD5 51df9e15f8fc96d7ed48b7041ece5ebd
BLAKE2b-256 095ec592c9c9e2d4dc28f352b3121eeeda6704c7b11b566149e8892cb100432c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page