Registry / crm-productivity / splitwise

splitwise

JSON →
library3.0.0pypypi✓ verified 34d ago

Unofficial Python SDK for the Splitwise API. Version 3.0.0 includes fixes for updateExpense and getExpenses. Release cadence is irregular.

crm-productivityhttp-networking
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

splitwise is a module; the class is Splitwise.

from splitwise import Splitwise
from splitwise.expense import Expense

Initialize the SDK and fetch the current user.

from splitwise import Splitwise splt = Splitwise(consumer_key='YOUR_KEY', consumer_secret='YOUR_SECRET') # For OAuth2, use access token # splt = Splitwise(consumer_key='YOUR_KEY', consumer_secret='YOUR_SECRET', access_token='ACCESS_TOKEN') print(splt.getCurrentUser())
Debug
Known footguns
breakingIn v2.0.0, OAuth2 support was added. The constructor signature changed: OAuth1 uses consumer_key/consumer_secret, OAuth2 also requires access_token.
breakingIn v3.0.0, updateExpense() and getExpenses() were fixed. Behavior may have changed from v2.x.
gotchaThe SDK does not support Splitwise OAuth2 token refresh automatically. If your access token expires, you must re-authorize.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
0 hits · last 30 days

No traffic data recorded yet.

Resources