Skip to main content
PersianTools
===
[![pypi-ver](https://img.shields.io/pypi/v/persiantools.svg)](https://pypi.python.org/pypi/persiantools)
[![travic-build](https://travis-ci.org/mhajiloo/persiantools.png?branch=master)](https://travis-ci.org/mhajiloo/persiantools)
[![Coverage Status](https://coveralls.io/repos/github/mhajiloo/persiantools/badge.svg?branch=master)](https://coveralls.io/github/mhajiloo/persiantools?branch=master)
[![python-ver](https://img.shields.io/pypi/pyversions/persiantools.svg )](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: راک
```

Metadata

Release files for persiantools 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for persiantools 0.0.5
File Size Uploaded Provenance
persiantools-0.0.5.tar.gz 2.5 kB Without provenance Details

Release files / persiantools-0.0.5.tar.gz

Download URL persiantools-0.0.5.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
40ae1f5f8963782965a0241e8a8f29010990aebe8b76f2d8c7c7306fb8fe1aa0
BLAKE2b-256 checksum
How to use checksums
e00e1d962a43f57d58d618d0739850ffb4b24c684f8cc02a86e410aeb5492bfc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for persiantools 0.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.5 This release

1 release file No provenance

0.0.2

0.0.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page