lunchable-primelunch

raw JSON →
1.1.0 verified Fri May 01 auth: no python

LunchMoney Amazon Transaction Updater: parses Amazon order history CSVs and updates LunchMoney transactions with correct categories, tags, and merchant names. Version 1.1.0, requires Python 3.9+, release cadence irregular.

pip install lunchable-primelunch
error ModuleNotFoundError: No module named 'lunchable_primelunch'
cause Incorrect import package name.
fix
Install the package: pip install lunchable-primelunch, then import from primelunch.
error ValueError: No columns to parse from file
cause CSV file not in expected Amazon order history format.
fix
Ensure the CSV is downloaded from Amazon's 'Your Orders' history page, not an invoice.
gotcha Import path is 'primelunch', not 'lunchable_primelunch'.
fix Use 'from primelunch import PrimeLunch'.
gotcha Amazon CSV must be in the format downloaded from 'Your Orders' page (not the invoice).
fix Download order history CSV from Amazon's 'Your Orders' page.

Parses an Amazon orders CSV and updates LunchMoney transactions.

import os
from primelunch import PrimeLunch

pl = PrimeLunch(api_key=os.environ.get('LUNCHMONEY_ACCESS_TOKEN', ''))
pl.parse_and_update('orders.csv')