What's Changed
- Display advanced budget fields and solves multiple issues with budget values, reported by @Phil89a, @maciejmatczak and @alex-bo ,by @bvanelli in #158
- Document that export performs a cleanup, by @bvanelli in #172
It's time to budget!
The PR #158 introduce all advanced budget metrics that are available via frontend. The old method get_accumulated_budgeted_balance still exists, but you should now use the get_budget_history instead. Here is a preview of what is now available on the CLI:
Try it out as code:
import datetime
from actual import Actual
from actual.budgets import get_budget_history
with Actual("http://localhost:5006", password="mypass", file="Budget") as actual:
# get the history until the latest month
history = get_budget_history(actual.session)
# select the latest month
print(history[-1])
# If you want a similar object than the Actual JS API, you can convert it to a dictionary:
print(history[-1].as_dict())Special thanks to @maciejmatczak for helping test and troubleshoot all inconsistencies with the budget values.
Full Changelog: 0.18.0...0.19.0