This package provides integration with Splitwise, an expense sharing platform.
It seamlessly converts the Splitwise expenses to a common currently (GBP by default) using Open Exchange Rates.
Install using PIP:
pip install git+https://github.com/nlindblad/splitwise-openexchangerates-python-client.git
from splitwise.openexchangerate import OpenExchangeRatesClient
from splitwise.client import Splitwise
splitwise = Splitwise(
"API_BASE_URL",
"CONSUMER_KEY",
"CONSUMER_SECRET",
"OAUTH_TOKEN_KEY",
"OAUTH_TOKEN_SECRET",
OpenExchangeRatesClient("OPEN_EXCHANGE_RATES_API_KEY")
)
expenses = splitwise.get_expenses()