Ledger
This is my implementation of a Ledger in python supporting the commands "--price-db", "-f", "--sort", "balance", "print" and "register"
This project uses python and libraries contained in the "requirements.txt" file. Go check them out if you don't have them locally installed.
$ pip install -r requirements.txt
To execute the Ledger run the following command to execute the .sh file:
$ ./my-ledger.sh
# This by itself does nothing. You must run it with other commands.
These are the following commands supported by the Ledger:
The print command prints out ledger transactions in a textual format that can be parsed by Ledger.
$ ./my-ledger.sh print
The register command displays all the postings occurring in a single account, line by line.
$ ./my-ledger.sh register
The balance command takes no extra arguments and shows the current balance in every account.
$ ./my-ledger.sh balance
This is the only supported flag by the ledger:
"--sort date" sorts the "print" and "register" command's transactions by date. For example this is the command needed to be ran in order to sort the "print" transactions by date:
$ ./my-ledger.sh --sort date print
MIT License
Copyright (c) 2019 Jcordoba