Skip to main content

A simple Python SDK around the Lunch Money Developer API

Project description

lunchable

PyPI PyPI - Python Version Docker Image Version Conda Version GitHub License Testing Status task uv pre-commit docs semantic-release Gitmoji

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




juftin logo

Project details


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.3.tar.gz (295.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lunchable-1.4.3-py3-none-any.whl (45.3 kB view details)

Uploaded Python 3

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

Hashes for lunchable-1.4.3.tar.gz
Algorithm Hash digest
SHA256 997d13b3a196f89f99a6d434c636226bede3e8625e71d77ed379cce580262ccf
MD5 3f88579d8ec134b3afdfe60e26116e25
BLAKE2b-256 9fb0964cbe9a56102079d063c1f0a8347ba921b4b391503dc91e8379b4290d89

See more details on using hashes here.

Provenance

The following attestation bundles were made for lunchable-1.4.3.tar.gz:

Publisher: publish.yaml on juftin/lunchable

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for lunchable-1.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3ee665ba6b1b5c2e8d45c2e0bf8f94cc16ee2fc13182f8bf41b3516a06686a3c
MD5 0fbf05656ccc4ad58db50cb7b4d02697
BLAKE2b-256 f95ac951526a4786f4c485f945f4ae29a85dfdfbeba1c1dc67ae15335a229671

See more details on using hashes here.

Provenance

The following attestation bundles were made for lunchable-1.4.3-py3-none-any.whl:

Publisher: publish.yaml on juftin/lunchable

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page