Skip to content

A programm for calculating average expenses from a ledger journal.

Notifications You must be signed in to change notification settings

Tagirijus/ledger-expenses

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A programm for calculating average expenses from a ledger journal.

Installation

Clone repo and maybe setup an alias to python3 run.py.

Usage

To let the programm calculate your monthly / yearly expenses (and income) you can start the programm with these parameter:

parameter description
file your ledger journal file. leave blank, if you set up the LEDGER_FILE variable.
-e / --expense use multiple times to add each account describing your expenses. input holds the account and its name for the ouput.
-i / --income same as for --expense, but for the income accounts.
-m / --months define how many months should be used for the average calculation. default is 12.
-y / --yearly the programm now calculates the yearly instead of the monthly income / expenses.
-t / --time the program interpretes the journal as a time journal.

Future

Maybe some day there will be a python3 ledger module and I will embed this. The programm would be so much faster without the os.popen stuff.

Changelog

The changelog is here CHANGELOG.md.

About

A programm for calculating average expenses from a ledger journal.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages