Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amishbni/dpern
Describe PERsian Numbers
https://github.com/amishbni/dpern
farsi number numbers persian persian-language python python-library
Last synced: 3 months ago
JSON representation
Describe PERsian Numbers
- Host: GitHub
- URL: https://github.com/amishbni/dpern
- Owner: amishbni
- Created: 2020-05-18T14:13:07.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-17T05:24:01.000Z (over 4 years ago)
- Last Synced: 2024-07-10T23:44:34.236Z (4 months ago)
- Topics: farsi, number, numbers, persian, persian-language, python, python-library
- Language: Python
- Homepage: https://pypi.org/project/dpern/
- Size: 5.86 KB
- Stars: 15
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DPERN - Describe PERsian Numbers
## Installation
```bash
pip install dpern
```## Usage
If you want to use it in a module, you need to import it like this:
```python
from dpern import dpern
```And use it like this:
```python
print(dpern.describe(53523))
# پنجاه و سه هزار و پانصد و بیست و سهprint(dpern.describe("35"))
# سی و پنجprint(dpern.describe("۹۹۹"))
# نهصد و نود و نه
```If you want to use it in the command line, make sure to install it
with `--user` flag:```bash
pip install dpern --user
```Then you can run it like this:
```bash
$ python -m dpern 10
ده$ python -m dpern ۱۲۸
صد و بیست و هشت
```