Skip to main content

Beancount formatter powered by dprint-plugin-beancount

Project description

beancount-format

beancount formatter.

Install

pip install beancount-format

Usage

as CLI

beancount-format ./

as library

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.19.tar.gz (32.4 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.19-cp310-abi3-win_amd64.whl (524.1 kB view details)

Uploaded CPython 3.10+Windows x86-64

beancount_format-0.1.19-cp310-abi3-manylinux_2_28_x86_64.whl (616.5 kB view details)

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

beancount_format-0.1.19-cp310-abi3-manylinux_2_28_aarch64.whl (586.8 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

beancount_format-0.1.19-cp310-abi3-macosx_11_0_arm64.whl (551.8 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

beancount_format-0.1.19-cp310-abi3-macosx_10_12_x86_64.whl (591.6 kB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: beancount_format-0.1.19.tar.gz
  • Upload date:
  • Size: 32.4 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.19.tar.gz
Algorithm Hash digest
SHA256 febf627a4fea43dd31e9d0c061e9f7f130a0e60df91070df76ed37348b144f20
MD5 93cdc64af7beed8b279504be9c1da97e
BLAKE2b-256 5e7a176d3cbb7c4b35c03d5db8e438092686518a46dcf1ead84bc5ac59efc4d8

See more details on using hashes here.

Provenance

The following attestation bundles were made for beancount_format-0.1.19.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.19-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for beancount_format-0.1.19-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 f8b2d2de40ece6f668b2519c630d51ba1c9863c16da4af4721351b82a7345068
MD5 d46f98dc09e8ef1be4d88e70e16109a4
BLAKE2b-256 a45c4b48c5070754a8cb05557e99c0a4cf940dca15ab299513d961693a2a517b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for beancount_format-0.1.19-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fae4a490e932c16fc82af081f95cff549552a29fe6a5c31815be0227e9d8a164
MD5 cc0fd304dc1baeced01c9d12384453c2
BLAKE2b-256 2a1878c43dbfb3a45797dd64f4f49fd22f50caf6d9ab57d665b9069d970952d9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for beancount_format-0.1.19-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3cf14739530ddf2c266d9a266e6dc78f6ad16d60ea6fec0d547831efa949e8e6
MD5 4b88ba2e01768ae082290e72cb5708b3
BLAKE2b-256 7629819457008a173924fd5e190532f74f1c81f43a1f5e2a1f17c481d0cb9bfd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for beancount_format-0.1.19-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 36947349bb712c9897fc6aaf686bfcb75ebfd9b1fdc7f12ae548d43a15b8da61
MD5 15ba6da06281badae4c96d6b6aa4b766
BLAKE2b-256 9bc9ead8da0884ef7205198fb9821ce555875c54b0d2c4824ea17e0f3d1657c3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for beancount_format-0.1.19-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e8373fc0c8ed27a073bcc9fd7268146c170e5191edc371893d7a17d029595ba5
MD5 55aa43481664b112d666f4390030d11c
BLAKE2b-256 f4924a04c3c31ef4ba179cb667b937a5f4db4be24080260a51535d62fdf6a536

See more details on using hashes here.

Provenance

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