Skip to main content

Python Library for Persian

Project description

[![Coverage Status](](
[![python-ver]( )](

Python Library for Persian. Convert Arabic character to Persian

### Install Package
pip install persiantools

### How to use
from persiantools import characters
from persiantools import digits

digits.en_to_fa("0987654321") # return: ۰۹۸۷۶۵۴۳۲۱
digits.ar_to_fa("٠٩٨٧٦٥٤٣٢١") # return: ۰۹۸۷۶۵۴۳۲۱

characters.ar_to_fa("علي") # return: علی
characters.ar_to_fa("راك") # return: راک

Project details

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page