https://github.com/guysoft/spliitapi
A Python client for interacting with the Spliit API.
https://github.com/guysoft/spliitapi
Last synced: 10 months ago
JSON representation
A Python client for interacting with the Spliit API.
- Host: GitHub
- URL: https://github.com/guysoft/spliitapi
- Owner: guysoft
- Created: 2025-01-10T02:26:25.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-01-10T09:55:38.000Z (12 months ago)
- Last Synced: 2025-03-19T15:05:45.868Z (10 months ago)
- Language: Python
- Size: 18.6 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spliit API Client
A Python client for interacting with the Spliit API.
## Installation
```bash
pip install spliit
```
## Usage
```python
from spliit import Spliit
# Initialize the client
client = Spliit(group_id="your_group_id")
# Get group information
group = client.get_group()
# Get participants
participants = client.get_participants()
# Get categories
from spliit import CATEGORIES
# Add an expense
john_id = client.get_username_id("John")
client.add_expense(
title="Dinner",
paid_by=john_id,
paid_for=[(john_id, 100)],
amount=1200,
category=CATEGORIES['Home']['Electronics']
)
```