Skip to main content

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

Metadata

Release files for beancount-balexpr 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for beancount-balexpr 0.5.0
File Size Uploaded Provenance
beancount_balexpr-0.5.0.tar.gz 3.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for beancount-balexpr 0.5.0
File Interpreter ABI Platform
beancount_balexpr-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.8 kB

Release files / beancount_balexpr-0.5.0.tar.gz

Download URL beancount_balexpr-0.5.0.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4bad3e719c0a84889f38ec1b50180e4fc583ab37930921e93a868b4b387cca7d
BLAKE2b-256 checksum
How to use checksums
3acc0cf129cfaf332349506407e2a6922afd232be8080dbced3e68730edfbee2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.14

Release files / beancount_balexpr-0.5.0-py3-none-any.whl

Download URL beancount_balexpr-0.5.0-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e7faeed6a9be2b7fae545281539f1cd598bcc95a358e0caafd4a59d3315d895a
BLAKE2b-256 checksum
How to use checksums
d6e930a6a25c8949ec2aa56364ebe91b42b6b98d6788e58e6bf90d0fe2f27aa5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.14

Security for beancount-balexpr 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page