Metadata-Version: 2.4
Name: bharatnum
Version: 0.1.0
Summary: Indian Number & Currency Datatype for Python
Home-page: https://github.com/Prathameshchaudhari2004/bharatnum
Author: Prathamesh Chaudhari
Author-email: prathameshchaudhari111@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pandas>=1.0.0
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# 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
