Skip to main content

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


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 hashes)

Uploaded Source

Built Distribution

dpern-0.0.3-py3-none-any.whl (3.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page