Skip to main content

Fava extension and beancount libraries for investing

Project description

Fava Investor

Fava Investor aims to be a comprehensive set of reports, analyses, and tools for investments, for Beancount and Fava (software for plain text, double entry bookkeeping). It is developed as a collection of modules, with each module offering a Fava plugin, a Beancount library, and a shell command.

Current modules:

Demo

Play with the live demo at pythonanywhere.

Screenshots (dated):

Screenshot: TLH Screenshot: Asset Allocation

Utilities

Fava Investor ships with ticker-util, which is a collection of utilities for:

  • downloading information from Yahoo for commodities (tickers), and annotating your commodity declarations with metadata
  • discovering relationships between tickers in your Beancount file, such as equivalent and substantially identical tickers, and tax loss harvesting partner groups, from a minimal and incomplete specification
  • providing ISIN an other ticker identifying information to your importers

For more, install fava_investor via pip, and then see:

ticker-util --help
ticker-util relate --help

Installation

pip3 install fava-investor

Or to install the bleeding edge version from git:

pip3 install git+https://github.com/redstreet/fava_investor

See #55 for MacOS installation.

Note the latest version of Fava Investor is compatible with both Beancount v2 and v3.

Running Fava Investor

Running in Fava:

Add this to your beancount source, and start up fava as usual:

2000-01-01 custom "fava-extension" "fava_investor" "{}"

You should now see an 'Investor' link in the sidebar in fava. For more on how to configure the extension, see the included huge-example.beancount.

Running on the Command-Line:

The command line interface (CLI) is accessed using the investor command, which has subcommands for each module. Eg:

investor assetalloc-class
investor tlh
investor --help

Both the CLI and the utility (ticker-util) use click. See here to enable shell completion in zsh, bash, or fish, which is highly recommended.

Problems?

  • Monitor the terminal you are running fava from to look for error output from fava_investor
  • Include the error messages you see above when opening bug reports or asking for help

Contributing

Features, fixes, and improvements welcome. Remember:

  • Feel free to send send pull requests. Please include unit tests
  • For larger changes or changes that might need discussion, please reach out and discuss first to save time (open an issue)
  • Please squash your commits (reasonably)
  • Use conventional commits for commit messages

Thank you for contributing!

Related Projects

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

fava_investor-1.0.1.tar.gz (653.8 kB view details)

Uploaded Source

Built Distribution

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

fava_investor-1.0.1-py3-none-any.whl (500.0 kB view details)

Uploaded Python 3

File details

Details for the file fava_investor-1.0.1.tar.gz.

File metadata

  • Download URL: fava_investor-1.0.1.tar.gz
  • Upload date:
  • Size: 653.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for fava_investor-1.0.1.tar.gz
Algorithm Hash digest
SHA256 041ae3f6c3832686cac7bf8abf594aa44cc60718a2124c1542d4c93b604b8bbb
MD5 e6776c6731d91275af9a20a8a8897180
BLAKE2b-256 48fea83b481965d208a2103274a447dfbd5823397ad951640c6ec23b639b756e

See more details on using hashes here.

File details

Details for the file fava_investor-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: fava_investor-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 500.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for fava_investor-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ce00bfd491a329ed8dd5e31e7f471c3488946264b7b896314f385aebadbcfd7c
MD5 ba9fd94b97fa135ce8c79d75cdfb2363
BLAKE2b-256 3dd7d9a3fa89c2afd21ee757d823527c3ec37f6ab06cb6a89a4d12431ab6dc41

See more details on using hashes here.

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