Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/w1ndy/beancount_balexpr
Check balances against simple expressions in beancount
https://github.com/w1ndy/beancount_balexpr
Last synced: about 1 month ago
JSON representation
Check balances against simple expressions in beancount
- Host: GitHub
- URL: https://github.com/w1ndy/beancount_balexpr
- Owner: w1ndy
- License: mit
- Created: 2021-03-10T19:03:33.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-02T12:40:59.000Z (over 3 years ago)
- Last Synced: 2024-09-20T09:39:10.808Z (3 months ago)
- Language: Python
- Size: 15.6 KB
- Stars: 9
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-beancount - beancount-balexpr - Check balances against simple expressions combining accounts in Beancount (Plugins / Misc)
README
# beancount_balexpr
Check balances against simple expressions combining multiple accounts in beancount.## Installation
```
pip install beancount_balexpr
```## Examples
```
plugin "beancount_balexpr.balexpr"1990-01-01 open Assets:A USD
1990-01-01 open Assets:B USD
1990-01-01 open Equity:OpenBalance USD
1991-01-01 pad Assets:A Equity:OpenBalance
1991-01-01 pad Assets:B Equity:OpenBalance
1991-01-02 balance Assets:A 213.00 USD
1991-01-02 balance Assets:B 264.00 USD1991-01-03 custom "balexpr" "Assets:A+Assets:B" 477.00 USD
1991-01-03 custom "balexpr" "Assets:A+200.00" 413.00 USD
1991-01-03 custom "balexpr" "Assets:B*(Assets:A+200.00)" 109032.00 USD
1991-01-03 custom "balexpr" "Assets:A-Assets:B" -51.00 USD
1991-01-03 custom "balexpr" "Assets:A*Assets:B" 56232.00 USD
1991-01-03 custom "balexpr" "Assets:A/Assets:B" 0.81 USD
1991-01-03 custom "balexpr" "Assets:A+Assets:A*Assets:B" 56445.00 USD
1991-01-03 custom "balexpr" "(Assets:A+Assets:A)*Assets:B" 112464.00 USD1991-01-03 custom "balexpr" "
Assets:A +
Assets:B" 477.00 USD
```## Limitations
* Does not support the account names with dashes because they are conflicting with the minus sign