Indian Number & Currency Datatype for Python
Project description
BharatNum 🇮🇳
Indian Number & Currency Datatype for Python.
Install
pip install bharatnum
Usage
from bharatnum import BharatNum
salary = BharatNum(2500000)
print(salary) # ₹25,00,000.00 print(salary.lakh) # 25.0 print(salary.crore) # 0.25 print(salary.words) # Twenty Five Lakh print(salary.tax(18)) # ₹29,50,000.00 print(salary.discount(10)) # ₹22,50,000.00 print(salary.split(4)) # ₹6,25,000.00 print(salary.emi(8.5, 24)) # Monthly EMI
Pandas Integration
import pandas as pd from bharatnum import format_indian, to_words, to_lakh
df = pd.DataFrame({'salary': [2500000, 500000, 1500000]}) df['formatted'] = format_indian(df['salary']) df['words'] = to_words(df['salary']) df['in_lakh'] = to_lakh(df['salary']) print(df)
Features
- Indian number formatting (₹25,00,000.00)
- Lakh / Crore conversion
- Number to Words (Indian system)
- Arithmetic operators (+, -, *, /)
- Comparison operators (>, <, ==)
- GST / Tax helpers
- Discount calculator
- EMI calculator
- Pandas integration
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bharatnum-0.1.0.tar.gz.
File metadata
- Download URL: bharatnum-0.1.0.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97cfcebe16b685f08b8c25199a56d087718e90cf4bd555e1b37e2d9edd6a582d
|
|
| MD5 |
529bb2d2ac904a46a50aac683cdafd62
|
|
| BLAKE2b-256 |
3aeeff69a4ab204e40adfe7c349bcbf7c31af5df3eeec73773c6b944cbee4b5e
|
File details
Details for the file bharatnum-0.1.0-py3-none-any.whl.
File metadata
- Download URL: bharatnum-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9e74fdb7aeaf6a2eaec58d3a1e3f3b6b46046762e27c570096ee3fc441e414f
|
|
| MD5 |
ed441d7c78f9c2220ea4f7a3b763f7fe
|
|
| BLAKE2b-256 |
74a5b96ec8296b7ec976fe7d88240519c2dd5b680b6305ff2bf261cc37fdfc2c
|