LHansoon / bill-calculator

GNU General Public License v3.0
0 stars 0 forks source link

bill-calculator

you will need to have a Google service account and have editor access granted, the credentials.json will contain the required information generated by Google Cloud Service, containing information like type, project_id, private_key_id, private_key, client_email, client_id, auth_uri, token_uri, auth_provider_x509_cert_url, client_x509_cert_url

This is a local deployment software and shouldn't be exposed to public internet since there is no security sys implemented and the implementation never considers the security issue:

It might work, but it's not safe.

config

in src: python app.py 8000

config file template:

config.json in src

{
    "sheet_id": "***********",
    "cred_path": "credentials.json",
    "tax_rate": 0.15,
    "money_return_msg": "Money Trans💰",
    "port": 8000
}

description

The software provided service to auto calculate the debt and money transfer procedure required to make everybody clear on bills

A paid 10 dollars for B and C, and B paid 5 dollars for A, C paid 6 dollars for B and A, in the regular procedure, we would need:

but the software will optimize the debt and tell you:

The software uses Google Sheets as the data source due to its easy to understand and edit nature.

Example:

Screenshot 2023-10-16 at 8 02 10 PM

Interface:

Screenshot 2023-10-16 at 7 57 32 PM