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.26.tar.gz (26.9 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.26-cp310-abi3-win_arm64.whl (787.9 kB view details)

Uploaded CPython 3.10+Windows ARM64

beancount_format-0.1.26-cp310-abi3-win_amd64.whl (867.4 kB view details)

Uploaded CPython 3.10+Windows x86-64

beancount_format-0.1.26-cp310-abi3-manylinux_2_28_x86_64.whl (957.2 kB view details)

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

beancount_format-0.1.26-cp310-abi3-manylinux_2_28_aarch64.whl (876.8 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

beancount_format-0.1.26-cp310-abi3-macosx_11_0_arm64.whl (820.7 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

beancount_format-0.1.26-cp310-abi3-macosx_10_12_x86_64.whl (926.6 kB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: beancount_format-0.1.26.tar.gz
  • Upload date:
  • Size: 26.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for beancount_format-0.1.26.tar.gz
Algorithm Hash digest
SHA256 1573d2fd671777237f02bc78a81ef4c27947a10144a21652b02044f2a751ad55
MD5 49a1e479974b0464d1970a46461b0827
BLAKE2b-256 ee877cfd127fa4e740415cb8d754665bd5a35a9745f5502b131fcfbcc1f7acd6

See more details on using hashes here.

File details

Details for the file beancount_format-0.1.26-cp310-abi3-win_arm64.whl.

File metadata

  • Download URL: beancount_format-0.1.26-cp310-abi3-win_arm64.whl
  • Upload date:
  • Size: 787.9 kB
  • Tags: CPython 3.10+, Windows ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for beancount_format-0.1.26-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 094171c2c4d65bf85872c0d9bc44c0674029df51d96330fb80e14502d9ac87dc
MD5 fb68fd59bbbe2f7ad93ab8ac122abaa6
BLAKE2b-256 9f651d791aecffb8d7432fe8f7864fb60803169ee8d0b802a8b50c08ca23f319

See more details on using hashes here.

File details

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

File metadata

  • Download URL: beancount_format-0.1.26-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 867.4 kB
  • Tags: CPython 3.10+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for beancount_format-0.1.26-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 6cf57d3b79596503f81f213cb1c90bc84d50d693f1106c721d1f4fae1b5f6882
MD5 564b6b97c9e7ebbb547d8131b55f2e7f
BLAKE2b-256 684bf99c4c85113db9328c26c0fad396ca5c4c90b2dffce90e8afb433f8f4859

See more details on using hashes here.

File details

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

File metadata

  • Download URL: beancount_format-0.1.26-cp310-abi3-manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 957.2 kB
  • Tags: CPython 3.10+, manylinux: glibc 2.28+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for beancount_format-0.1.26-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 05ec217123b5500b9edef4c8d1a73e9a41acfbd1155642336bf8918933055085
MD5 14fc7a9cee0a9aef1c37f47ab7453586
BLAKE2b-256 df48a5123ac43fb8721955308207159cfc8a48e240517221413ac26865ca0621

See more details on using hashes here.

File details

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

File metadata

  • Download URL: beancount_format-0.1.26-cp310-abi3-manylinux_2_28_aarch64.whl
  • Upload date:
  • Size: 876.8 kB
  • Tags: CPython 3.10+, manylinux: glibc 2.28+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for beancount_format-0.1.26-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c3224012d3602385730fec27092943ba29c2387ac0ebddfb6dced12d06cf33a1
MD5 b2ff8f2e04a4bbe0cb9643b66dd14719
BLAKE2b-256 4b8e7b04268a6d910d33ce187bfd99ca772a2abfb11b42e134964080818e879b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: beancount_format-0.1.26-cp310-abi3-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 820.7 kB
  • Tags: CPython 3.10+, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for beancount_format-0.1.26-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c8fc305cfd17e1a9a54d224d10e33e2bb648dd1c4ea1c74e477d876dbc33a1dc
MD5 ada0dd898bea4ac243a9e210e0bbb921
BLAKE2b-256 052f5dc690aca14256942df2125fbee6d93bd7b92e4d98e762c8086eefd34606

See more details on using hashes here.

File details

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

File metadata

  • Download URL: beancount_format-0.1.26-cp310-abi3-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 926.6 kB
  • Tags: CPython 3.10+, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for beancount_format-0.1.26-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f82aab3b99aeb5e478f64eec05528e458775e14f24de0777536c93264e0b2b7e
MD5 9920e369e78592425225ca7932661927
BLAKE2b-256 ecd58a0f21368e1f0fc1396fc7002ea175acb11900a708c7d0c5af88f09c7b39

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