Skip to main content

fava_miler

Airline miles and rewards points: expiration and value reporting for Fava/Beancount (Personal finance software).

Introduction

Airline miles and rewards points typically expire after a period of inactivity. They also can be viewed as having a value in a currency of your choice. If you track airline mile transactions in Beancount, this simple plugin reports on the value of miles and their expiry date. This is particularly useful if you have miles/points on many airlines or businesses.

Screenshot: Miler

Installation

pip install fava-miler

Configuring your beancount source

  • Define your operating_currency
  • Declare the currency for each of your airline miles
  • Add expiry-months and points-value metadata to your commodity declaration
    • Any negative value for expiry-months signifies that this commodity never expires

This should get the reporter working. Example:

option "operating_currency" "USD"
1990-01-01 commodity MILESAIRALD
    expiry-months: 24
    points-value: 0.015 USD

2000-01-01 open Assets:Miles:AirAldorra MILESAIRALD
2000-01-01 open Income:Misc

2010-01-01 * "Credit card miles"
        Assets:Miles:AirAldorra 100 MILESAIRALD
        Income:Misc

Running

beancount

fava-miler --help

fava

Add the following to your source and run fava as you normally would.

2010-01-01 custom "fava-extension" "fava_miler" "{
  'accounts_pattern' : '^Assets.*Reward',
  'exclude_currencies' : '(POINTS_ABC)|(POINTS_DEF)',
}"

Release files for fava-miler 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fava-miler 0.3.0
File Size Uploaded
fava_miler-0.3.0.tar.gz 26.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fava-miler 0.3.0
File Interpreter ABI Platform
fava_miler-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 47.2 kB

Release files / fava_miler-0.3.0.tar.gz

Download URL fava_miler-0.3.0.tar.gz
Size 26.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8c3f79c6ee39e3ad8b7bddedd192c096a4e28cc8dc6dd88bed1e3c51b548dd7d
BLAKE2b-256 checksum
How to use checksums
91c7bdd656ebcca378e4234a08fae4121264bcb034b7c44b408df889800fbfd5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release files / fava_miler-0.3.0-py3-none-any.whl

Download URL fava_miler-0.3.0-py3-none-any.whl
Size 20.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d85ea18f6023f89c2e5b1eb80eb5bde5bf11f305a7a174a6327046abcb6e5848
BLAKE2b-256 checksum
How to use checksums
35154147fbfad099ae3a79887cea806b3fc3a45a344dfee0d87b620de5176e54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page