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 Distribution

beancount_format-0.1.15.tar.gz (25.7 kB view details)

Uploaded Source

Built Distributions

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

beancount_format-0.1.15-cp310-abi3-win_amd64.whl (524.0 kB view details)

Uploaded CPython 3.10+Windows x86-64

beancount_format-0.1.15-cp310-abi3-manylinux_2_28_x86_64.whl (617.5 kB view details)

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

beancount_format-0.1.15-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.15-cp310-abi3-macosx_11_0_arm64.whl (551.3 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

beancount_format-0.1.15-cp310-abi3-macosx_10_12_x86_64.whl (591.2 kB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

Details for the file beancount_format-0.1.15.tar.gz.

File metadata

  • Download URL: beancount_format-0.1.15.tar.gz
  • Upload date:
  • Size: 25.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for beancount_format-0.1.15.tar.gz
Algorithm Hash digest
SHA256 decc2a341421d602ea237a77b1d87aae12244aeeeb809bc77e1df13869c4ad8f
MD5 968a5cd5529375b4b35881edad18af2f
BLAKE2b-256 1a014d0aae1db40eaecf4884a4c6f83ec25a228047433d540f84e97e62a5eae4

See more details on using hashes here.

Provenance

The following attestation bundles were made for beancount_format-0.1.15.tar.gz:

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.15-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for beancount_format-0.1.15-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 15f0915227de208bf78afd0773b33d5f854685082bfef257e475536b08b4f5c0
MD5 eaa05cf6da7f8b1fd7edff6c83b2732d
BLAKE2b-256 db892dee8136a8f4555cd9b9cab1090f612867fcb76b5e46c219d9421586e04e

See more details on using hashes here.

Provenance

The following attestation bundles were made for beancount_format-0.1.15-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.15-cp310-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for beancount_format-0.1.15-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bf24136162081825544122481f1f73f37c65ae9fa4b144ce955a01c211dd9025
MD5 424dc70100baea1714f3599a87ed68e5
BLAKE2b-256 210de9e0332806cb5121102bf989ed23b0cd3571498002df9aa00fe2c5521a22

See more details on using hashes here.

Provenance

The following attestation bundles were made for beancount_format-0.1.15-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.15-cp310-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for beancount_format-0.1.15-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e39a0da56f844e973380081b7e803d798092f5ea35f6c85d7221df3482a16dd9
MD5 0902267d9f3affba80c968f260d0a518
BLAKE2b-256 447d9ce27af210a4f0c6dd9167d43a96a4e3323dae446dd5925bd120f679a517

See more details on using hashes here.

Provenance

The following attestation bundles were made for beancount_format-0.1.15-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.15-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for beancount_format-0.1.15-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0961c2266d7b6bbf085d5cfbcf54e421354eab326d5733d6c44e80c222f77463
MD5 78e03e6fd46f904521534b9e17795c7b
BLAKE2b-256 6e3dc59dadd2251daf77e00d9416e215db6e3a7e3b9fc0b98bc7a945e5e8026c

See more details on using hashes here.

Provenance

The following attestation bundles were made for beancount_format-0.1.15-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.15-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for beancount_format-0.1.15-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 4eceff9af969001b65f3c77fdae07bdef52607b2bafb96868939e45d073702ee
MD5 12e95a9d5a403499370e8ee575c69a31
BLAKE2b-256 8e719c9a2c70d06bcdb7b58a12960ef2f7a2f6dd8bea58bc47a5136743e04fc4

See more details on using hashes here.

Provenance

The following attestation bundles were made for beancount_format-0.1.15-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