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"
    compact_balance_spacing=True,
)
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.2.0.tar.gz (29.0 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.2.0-cp310-abi3-win_arm64.whl (675.6 kB view details)

Uploaded CPython 3.10+Windows ARM64

beancount_format-0.2.0-cp310-abi3-win_amd64.whl (743.2 kB view details)

Uploaded CPython 3.10+Windows x86-64

beancount_format-0.2.0-cp310-abi3-manylinux_2_28_x86_64.whl (835.0 kB view details)

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

beancount_format-0.2.0-cp310-abi3-manylinux_2_28_aarch64.whl (776.4 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

beancount_format-0.2.0-cp310-abi3-macosx_11_0_arm64.whl (722.6 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

beancount_format-0.2.0-cp310-abi3-macosx_10_12_x86_64.whl (800.7 kB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: beancount_format-0.2.0.tar.gz
  • Upload date:
  • Size: 29.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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.2.0.tar.gz
Algorithm Hash digest
SHA256 151a1650f8669f86551c2910f67a44eb8659673630dbe37a78a7f1f2d1227d61
MD5 b93fd4bb7bc941717c825bdf0c1c6358
BLAKE2b-256 d7043a10c4d12c1c7675b930f445115c842e4b6613f90347b0ed4b2c4b5c1c9b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: beancount_format-0.2.0-cp310-abi3-win_arm64.whl
  • Upload date:
  • Size: 675.6 kB
  • Tags: CPython 3.10+, Windows ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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.2.0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 f1f30dd8b1af6f6aeb70ea614970204187070086c79e961402338e2f865c9db0
MD5 2a8eae1471c08901380c251c5b55f4f0
BLAKE2b-256 968ec1f73dd3ae1297b80d5882366b08373c9350ea80b5ab60a6ac9e561dfb11

See more details on using hashes here.

File details

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

File metadata

  • Download URL: beancount_format-0.2.0-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 743.2 kB
  • Tags: CPython 3.10+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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.2.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 86c8163b5a3a97b3338d7fc9e31143479f3ae9100f9bb3215147b76fef29486f
MD5 c1493a781863e68852fd0baef090222f
BLAKE2b-256 89642af53dfd82f2e02f0ebdee68254488d1e0a2a28ca31fdeabdd37f68d8d89

See more details on using hashes here.

File details

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

File metadata

  • Download URL: beancount_format-0.2.0-cp310-abi3-manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 835.0 kB
  • Tags: CPython 3.10+, manylinux: glibc 2.28+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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.2.0-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 170946a07c0eb58535c4981f29bfe08ed3f41b5ef64f198c33128f809d917da7
MD5 2079187485b0646c38378e90845841ba
BLAKE2b-256 9f2b90a47439ebbfa67232a62cc206704b3c945c00e8f4316f41a7c807318a8c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: beancount_format-0.2.0-cp310-abi3-manylinux_2_28_aarch64.whl
  • Upload date:
  • Size: 776.4 kB
  • Tags: CPython 3.10+, manylinux: glibc 2.28+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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.2.0-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 88835692cec6cee8063cd41c5dc560c5e19121054a3370d8947c160e23eb759a
MD5 06ba92dbd067900dc9f1b57fb068d790
BLAKE2b-256 232d7eb9eba2be7e10af486d4149d37bb7eb752dd823854f4f2dbf3f5be2ea55

See more details on using hashes here.

File details

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

File metadata

  • Download URL: beancount_format-0.2.0-cp310-abi3-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 722.6 kB
  • Tags: CPython 3.10+, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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.2.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f2db8335067c1c6be3f6eb9ba6612c18255a14c5f591e430b8fff916c0ab8d20
MD5 26e3ac9e00321053b537c489ad26939c
BLAKE2b-256 2e04b7206497c4b9cf2d4436767d67fdb20f7467b8e67cf70eeacfc5012fe0b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: beancount_format-0.2.0-cp310-abi3-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 800.7 kB
  • Tags: CPython 3.10+, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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.2.0-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 cce5fcb005acab8717b463aac1bdc9a82e7c53b2cdc503091097488af1eb9791
MD5 805df43d8279309b98ea6ecc5d2512cc
BLAKE2b-256 4db75af3201710a66867f501166ce0670a924d0bde1ce256c530e1670aed99f6

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