Skip to content

0.19.0

Latest

Choose a tag to compare

@bvanelli bvanelli released this 26 Nov 19:11
· 1 commit to main since this release

What's Changed

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:

image

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