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 ۱۲۸
صد و بیست و هشت
Metadata
Release files for dpern 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dpern-0.0.3.tar.gz | 2.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dpern-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.0 kB
Release files / dpern-0.0.3.tar.gz
| Download URL | dpern-0.0.3.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8051f5f1286665455320b2646218d9683bffe05464b3773a4dcf816659086098
|
|
BLAKE2b-256 checksum How to use checksums |
50dbf093773ea76951a27c645fe8e217508ae3836ed6e3c21e3c14eba32c9372
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / dpern-0.0.3-py3-none-any.whl
| Download URL | dpern-0.0.3-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
289854f313a6b1314e429a5dba1b3054a232843156d5be6ea97303dd34e5db62
|
|
BLAKE2b-256 checksum How to use checksums |
98dd8a8a797ad924836c51cc3e93149435d222c8d02f6feeb3266ddd1729295e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|