Skip to main content

Check balances against simple expressions combining multiple accounts in beancount

Project description

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 USD

1991-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 USD

1991-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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

beancount_balexpr-0.4.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

beancount_balexpr-0.4.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file beancount_balexpr-0.4.0.tar.gz.

File metadata

  • Download URL: beancount_balexpr-0.4.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.2

File hashes

Hashes for beancount_balexpr-0.4.0.tar.gz
Algorithm Hash digest
SHA256 6ca1ed11d1b4a540e949340a2844297296ea1602bbf9ef486aefe8ced97264db
MD5 2e480ad255260c56f2b92a9d991dc77d
BLAKE2b-256 34f673a1b970a1f43544b9f4e115b2c634eab67b6c0fcb3fd632432da7a55d71

See more details on using hashes here.

File details

Details for the file beancount_balexpr-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: beancount_balexpr-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.2

File hashes

Hashes for beancount_balexpr-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 406780b0cba7b2ccbb72938d8fe66f7956dc36991aa619147ce4f6bfbb2f8e52
MD5 3200e7d19186cef932241142cc36afc3
BLAKE2b-256 4d21538ff99051bd397a615869d48a550b0b828c664849723efb6f9fab6bfd4b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page