Describe PERsian Numbers
Project description
DPERN - Describe PERsian Numbers
Installation
pip install dpern
Usage
If you want to use it in a module, you need to import it like this:
from dpern import dpern
And use it like this:
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:
pip install dpern --user
Then you can run it like this:
$ python -m dpern 10
ده
$ python -m dpern ۱۲۸
صد و بیست و هشت
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
dpern-0.0.3.tar.gz
(2.9 kB
view details)
Built Distribution
dpern-0.0.3-py3-none-any.whl
(3.1 kB
view details)
File details
Details for the file dpern-0.0.3.tar.gz
.
File metadata
- Download URL: dpern-0.0.3.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8051f5f1286665455320b2646218d9683bffe05464b3773a4dcf816659086098 |
|
MD5 | 2633634503d851d56e6c9a056fd13b2e |
|
BLAKE2b-256 | 50dbf093773ea76951a27c645fe8e217508ae3836ed6e3c21e3c14eba32c9372 |
File details
Details for the file dpern-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: dpern-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 289854f313a6b1314e429a5dba1b3054a232843156d5be6ea97303dd34e5db62 |
|
MD5 | de07ab0232afab4701332959978d03c3 |
|
BLAKE2b-256 | 98dd8a8a797ad924836c51cc3e93149435d222c8d02f6feeb3266ddd1729295e |