Fava Portfolio Returns
fava-portfolio-returns shows portfolio returns in the Fava web interface. It leverages beangrow to categorize transactions and calculate the portfolio returns of a beancount ledger.
Installation
pip install fava-portfolio-returns
Usage
Please setup beangrow first, using this guide: https://beancount.github.io/docs/calculating_portolio_returns.html.
Enable this plugin in Fava by adding the following lines to your ledger:
2010-01-01 custom "fava-extension" "fava_portfolio_returns" "{
'beangrow_config': 'beangrow.pbtxt'
}"
Configuration
The plugin supports the following configuration options:
2010-01-01 custom "fava-extension" "fava_portfolio_returns" "{
'beangrow_config': 'beangrow.pbtxt',
'beangrow_debug_dir': 'path/to/debug/directory',
'pnl_color_scheme': 'green-red',
'language': 'en',
'locale': 'en',
}"
Available options for pnl_color_scheme:
green-red: Green for profits, red for lossesred-green: Red for profits, green for losses
The default value is automatically selected based on the browser's locale: Chinese and Japanese regions use red-green by default, all other regions use green-red.
View Example Ledger
cd example; fava example.beancount
Contributing
This plugin consists of a Python backend and a React frontend.
Install uv and Node.js 22, run make deps to install the dependencies, and make dev to run the Fava dev server with auto-rebuild.
Before submitting a PR, please run make build to build the frontend in production mode, and add the compiled frontend to the PR.
Related Projects
Acknowledgements
Thanks to Martin Blais and all contributors of beancount and beangrow, Jakob Schnitzer, Dominik Aumayr and all contributors of Fava, and to all contributors of Apache ECharts.
Metadata
Release files for fava-portfolio-returns 2.7.0
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_portfolio_returns-2.7.0.tar.gz | 4.6 MB | With provenance | Details for fava_portfolio_returns-2.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fava_portfolio_returns-2.7.0-py3-none-any.whl | Python 3 | none | any | Details for fava_portfolio_returns-2.7.0-py3-none-any.whl |
Total release size: 5.6 MB
Release files / fava_portfolio_returns-2.7.0.tar.gz
| Download URL | fava_portfolio_returns-2.7.0.tar.gz |
|---|---|
| Size | 4.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a3719fc2121011a8943964e77cd5fd2dedd1122bbec3e38b3b00f2020fae66c6
|
|
BLAKE2b-256 checksum How to use checksums |
c121d4757ff00186f1b6d7c149c8bc3f5a25100d35576f7f650c0edff9618d9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 4, 2026.
Transparency logRelease files / fava_portfolio_returns-2.7.0-py3-none-any.whl
| Download URL | fava_portfolio_returns-2.7.0-py3-none-any.whl |
|---|---|
| Size | 924.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2e81cf10d72d203892d5688107f49951955b6ee426f0b47a169cadad77f8baa2
|
|
BLAKE2b-256 checksum How to use checksums |
6589c9b79a59ad245734552be701521ee05f3f595bff9c76407c0138cf06fdb0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 4, 2026.
Transparency logSecurity for fava-portfolio-returns 2.7.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for fava_portfolio_returns-2.7.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 4, 2026.
Transparency logA 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.