Splitwise Python SDK¶
Release v3.0.0 (Installation)
splitwise is a Python SDK library to automate Splitwise.
It’s simple to use:
>>> s = Splitwise("consumer_key", "consumer_secret")
>>> s.setAccessToken(access_token)
>>> s.getCurrentUser().getId()
78322
>>> expense = Expense()
>>> expense.setGroupId("19433671")
>>> expense.setSplitEqually()
>>> expense.setCost("10")
>>> created_expense, errors = s.createExpense(expense)
>>> created_expense.getId()
897763
Splitwise SDK uses requests to make the HTTP requests to splitwise on your behalf.
Features¶
splitwise SDK supports
- Fetching current user info
- Fetching user’s friends
- Updating a user
- Fetching user’s expenses
- Creating a new expense
- Delete an expense
- Fetching user’s groups
- Creating a new group
- Adding user to group
- Deleting an existing group
- Fetching currencies
- Fetching categories
- Fetching comments
- Creating new comment
Splitwise officially supports 3.7-3.11, and runs great on PyPy.
The User Documentation / Guide¶
If you are looking information on how to use this SDK. This part of documentation explains that
The API Documentation / Guide¶
If you are looking for information on a specific function, class, or method, this part of the documentation is for you.
Contributing Guide¶
If you are looking to contribute to this SDK, this part is for you.