Skip to main content

LunchMoney Amazon Transaction Updater

Project description

lunchable-primelunch

lunchable lunchable

LunchMoney Amazon Transaction Updater

PyPI PyPI - Python Version GitHub License Testing Status task uv pre-commit docs 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.1.0.tar.gz (121.3 kB view details)

Uploaded Source

Built Distribution

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

lunchable_primelunch-1.1.0-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lunchable_primelunch-1.1.0.tar.gz
  • Upload date:
  • Size: 121.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for lunchable_primelunch-1.1.0.tar.gz
Algorithm Hash digest
SHA256 cb6b7728bc50cb0afcbb0f022c843f0a50e1b553b0aef9aec2e86d6a59f94f59
MD5 669e060f4abf29dbbdcb3f3cec7a24ba
BLAKE2b-256 89c08b9e441e0acd10b1bdd7b5c7e3fd7694f5a8e128f6d55b746d1ee07a7560

See more details on using hashes here.

Provenance

The following attestation bundles were made for lunchable_primelunch-1.1.0.tar.gz:

Publisher: publish.yaml on juftin/lunchable-primelunch

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_primelunch-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for lunchable_primelunch-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 75b47526178e504e1839206117f13697096ecb52b2b0a7a4cdf490c2aeb990d6
MD5 d554400c3b790457672cca9a0f8050bd
BLAKE2b-256 8cdedf902db83009d9a1858e04c424330b284d592b142233c72ec56777de144c

See more details on using hashes here.

Provenance

The following attestation bundles were made for lunchable_primelunch-1.1.0-py3-none-any.whl:

Publisher: publish.yaml on juftin/lunchable-primelunch

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