A Python library for banking calculations and currency utilities.
Project description
banktools
A Python library for banking calculations and currency utilities.
Installation
pip install banktools
Modules
1. calculator
Banking and finance calculation functions.
simple_interest(principal, rate, time)— Calculate simple interestcompound_interest(principal, rate, time, n)— Calculate compound interestloan_emi(principal, annual_rate, months)— Calculate monthly loan EMItax_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 rateformat_currency(amount, symbol)— Format number as currency stringcurrency_difference(amount1, amount2)— Find difference between two amountsis_profitable(bought_at, sold_at)— Check if currency exchange was profitable
Usage
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
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
banktools-0.1.0.tar.gz
(3.9 kB
view details)
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 banktools-0.1.0.tar.gz.
File metadata
- Download URL: banktools-0.1.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2827ce777c3ce3fad2fcb93298a0203f21622f9364952ed6472fa371a2ffc02
|
|
| MD5 |
b07661b7c0225feb3dd8456278988622
|
|
| BLAKE2b-256 |
48d86c2c99aa01c10e9e296505ee64efc8179659b9199145214e73839c4ca551
|
File details
Details for the file banktools-0.1.0-py3-none-any.whl.
File metadata
- Download URL: banktools-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0dc5a5125c97d1422b2c1b141ce9f335f8b40b6ff33dcc328cb69295c6cb0f59
|
|
| MD5 |
c3a05ac91bbe12b4276efa790fd99b42
|
|
| BLAKE2b-256 |
67c33949993924dfecd3e99aa1f5114aa07954a1188f884f3738abded15a1fb4
|