Skip to main content

LunchMoney Amazon Transaction Updater

Project description

lunchable-primelunch

lunchable lunchable

LunchMoney Amazon Transaction Updater

PyPI PyPI - Python Version docs Hatch project Ruff pre-commit semantic-release Gitmoji


PrimeLunch is a command line tool that supports updating Amazon transaction notes with the items from Amazon itself. This tool uses CSVs generated by the Amazon Order History Reporter plugin on Chrome. Once you've gathered your transactions, export them as a CSV and scan them with the tool. You'll be asked which transactions you'd like to update.


The plugin uses the dollar amounts on the CSV export to match Amazon transactions in LunchMoney. When a matching dollar amount is found, PrimeLunch compares the date window between the transactions to determine if they're really a match.

We're using the Amazon Order History Reporter plugin because it gives us some functionality that Amazon doesn't: exporting Amazon transactions as they're grouped on actual credit card transactions.

Run via the Lunchable CLI

You can install lunchable with pip or pipx. Make sure to use the lunchable[primelunch] extra to install the PrimeLunch plugin. You can also use the lunchable[plugins] extra to install all the known plugins.

pipx install "lunchable[primelunch]"
pip install "lunchable[primelunch]"

The below command runs the PrimeLunch update tool:

lunchable plugins primelunch -f ~/Downloads/amazon_order_history.csv

The below command runs the PrimeLunch update tool using a date window of fourteen days instead of the default seven days (these larger windows are especially useful for finding refunds and recurring purchases):

lunchable plugins primelunch \
   --file ~/Downloads/amazon_order_history.csv \
   --window 14

Update all transactions without going through the confirmation prompt for each one:

lunchable plugins primelunch \
   --file ~/Downloads/amazon_order_history.csv \
   --all

Provide a LunchMoney API access token manually (PrimeLunch defaults to inheriting from the LUNCHMONEY_ACCESS_TOKEN environment variable):

lunchable plugins primelunch \
   --file ~/Downloads/amazon_order_history.csv \
   --token ABCDEFGHIJKLMNOP

References

This lunchable plugin was inspired by the original Lunchable Amazon importer at samwelnella/amazon-transactions-to-lunchmoney.

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_primelunch-1.0.3.tar.gz (111.8 kB view details)

Uploaded Source

Built Distribution

lunchable_primelunch-1.0.3-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file lunchable_primelunch-1.0.3.tar.gz.

File metadata

  • Download URL: lunchable_primelunch-1.0.3.tar.gz
  • Upload date:
  • Size: 111.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for lunchable_primelunch-1.0.3.tar.gz
Algorithm Hash digest
SHA256 6a721d80609a1bddc8c22275997c7b6b81b0fcba85cf3da010bbad6899f886e4
MD5 c218301d5361ca8fb4863490304d87cd
BLAKE2b-256 e5c222017342bc9cb6a126448fb1eead1e8728ca4c4706e91dfce09e69def349

See more details on using hashes here.

File details

Details for the file lunchable_primelunch-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for lunchable_primelunch-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2736943518cf60a6a9e33852accf93ff1201f9fcc08e548e6f9fe7a8d0b01eeb
MD5 c91c34f27c93c91d00b45d9cf6449f4b
BLAKE2b-256 6c4f3c5a9e87b899b81b89a318ca9bb76eb72fe84f98ee04ab8e7359ba8d9727

See more details on using hashes here.

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