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 Hatch project Ruff pre-commit 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.1.tar.gz (284.6 kB view details)

Uploaded Source

Built Distribution

lunchable-1.4.1-py3-none-any.whl (45.1 kB view details)

Uploaded Python 3

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

Hashes for lunchable-1.4.1.tar.gz
Algorithm Hash digest
SHA256 5ed56090c19c7f57c8620ec929fbd12cac7a96d405144a22c3f2e1c1d8bca9cd
MD5 bd490dfd6a6025c20d5971f65ae9d4e1
BLAKE2b-256 3fc93114f4093f70264a71cd7bae9f50fbb7d97d4241514c135690b1a016de50

See more details on using hashes here.

Provenance

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

Publisher: publish.yaml on juftin/lunchable

Attestations:

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

Hashes for lunchable-1.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cac91aefe244ae967f6e35c685feb2fbf2f49608eff457348c582df43cb2848a
MD5 aeed6d341ef96a3d9aaa8e100be78441
BLAKE2b-256 68a941a821cdb13c8143a0535b3743fba0a2dbaf607ba9a0f3a8658cba2e4789

See more details on using hashes here.

Provenance

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

Publisher: publish.yaml on juftin/lunchable

Attestations:

Supported by

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