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.3.0.tar.gz
(282.1 kB
view hashes)
Built Distribution
lunchable-1.3.0-py3-none-any.whl
(42.1 kB
view hashes)
Close
Hashes for lunchable-1.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57de9e02bc939cb912b851ef669dde9298ae543c896ab682495dac8f0dfbe8ea |
|
MD5 | 8ec66d24ce34f352fcdaf4d4fb63f9d1 |
|
BLAKE2b-256 | 065f01e737f0c2fd85e2756874d82634587237840a7297cc39814d245c5abde0 |