Allow two YNAB users who frequently split costs to create settle up transactions with one button.
Settle up transactions work as described by Splitwise and YNAB: A Guide > Splitwise in Your Register, except that instead of splitwise, transactions made by the other person are sourced from their YNAB.
Tag transactions which should be split with a flag. When the code is run, all newly tagged transactions since the last split will be fetched and they will be combined into a matching settle up transaction on each users budget.
pip install -r requirements.txt
cp secrets.template.py secrets.py
secrets.py
according to the Secrets section below.user_a/b
: These are just unique identifiers for the two users and can be left alone.token
: The personal access token generated prior.name
: The name that should appear for that user in the payee section of settle up transactions.default_account_name
: The name of the account that new settle up transactions should go to by default.split_transaction_flag
: The colour of flag that the user will use to define transactions which should be split (red
, orange
, yellow
, green
, blue
, `purplesettle_up_transaction_flag
: The colour of flag that the user will use to define settle up transactions (red
, orange
, yellow
, green
, blue
, purple
).