A simple Python SDK around the Lunch Money Developer API
Project description
lunchable
lunchable is a Python Client for the Lunch Money Developer API. It's built on top of pydantic and httpx, it offers an intuitive API, a simple CLI, complete coverage of all endpoints, and a plugin framework for extending the functionality of the library.
Installation
pip install lunchable
Usage
from typing import Any, Dict, List
from lunchable import LunchMoney
from lunchable.models import TransactionObject
lunch = LunchMoney(access_token="xxxxxxxxxxx")
transactions: List[TransactionObject] = lunch.get_transactions()
first_transaction: TransactionObject = transactions[0]
transaction_as_dict: Dict[str, Any] = first_transaction.model_dump()
CLI
To use the CLI, you'll need to set the LUNCHMONEY_ACCESS_TOKEN
environment variable.
It's recommended to use pipx to install the CLI -
use the lunchable[plugins]
extra to include all the known plugins:
pipx install "lunchable[plugins]"
export LUNCHMONEY_ACCESS_TOKEN="xxxxxxxxxxx"
lunchable transactions get --limit 5
lunchable http -X GET v1/assets
Check out the Docs
Looking to contribute? See the Contributing Guide
See the Changelog
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lunchable-1.4.0.tar.gz
(284.6 kB
view details)
Built Distribution
lunchable-1.4.0-py3-none-any.whl
(45.1 kB
view details)
File details
Details for the file lunchable-1.4.0.tar.gz
.
File metadata
- Download URL: lunchable-1.4.0.tar.gz
- Upload date:
- Size: 284.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d83640d83868f5f59648bdded9cbcd06445b5198a9f087fe59dd82587c051d0e |
|
MD5 | 33b0dd9c53ec865bb02e1ca8f8a50457 |
|
BLAKE2b-256 | 8a04c41d9de4fff1e50b7c92ba3e74d0313d3c2719f68b7c5dcb47424031f61f |
File details
Details for the file lunchable-1.4.0-py3-none-any.whl
.
File metadata
- Download URL: lunchable-1.4.0-py3-none-any.whl
- Upload date:
- Size: 45.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f413a45c8f2c96c2cca30ab762153034db9bb75b28434a6cabdbe8e9364be2c |
|
MD5 | 61178ea06f0d1e8f3a5c4717f666cd6f |
|
BLAKE2b-256 | 6692c08c2408e8049876aac671b06c21f471b7dcac2d8a7492dd41d1be84e163 |