
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
A Python library for formatting numbers into the Lakh Crore (...हजार, लाख, करोड, अर्ब...) system.
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
.
lakh-crore-numbers is available on PyPI:
python -m pip install lakh-crore-numbers
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.
The current goal of the library is to be format numbers into two types of representation.
A handful of functions are available on the top level import to facilitate this.
import lakh_crore_numbers as lcn
assert lcn.format_to_nepali_numeral(783456) == '७८३४५६'
import lakh_crore_numbers as lcn
assert lcn.format_to_nepali_words(901489783456) == 'नौ खर्ब एक अर्ब अठचालीस करोड सन्तानब्बे लाख त्रियासी हजार चार सय छपन्न'
For more formatting examples, please take a look here.
Please check the CHANGELOG.md for details.
Copyright © 2021, Suvash Thapaliya
Distributed under the ISC License.
FAQs
A Python library for formatting numbers into the Lakh Crore (...हजार, लाख, करोड, अर्ब...) system.
We found that lakh-crore-numbers demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.