Skip to main content

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

Metadata

Release files for libre-finance 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 libre-finance 0.1.0
File Size Uploaded Provenance Actions
libre_finance-0.1.0.tar.gz 4.5 kB With provenance Details for libre_finance-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 10.2 kB

Release files / libre_finance-0.1.0.tar.gz

Download URL libre_finance-0.1.0.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
cdf2deec51711a9d6df8030ae9978865ec563b6c92bbf6a8b15a16cb28292ad9
BLAKE2b-256 checksum
How to use checksums
7906d771cd11ed9504ad377714aa71c0b615c3ed51b531fd2f2ebd49955318f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.0.1 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 15, 2025.

Transparency log

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

Download URL libre_finance-0.1.0-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
295170752cf6a281594e2b9ecc2cd02be869b8b37e782b7dde64e12cb9d9e66f
BLAKE2b-256 checksum
How to use checksums
6c94b91f993e43d333237bcd0c1ba0163847d84d8172cb337772a86ac786f846
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.0.1 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 15, 2025.

Transparency log

Security for libre-finance 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for libre_finance-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 15, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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