Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eigenvivek/venmocalculator
https://github.com/eigenvivek/venmocalculator
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/eigenvivek/venmocalculator
- Owner: eigenvivek
- Created: 2022-06-13T13:48:23.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-28T01:16:37.000Z (9 months ago)
- Last Synced: 2024-10-11T00:28:00.428Z (about 1 month ago)
- Language: Python
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# VenmoCalculator
Automatically calculate repayments between friends from itemized receipts.
## Example
Process a list of itemized reciepts with
```zsh
> python calculator.py -f data/providence_13062022.csvVivek Noah Gari
Gari $56.03 $0.00 $0.00
Vivek $0.00 $0.00 $0.00
Jacob $96.63 $26.88 $29.10
Daniel $96.63 $23.38 $29.10
Noah $71.76 $0.00 $2.98
```Money should be transferred from row people (debtors) to column people (lenders) (e.g., `Daniel` owes `Noah` $23.38).
## Usage
To use with your own reciepts, make sure the input CSV has the columns
```
Payer, Item, Price, People
Gari, borgor, $100, All
```
- If something was shared by all debtors (e.g., an appetizer), represent this entry with `All` in the `People` column
- Denote `Tax` and `Tip` in the `Item` column to split proportional to each person's subtotal
- Make sure prices are prepended with a `$` character