Skip to main content

Convert persian text to ascii art

Project description

Araste

making ascii-art out of Persian/Arabic text

Similar to the figlet and toilet tools, but for Persian and Arabic texts.

usage:

araste <your text>

use -f switch to choose font

araste 'your persian/arabic text' -f 'fontpath or fontname'

to get a list of installed fonts:

araste --list

for now, there are a few fonts that you can use:

aipara
aipara_mini
zivar
nima

it can also read text from stdin. so you can do something like this:

echo 'آراسته' | araste

to get help:

araste -h

an output with the default font (aipara):

                                      ██████
        ████                ██        ██
  ████                      ██          ██
  ████    ██    ██  ██  ██  ██    ██    ██
    ██████████████████████  ██    ██    ██
                                  ██
                                ██

filters

araste has various filters for decorating the output. use filters with -F switch.

for instance, you can use rainbow filter like this:

$ araste 'colorful text' -F rainbow

also you can concatenate several filters. to do so, just type their names one by one after -F switch.

for instance:

$ araste نوشته -F hmirror box

output:

╔════════════════════════════════════╗
║              ██                    ║
║██            ████      ████        ║
║                              ████  ║
║██  ████  ██  ██  ██    ██    ████  ║
║████████  ██████████████████████    ║
║    ██                              ║
║      ██                            ║
║                                    ║
╚════════════════════════════════════╝

to get a list of available filters, use --filter-list switch:

$ araste --filter-list

Install and Usage

for installing you only need to execute following command.

pip install araste

Note: if you get the following error: externally-managed-environment, you can install araste using pipx (Make sure that python-pipx is installed on your system.)

pipx install araste
  1. or to build it yourself:
git clone 'https://github.com/ekm507/araste/'
cd araste
python3 setup.py bdist_wheel
pip install ./dist/araste-1.2.1-py3-none-any.whl

Instaling Fonts

For Installing Fonts You Can Use araste-get

araste-get FontName

Unistall

to uninstall araste, simply use pip.

pip uninstall araste

Or pipx:

pipx uninstall araste

Creating New Fonts!

To get additional fonts for araste or to create your own custom fonts, use tools and manuals in araste-fonts repo.

Todos

Todos have been moved to a separate file. TODOS

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

araste-3.3-py3-none-any.whl (49.1 kB view details)

Uploaded Python 3

File details

Details for the file araste-3.3-py3-none-any.whl.

File metadata

  • Download URL: araste-3.3-py3-none-any.whl
  • Upload date:
  • Size: 49.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for araste-3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 04f6bd4a68290b935bb5ee19c5b055faabcc6c9d79577b9eb9390c3c9b29388b
MD5 a0bbc31a80aff0b629ef8e39f437a4b4
BLAKE2b-256 dc1401a857e753bddfbcacae278f032b637cf822654d09c6a0708e5da95cb2d0

See more details on using hashes here.

Supported by

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