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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lunchable-1.4.3.tar.gz.
File metadata
- Download URL: lunchable-1.4.3.tar.gz
- Upload date:
- Size: 295.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
997d13b3a196f89f99a6d434c636226bede3e8625e71d77ed379cce580262ccf
|
|
| MD5 |
3f88579d8ec134b3afdfe60e26116e25
|
|
| BLAKE2b-256 |
9fb0964cbe9a56102079d063c1f0a8347ba921b4b391503dc91e8379b4290d89
|
Provenance
The following attestation bundles were made for lunchable-1.4.3.tar.gz:
Publisher:
publish.yaml on juftin/lunchable
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lunchable-1.4.3.tar.gz -
Subject digest:
997d13b3a196f89f99a6d434c636226bede3e8625e71d77ed379cce580262ccf - Sigstore transparency entry: 424425245
- Sigstore integration time:
-
Permalink:
juftin/lunchable@a0872fa02c909d2da1521de05b7f0d6f5ae179d4 -
Branch / Tag:
refs/tags/v1.4.3 - Owner: https://github.com/juftin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@a0872fa02c909d2da1521de05b7f0d6f5ae179d4 -
Trigger Event:
release
-
Statement type:
File details
Details for the file lunchable-1.4.3-py3-none-any.whl.
File metadata
- Download URL: lunchable-1.4.3-py3-none-any.whl
- Upload date:
- Size: 45.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ee665ba6b1b5c2e8d45c2e0bf8f94cc16ee2fc13182f8bf41b3516a06686a3c
|
|
| MD5 |
0fbf05656ccc4ad58db50cb7b4d02697
|
|
| BLAKE2b-256 |
f95ac951526a4786f4c485f945f4ae29a85dfdfbeba1c1dc67ae15335a229671
|
Provenance
The following attestation bundles were made for lunchable-1.4.3-py3-none-any.whl:
Publisher:
publish.yaml on juftin/lunchable
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lunchable-1.4.3-py3-none-any.whl -
Subject digest:
3ee665ba6b1b5c2e8d45c2e0bf8f94cc16ee2fc13182f8bf41b3516a06686a3c - Sigstore transparency entry: 424425246
- Sigstore integration time:
-
Permalink:
juftin/lunchable@a0872fa02c909d2da1521de05b7f0d6f5ae179d4 -
Branch / Tag:
refs/tags/v1.4.3 - Owner: https://github.com/juftin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@a0872fa02c909d2da1521de05b7f0d6f5ae179d4 -
Trigger Event:
release
-
Statement type: