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
- Install the library using
pip install libre-finance. - 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
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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdf2deec51711a9d6df8030ae9978865ec563b6c92bbf6a8b15a16cb28292ad9
|
|
| MD5 |
7dd16d126c10237164e315f7d114cae8
|
|
| BLAKE2b-256 |
7906d771cd11ed9504ad377714aa71c0b615c3ed51b531fd2f2ebd49955318f5
|
Provenance
The following attestation bundles were made for libre_finance-0.1.0.tar.gz:
Publisher:
python-publish.yml on minwook-shin/libre-finance
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
libre_finance-0.1.0.tar.gz -
Subject digest:
cdf2deec51711a9d6df8030ae9978865ec563b6c92bbf6a8b15a16cb28292ad9 - Sigstore transparency entry: 162540544
- Sigstore integration time:
-
Permalink:
minwook-shin/libre-finance@05af595e5391075efe2f1c92e81464946cc7142b -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/minwook-shin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@05af595e5391075efe2f1c92e81464946cc7142b -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
295170752cf6a281594e2b9ecc2cd02be869b8b37e782b7dde64e12cb9d9e66f
|
|
| MD5 |
eb332e3c3008a4a745babce425051967
|
|
| BLAKE2b-256 |
6c94b91f993e43d333237bcd0c1ba0163847d84d8172cb337772a86ac786f846
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
libre_finance-0.1.0-py3-none-any.whl -
Subject digest:
295170752cf6a281594e2b9ecc2cd02be869b8b37e782b7dde64e12cb9d9e66f - Sigstore transparency entry: 162540546
- Sigstore integration time:
-
Permalink:
minwook-shin/libre-finance@05af595e5391075efe2f1c92e81464946cc7142b -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/minwook-shin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@05af595e5391075efe2f1c92e81464946cc7142b -
Trigger Event:
release
-
Statement type: