Interpret the output of ‘ledger’ and make it available in Python¶
Interfaces to read data from ledger.
- libwedger.get_account(account, start=None, end=None)[source]¶
Get the balance of an account for the given period.
Parameters: - account (str) – The name of the account.
- start (datetime.date) – Date from which to start counting the balance. If omitted, you’ll get the overall balance of the account.
- end (datetime.date) – Date at which to stop counting the balance. Defaults to datetime.date.today() if omitted.
Returns: The account balance (including currency symbol or commodity name).
Return type: str