Metadata-Version: 2.4
Name: banktools
Version: 0.1.0
Summary: A Python library for banking calculations and currency utilities.
License: MIT License
Project-URL: Homepage, https://pypi.org/project/banktools/
Keywords: bank,finance,interest,currency,loan,tax,emi
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Office/Business :: Financial
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# banktools

A Python library for banking calculations and currency utilities.

## Installation

```bash
pip install banktools
```

## Modules

### 1. calculator
Banking and finance calculation functions.

- `simple_interest(principal, rate, time)` — Calculate simple interest
- `compound_interest(principal, rate, time, n)` — Calculate compound interest
- `loan_emi(principal, annual_rate, months)` — Calculate monthly loan EMI
- `tax_calculator(income, tax_rate)` — Calculate tax and net income

### 2. currencytools
Currency conversion and exchange utilities.

- `convert_currency(amount, exchange_rate)` — Convert amount using exchange rate
- `format_currency(amount, symbol)` — Format number as currency string
- `currency_difference(amount1, amount2)` — Find difference between two amounts
- `is_profitable(bought_at, sold_at)` — Check if currency exchange was profitable

## Usage

```python
from banktools.calculator import simple_interest, loan_emi
from banktools.currencytools import convert_currency, format_currency

# Simple interest
result = simple_interest(1000, 5, 3)
print(result)  # {'interest': 150.0, 'total_amount': 1150.0}

# Loan EMI
emi = loan_emi(100000, 8, 24)
print(emi)  # {'emi': 4523.01, 'total_payment': 108552.24, 'total_interest': 8552.24}

# Currency conversion
pkr = convert_currency(100, 280)
print(pkr)  # 28000.0

# Format currency
print(format_currency(1500.5, '$'))  # $1,500.50
```

## License
MIT License
