/splitwise-openexchangerates-python-client

Splitwise (https://splitwise.com) Python client that converts currencies using Open Exchange Rates (https://openexchangerates.org)

Primary LanguagePythonMIT LicenseMIT

splitwise-openexchangerates-python-client

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.

Example Usage

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()