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.
Installation
pip install fava-miler
Configuring your beancount source
- Define your
operating_currency - Declare the currency for each of your airline miles
- Add
expiry-monthsandpoints-valuemetadata to your commodity declaration- Any negative value for
expiry-monthssignifies that this commodity never expires
- Any negative value for
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
./miler.py --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)',
}"
Metadata
Release files for fava-miler 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fava_miler-0.2.3.tar.gz | 20.5 kB | Without provenance | Details for fava_miler-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fava_miler-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for fava_miler-0.2.3-py3-none-any.whl |
Total release size: 40.5 kB
Release files / fava_miler-0.2.3.tar.gz
| Download URL | fava_miler-0.2.3.tar.gz |
|---|---|
| Size | 20.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
01fc6ddcb352f439dc9a0773fd4e34e97ad6be9ef815fe24d132d14ea523cb4f
|
|
BLAKE2b-256 checksum How to use checksums |
b44bad847044f84ebf88f895c446ef44b3a8a2d1f217598d3eefb22e127ff1cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.2
|
Release files / fava_miler-0.2.3-py3-none-any.whl
| Download URL | fava_miler-0.2.3-py3-none-any.whl |
|---|---|
| Size | 20.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
69d7638ccb25d306b13a8846c8ce5cffac3178e346af833ea498280b6b0a7d35
|
|
BLAKE2b-256 checksum How to use checksums |
420ab2c00aead2eb84ecf46afdc985faad683d8714137189f534fe028f4edd77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.2
|
Security for fava-miler 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.