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. Python port of moh3n9595/persian-figlet.

Install

pip install persian-figlet

Usage

CLI

persian-figlet "سلام"

Options:

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

API

from persian_figlet import render

# Prints to stdout
render("سلام")

# Returns the ASCII art string
art = render("سلام", silent=True)

Development

  • Install dev tools: python -m pip install -e .[dev] (or just pip install -e . if you only need the package).
  • Run tests: python -m pytest

License

MIT License. Original work by Mohsen Madani; Python port by Hamidreza Sadeghi.

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.2.tar.gz (8.3 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.2-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: persian_figlet-0.1.2.tar.gz
  • Upload date:
  • Size: 8.3 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.2.tar.gz
Algorithm Hash digest
SHA256 905976d112bd27eb67300f7c49b3bcd61308562253320be5651b00c87438398d
MD5 00d428e93104211e1f25b038b37d6d3a
BLAKE2b-256 1b5921cc98feda94df60c7ecae5ab8abed8ee47daad2fb78762f4be32fdafff8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: persian_figlet-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 900ad4736948cd50ec300076a3b4d8f05e105e89dd0f8759d19f781468f606a7
MD5 b37c231a20d714890398e4f08cc6d1e2
BLAKE2b-256 028f6d5a8e45c20759610b668cdda1910932f2dea648393d081195884e0ecfce

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