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: راک
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
persiantools-0.0.3.tar.gz
(2.4 kB
view details)
File details
Details for the file persiantools-0.0.3.tar.gz.
File metadata
- Download URL: persiantools-0.0.3.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5620057209eab84eafaa16bbcaa50fd27d360480aaab7ac885f965229c593c80
|
|
| MD5 |
030fb2d7600f2ac5b99911f22461e650
|
|
| BLAKE2b-256 |
d976f9aab848270c14e81ef30f7412e06a07055ff5385b6966f016fd2d9e9a83
|