LunchMoney + Splitwise Integration
Project description
lunchable-splitlunch
LunchMoney + Splitwise Integration
Run via the Lunchable CLI
You can install lunchable with pip
or
pipx. Make sure to use the
lunchable[splitlunch]
extra to install the SplitLunch
plugin.
You can also use the lunchable[plugins]
extra to install all the
known plugins.
pipx install "lunchable[splitlunch]"
pip install "lunchable[splitlunch]"
Integrations
This plugin supports different operations, and some of those operations have prerequisites:
Auto Importer
It supports the auto-importing of Splitwise expenses into Lunch Money transactions. This requires
a manual asset exist in your Lunch Money account with "Splitwise" in the Name. Expenses that
have been deleted or which don't impact you (i.e. are only between other users in your group)
are skipped. By default, payments and expenses for which you are recorded as the payer are
skipped as well, but these can be overridden by the --allow-payments
and --allow-self-paid
CLI flags, respectively.
Prerequisites
- Accounts:
- Splitwise must be in the account name
LunchMoney -> Splitwise
It supports the creation of Splitwise transactions directly from synced Lunch Money accounts. This syncing requires you create a tag called SplitLunchImport
. Transactions with this tag will be created in Splitwise with your "financial partner". Once transactions are created in Splitwise they will be split in half in Lunch Money. Half of the split will be marked in the Reimbursement
category which must be created.
Prerequisites
- Financial Partners:
- If you only have one friend in Splitwise, this is your Financial Partner
- Financial Partners can be individual users or groups and transactions will be split accordingly
- Financial Partners must be specified by their Splitwise Group ID, Splitwise User ID, or Email Address
- Tags:
SplitLunchImport
- Categories:
Reimbursement
SplitLunch
It supports a workflow where you mark transactions as split (identical to Lunch Money -> Splitwise
) without importing them into Splitwise. This syncing requires you create a tag called SplitLunch
and a category named Reimbursement
Prerequisites
- Tags:
SplitLunch
- Categories:
Reimbursement
LunchMoney -> Splitwise (without splitting)
It supports the creation of Splitwise transactions directly from synced Lunch Money accounts. This syncing requires you create a tag called SplitLunchDirectImport
. Transactions with this tag will be created in Splitwise with the total completely owed by your "financial partner". The entire transaction wil then be categorized as Reimbursement
without being split.
Prerequisites
- Financial Partners:
- If you only have one friend in Splitwise, this is your Financial Partner
- Financial Partners can be individual users or groups and transactions will be split accordingly
- Financial Partners must be specified by their Splitwise Group ID, Splitwise User ID, or Email Address
- Tags:
SplitLunchDirectImport
- Categories:
Reimbursement
Note: Some of the above scenarios allow for tagging of a
Splitwise
tag on updated transactions. This tag must be created for this functionality to work.
Installation
pip install lunchable[splitlunch]
Run the SplitLunch plugin for the Lunchable CLI
lunchable plugins splitlunch --help
Run the SplitLunch plugin for the Lunchable CLI via Docker
docker pull juftin/lunchable
docker run \
--env LUNCHMONEY_ACCESS_TOKEN=${LUNCHMONEY_ACCESS_TOKEN} \
--env SPLITWISE_CONSUMER_KEY=${SPLITWISE_CONSUMER_KEY} \
--env SPLITWISE_CONSUMER_SECRET=${SPLITWISE_CONSUMER_SECRET} \
--env SPLITWISE_API_KEY=${SPLITWISE_API_KEY} \
juftin/lunchable:latest \
lunchable plugins splitlunch --help
Project details
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
File details
Details for the file lunchable_splitlunch-1.0.3.tar.gz
.
File metadata
- Download URL: lunchable_splitlunch-1.0.3.tar.gz
- Upload date:
- Size: 122.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 957524a2223b2ceacf53bb7d030194a10d90c025b4c2e3bab2ce73873c8b0554 |
|
MD5 | 49750ede7b915f8e8d119ec102317d59 |
|
BLAKE2b-256 | ab477c107516117f8f6e6e367273b3114e26bb9812dbc678a08aae92fa545f28 |
File details
Details for the file lunchable_splitlunch-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: lunchable_splitlunch-1.0.3-py3-none-any.whl
- Upload date:
- Size: 16.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbf65fd27043af0786d8b1e70cee508168f44650a2bf8166bacf570fd11e590b |
|
MD5 | c1512afbde9d7f4bf801954550f4a175 |
|
BLAKE2b-256 | 249d1abbf128b7ee009ec7433d6c7310e6eed122ac619853d617a2dadbe11322 |