Python Library for Persian
Project description
PersianTools
===
[](https://pypi.python.org/pypi/persiantools)
[](https://travis-ci.org/mhajiloo/persiantools)
[](https://coveralls.io/github/mhajiloo/persiantools?branch=master)
[](https://pypi.python.org/pypi/persiantools)
Python Library for Persian. Convert Arabic character to Persian
### Install Package
```
pip install persiantools
```
### How to use
```python
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: راک
```
===
[](https://pypi.python.org/pypi/persiantools)
[](https://travis-ci.org/mhajiloo/persiantools)
[](https://coveralls.io/github/mhajiloo/persiantools?branch=master)
[](https://pypi.python.org/pypi/persiantools)
Python Library for Persian. Convert Arabic character to Persian
### Install Package
```
pip install persiantools
```
### How to use
```python
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: راک
```