Lakh Crore Numbers
A Python library for formatting numbers into the "Lakh Crore" (...हजार, लाख, करोड, अर्ब...) system.
This numbering system (also known as Indian numbering system) is widely used in the subcontinent, including Bangladesh, Bhutan, India, Maldives, Nepal, Pakistan and Sri Lanka to express large numbers. The terms lakh and crore are commonly used in everyday scenarios. The library currently supports formatting all the way up to sankha.
Installation
lakh-crore-numbers is available on PyPI:
python -m pip install lakh-crore-numbers
Supported Language(s)
As of now, the library is written for the following languages. Support for more subcontinental languages across other programming languages will be added over time. Please feel free to open a PR for a language you want this library to support.
Programming Languages
- Python (3.6 and up)
Spoken Languages
- Nepali / नेपाली
Documentation
The current goal of the library is to be format numbers into two types of representation.
- Number expressed as numeral in the target language
- Number expressed as words in the target language
A handful of functions are available on the top level import to facilitate this.
Formatting to Numerals (Nepali / नेपाली)
import lakh_crore_numbers as lcn
assert lcn.format_to_nepali_numeral(783456) == '७८३४५६'
Formatting to Words (Nepali / नेपाली)
import lakh_crore_numbers as lcn
assert lcn.format_to_nepali_words(901489783456) == 'नौ खर्ब एक अर्ब अठचालीस करोड सन्तानब्बे लाख त्रियासी हजार चार सय छपन्न'
For more formatting examples, please take a look here.
Changelog
Please check the CHANGELOG.md for details.
License
Copyright © 2021, Suvash Thapaliya
Distributed under the ISC License.
Metadata
Release files for lakh-crore-numbers 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lakh-crore-numbers-0.1.0.tar.gz | 5.8 kB | Without provenance | Details for lakh-crore-numbers-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lakh_crore_numbers-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for lakh_crore_numbers-0.1.0-py3-none-any.whl |
Total release size: 13.9 kB
Release files / lakh-crore-numbers-0.1.0.tar.gz
| Download URL | lakh-crore-numbers-0.1.0.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
884c49f48bb022b072ce960b393be1ac1f2735371c0a0c37f56ddddea46bb0a5
|
|
BLAKE2b-256 checksum How to use checksums |
e9edecdc81feaa4c9c5fc69feeb3ee7ba5d582e6c9026f4826f6cb24d4028c2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1
|
Release files / lakh_crore_numbers-0.1.0-py3-none-any.whl
| Download URL | lakh_crore_numbers-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f445a005d2decf6b4aa6c4568ce4091f270c76f106220a488c729c29078b8649
|
|
BLAKE2b-256 checksum How to use checksums |
4f421492fa1eec199c3b036dbffdd44ed9f119b0fe75b0a8bc52ef77f6000309
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1
|
Security for lakh-crore-numbers 0.1.0
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.