Skip to main content

Check balances against simple expressions in beancount

Project description

beancount_balexpr

Check balances against simple expressions combining multiple accounts in beancount.

Installation

pip install beancount_balexpr

Examples

option "plugin_processing_mode" "raw"

plugin "beancount.ops.documents"
plugin "beancount.ops.pad"
plugin "beancount_balexpr.balexpr" ; <- If padding entries are used, please make sure this plugin loads after beancount.ops.pad
plugin "beancount.ops.balance"

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.5.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

beancount_balexpr-0.5.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: beancount_balexpr-0.5.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.14

File hashes

Hashes for beancount_balexpr-0.5.0.tar.gz
Algorithm Hash digest
SHA256 4bad3e719c0a84889f38ec1b50180e4fc583ab37930921e93a868b4b387cca7d
MD5 43b6839f4f982ab5e0f4f45fd1b610f7
BLAKE2b-256 3acc0cf129cfaf332349506407e2a6922afd232be8080dbced3e68730edfbee2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for beancount_balexpr-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e7faeed6a9be2b7fae545281539f1cd598bcc95a358e0caafd4a59d3315d895a
MD5 ce803673e1a39ba5ac656248a91efadd
BLAKE2b-256 d6e930a6a25c8949ec2aa56364ebe91b42b6b98d6788e58e6bf90d0fe2f27aa5

See more details on using hashes here.

Supported by

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