Skip to main content

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 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

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

Metadata

Release files for banktools 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for banktools 0.1.0
File Size Uploaded
banktools-0.1.0.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for banktools 0.1.0
File Interpreter ABI Platform
banktools-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.9 kB

Release files / banktools-0.1.0.tar.gz

Download URL banktools-0.1.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f2827ce777c3ce3fad2fcb93298a0203f21622f9364952ed6472fa371a2ffc02
BLAKE2b-256 checksum
How to use checksums
48d86c2c99aa01c10e9e296505ee64efc8179659b9199145214e73839c4ca551
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.0

Release files / banktools-0.1.0-py3-none-any.whl

Download URL banktools-0.1.0-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0dc5a5125c97d1422b2c1b141ce9f335f8b40b6ff33dcc328cb69295c6cb0f59
BLAKE2b-256 checksum
How to use checksums
67c33949993924dfecd3e99aa1f5114aa07954a1188f884f3738abded15a1fb4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.0

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page