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

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

araste-3.2-py3-none-any.whl (41.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: araste-3.2-py3-none-any.whl
  • Upload date:
  • Size: 41.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for araste-3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e0eb32010cc077e874cfef40bd59a306c67cc3ce0a13f89f0110b1b458aef736
MD5 f1f3718bcf17ef396580ae88e233f36e
BLAKE2b-256 983e50441ce4a077d729636e7296804d952e0bbdbc4a161e9aa98734d06020ee

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