Building upon hledger-sankey (which was previously discussed here), I’ve made hledge-lit, a Streamlit-based Python app that can plot various graphs based on the output of hledger balance.
Looks cool! I just tried it, with:
git clone https://github.com/adept/hledger-lit
python3 -m venv .venv
source ./.venv/bin/activate
pip install -r requirements.txt
streamlit run hledger_lit.app
but I get this error:
Usage: streamlit run [OPTIONS] [TARGET] [ARGS]...
Try 'streamlit run --help' for help.
Error: Streamlit requires raw Python (.py) files, not .app.
For more information, please see https://docs.streamlit.io
I’m on Arch Linux with Python 3.13.11
Right. That's a typo in the Readme, you need to replace .app with .py
I tripped on this too. Specifically, you need to rename that file:
mv hledger_lit.app hledger_lit.py
That's what you get when pushing in a hurry ![]()
This should be fixed now (both readme and a filename)
I’ve pushed a bunch of changes, and one can now define account categories using regexps, and all hledger commands for every graph are disclosed and customizable as well
This is really cool! I love the sankey diagrams. I’d also like to look into using the --average -M flags for the first two plots, so we get monthly average values rather than a cumulative total.
This is really cool. I'd also love some way to specify the depth of accounts. If you have a very deep number of sub-accounts then it can get very visually cluttered.
The current version allows you to fully customise hledger command arguments, so (depending on the graph) it could be as easy as tweaking –depth there