Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Tagirijus/ledger-plot
Python programm for easy plotting ledger journals with gnuplot
https://github.com/Tagirijus/ledger-plot
accounting analysis budget finances freelancer ledger-cli money self-employed
Last synced: 3 months ago
JSON representation
Python programm for easy plotting ledger journals with gnuplot
- Host: GitHub
- URL: https://github.com/Tagirijus/ledger-plot
- Owner: Tagirijus
- Created: 2015-11-08T16:49:18.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-09-02T12:02:23.000Z (over 5 years ago)
- Last Synced: 2024-08-01T16:42:58.545Z (6 months ago)
- Topics: accounting, analysis, budget, finances, freelancer, ledger-cli, money, self-employed
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 21
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
- my-awesome-github-stars - Tagirijus/ledger-plot - Python programm for easy plotting ledger journals with gnuplot (Python)
README
# Ledger plot
## Short description
An approach to an easy to use interface for plotting ledger journals with GNUplot.
## Usage
Start the code with a valid ledger journal as a parameter. For example:
python ledger-plot.py /home/user/ledger_files/ledger_2015.journal
Then you can chose a style for the plotting:
(1) Lines
(2) Linespoints
(3) Boxes
(4) Linespoints (Autozero)
(5) Boxes (Autozero)
Style [1]: 2Let's chose 2. Afterwards we can chose the mode. Chosing `no` will make a plot according to the values of the transactions in the ledger journal. Chosing `yes` would make a plot according to the *number* of transactions of the specific account. Pressing `enter` will chose the defautl value: no.
Count entries? [no]:
Timespan start [1900/01/01]:
Now we have to set up the time span: start and end date. Just pressing `enter` two times, will probably chose all the journal entries (except you have entries before the 19th century or after the 99th).
After this we have to chose, if we want the plot to show us the total amount of the account value, or just the relative values (the amount which was added or subtracted from the specific account). Let's chose total / default.
Show (t)otal or (r)elative values? [total]:
Include past values? [yes]:Now we can chose if the values before the time span should be included in the calculation or not. It won't make a difference, if there is no start date set, since it would add the values anyway. Let's chose yes / default, which will bring us to the final entry option:
Accounts:
Add account:Here we see the added accounts and the entry field in which we can add an account. Maybe we have three accounts, but want just two to be plotted. Let's enter them, one for every entry field. The accounts could be `Car Stuff` and `Health` for example. The final output should show this:
Accounts:
Add account: Car StuffAccounts: Car Stuff
Add account: HealthAccounts: Car Stuff, Health
Add account:When pressing `enter` now, the plotting will begin and output a file (specified in the python code in the configuration area).
You can quit the program, by entering `.` in any entry field.
## (probably better) Bash scripts
I found some really cool bash scripts on [Sundialdreams.com](https://www.sundialdreams.com/report-scripts-for-ledger-cli-with-gnuplot/). Feel free to check them out as well!