Skip to main content

Beancount formatter powered by dprint-plugin-beancount

Project description

beancount-format

Python package wrapping the Rust dprint-plugin-beancount formatter.

Install

pip install beancount-format

Usage

from bean_format import format_text

source = "2010-01-01 open Assets:Cash\n"
formatted = format_text(source)
print(formatted)

# Override formatter options
formatted = format_text(
    source,
    path="ledger.beancount",  # defaults to "<memory>"
    line_width=88,
    indent_width=2,
    new_line="lf",  # "lf" or "crlf"
)
print(formatted)

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

beancount_format-0.1.14-cp310-abi3-win_amd64.whl (524.2 kB view details)

Uploaded CPython 3.10+Windows x86-64

beancount_format-0.1.14-cp310-abi3-manylinux_2_28_x86_64.whl (617.3 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ x86-64

beancount_format-0.1.14-cp310-abi3-manylinux_2_28_aarch64.whl (587.1 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

beancount_format-0.1.14-cp310-abi3-macosx_11_0_arm64.whl (551.4 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

beancount_format-0.1.14-cp310-abi3-macosx_10_12_x86_64.whl (591.5 kB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

Details for the file beancount_format-0.1.14-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for beancount_format-0.1.14-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 5bf224bd4d5c10e737e250612481e9bebb408b39ad1ba1f036b9a52d12fa187b
MD5 57cbee0c0634b4fe3bc497e97648df2c
BLAKE2b-256 b00e9e31ffd1d3ec585d99696b33add6f09f2fd730f23faaab70391fa8336392

See more details on using hashes here.

Provenance

The following attestation bundles were made for beancount_format-0.1.14-cp310-abi3-win_amd64.whl:

Publisher: release.yaml on trim21/beancount-format

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file beancount_format-0.1.14-cp310-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for beancount_format-0.1.14-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f534460b1e345d4b394ad2a0ec35b3e91b3ac4a2310471efe106215b2b419b4c
MD5 efe12275b2fad22a3a5138b493a93607
BLAKE2b-256 f507843ee844b3221c46231ada17a6c946b2e55a92b4b9335966c0987e04e2f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for beancount_format-0.1.14-cp310-abi3-manylinux_2_28_x86_64.whl:

Publisher: release.yaml on trim21/beancount-format

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file beancount_format-0.1.14-cp310-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for beancount_format-0.1.14-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 eb7b1720460ee3ebb06f59041f55da0dce2bb60b01c7bf355bb76fbfb01169e1
MD5 474fbc10e6bf61e145b48f156a25c33d
BLAKE2b-256 226b182f897f961000a03502301355724f3d0e75369bf884799456f4147eaf25

See more details on using hashes here.

Provenance

The following attestation bundles were made for beancount_format-0.1.14-cp310-abi3-manylinux_2_28_aarch64.whl:

Publisher: release.yaml on trim21/beancount-format

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file beancount_format-0.1.14-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for beancount_format-0.1.14-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d50978dd2bb9e2d3031ff17facccd305e0fc351178e84ed9a22561f13fd1cedb
MD5 f21e1fa25d9a039cd0ee248df5c6e639
BLAKE2b-256 61286524232a47c247d7968911356a3046c9db6e1007660b8ea50ab8742f8cb8

See more details on using hashes here.

Provenance

The following attestation bundles were made for beancount_format-0.1.14-cp310-abi3-macosx_11_0_arm64.whl:

Publisher: release.yaml on trim21/beancount-format

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file beancount_format-0.1.14-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for beancount_format-0.1.14-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 65d5070bed82fb64ab5b00ca5ce4c0e347139cb78b3cc7bff7cde18ebd59d131
MD5 630e653db3be3cea5498149dbfc49c68
BLAKE2b-256 52f19e9751f4403a1edfaae310fb51a62824f5c087f17d2db1427341a3bfcbcc

See more details on using hashes here.

Provenance

The following attestation bundles were made for beancount_format-0.1.14-cp310-abi3-macosx_10_12_x86_64.whl:

Publisher: release.yaml on trim21/beancount-format

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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