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
Built Distribution
File details
Details for the file lunchable-1.4.1.tar.gz
.
File metadata
- Download URL: lunchable-1.4.1.tar.gz
- Upload date:
- Size: 284.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ed56090c19c7f57c8620ec929fbd12cac7a96d405144a22c3f2e1c1d8bca9cd |
|
MD5 | bd490dfd6a6025c20d5971f65ae9d4e1 |
|
BLAKE2b-256 | 3fc93114f4093f70264a71cd7bae9f50fbb7d97d4241514c135690b1a016de50 |
Provenance
The following attestation bundles were made for lunchable-1.4.1.tar.gz
:
Publisher:
publish.yaml
on juftin/lunchable
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
lunchable-1.4.1.tar.gz
- Subject digest:
5ed56090c19c7f57c8620ec929fbd12cac7a96d405144a22c3f2e1c1d8bca9cd
- Sigstore transparency entry: 151865622
- Sigstore integration time:
- Predicate type:
File details
Details for the file lunchable-1.4.1-py3-none-any.whl
.
File metadata
- Download URL: lunchable-1.4.1-py3-none-any.whl
- Upload date:
- Size: 45.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cac91aefe244ae967f6e35c685feb2fbf2f49608eff457348c582df43cb2848a |
|
MD5 | aeed6d341ef96a3d9aaa8e100be78441 |
|
BLAKE2b-256 | 68a941a821cdb13c8143a0535b3743fba0a2dbaf607ba9a0f3a8658cba2e4789 |
Provenance
The following attestation bundles were made for lunchable-1.4.1-py3-none-any.whl
:
Publisher:
publish.yaml
on juftin/lunchable
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
lunchable-1.4.1-py3-none-any.whl
- Subject digest:
cac91aefe244ae967f6e35c685feb2fbf2f49608eff457348c582df43cb2848a
- Sigstore transparency entry: 151865625
- Sigstore integration time:
- Predicate type: