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.5.tar.gz
(2.5 kB
view details)
File details
Details for the file persiantools-0.0.5.tar.gz
.
File metadata
- Download URL: persiantools-0.0.5.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
40ae1f5f8963782965a0241e8a8f29010990aebe8b76f2d8c7c7306fb8fe1aa0
|
|
MD5 |
10dd91e8999c27eea13ef4c327fa4a41
|
|
BLAKE2b-256 |
e00e1d962a43f57d58d618d0739850ffb4b24c684f8cc02a86e410aeb5492bfc
|