Skip to main content

This tool helps financial consumers freely utilize financial services by interest calculating.

Project description

LibreFinance

LibreFinance is a combination of the words "libre" and "finance".

This tool helps financial consumers freely utilize financial services by interest calculating.

Important Notice

In South Korea, the general interest income tax rate is 15.4% (14% interest income tax + 1.4% local tax). Please be aware of this when using the tool.

Usage

  1. Install the library using pip install libre-finance.
  2. Import the library with from libre_finance import LibreFinance.

Example

from libre_finance import LibreFinance

# deposit example
lf = LibreFinance(amount=12000000, currency='KRW')
print(lf.calculate_deposit(month=6, annual_interest_rate=3.5))
print(f"amount: {lf.amount}")

# deposit example with non-taxable interest
lf = LibreFinance(amount=12000000, currency='KRW')
print(lf.calculate_deposit(month=6, annual_interest_rate=3.5, is_tax=False))
print(f"amount: {lf.amount}")

# savings example
lf = LibreFinance(amount=0, currency='KRW')
print(lf.calculate_savings(month=6, monthly_deposit=1000000, annual_interest_rate=3.5))
print(f"amount: {lf.amount}")

# savings example with non-taxable interest
lf = LibreFinance(amount=0, currency='KRW')
print(lf.calculate_savings(month=6, monthly_deposit=1000000, is_tax=False, annual_interest_rate=3.5))
print(f"amount: {lf.amount}")

Features

  • Deposit interest (taxable/non-taxable)

  • Savings interest (taxable/non-taxable)

  • sql query

if you want to use sql feature, you can install the library with the following command.

pip install libre-finance[sql]
from libre_finance.database import MariaDBTable

t = MariaDBTable(db_name='db', user='user', passwd='passwd', host='127.0.0.1', port=3306)

and you can use the sql command as follows.

SELECT *
FROM `finance`
where product = "deposit" and month = 6
order by total_interest desc
limit 5;

ToDo List

  • Bond interest
  • RP interest

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

libre_finance-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

libre_finance-0.1.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file libre_finance-0.1.0.tar.gz.

File metadata

  • Download URL: libre_finance-0.1.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for libre_finance-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cdf2deec51711a9d6df8030ae9978865ec563b6c92bbf6a8b15a16cb28292ad9
MD5 7dd16d126c10237164e315f7d114cae8
BLAKE2b-256 7906d771cd11ed9504ad377714aa71c0b615c3ed51b531fd2f2ebd49955318f5

See more details on using hashes here.

Provenance

The following attestation bundles were made for libre_finance-0.1.0.tar.gz:

Publisher: python-publish.yml on minwook-shin/libre-finance

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file libre_finance-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: libre_finance-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for libre_finance-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 295170752cf6a281594e2b9ecc2cd02be869b8b37e782b7dde64e12cb9d9e66f
MD5 eb332e3c3008a4a745babce425051967
BLAKE2b-256 6c94b91f993e43d333237bcd0c1ba0163847d84d8172cb337772a86ac786f846

See more details on using hashes here.

Provenance

The following attestation bundles were made for libre_finance-0.1.0-py3-none-any.whl:

Publisher: python-publish.yml on minwook-shin/libre-finance

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page