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.0.tar.gz (8.2 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.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: persian_figlet-0.1.0.tar.gz
  • Upload date:
  • Size: 8.2 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.0.tar.gz
Algorithm Hash digest
SHA256 7a4cd62e2f53e87025e3c299c265584fa8ac37a9f8c590b4d6a5f75cc97916a0
MD5 3ec68319705cf3cdca4d9b4638d5e606
BLAKE2b-256 3652274fc615abe9f3be6cb2e4fabfbd95b584281b8575f08f2ecf68e584ab1f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: persian_figlet-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.4 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ebd4917aa7f593b1ca4f8a500f0b773890855aedf24364ac111a6acded960dd2
MD5 e4349bf38ac9a0d2f904d972bdb3e313
BLAKE2b-256 0393ddbf76a09c46b059bc669a73eff007a6d4b9920ac442e88b977f1f332b2a

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