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.1.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.1-cp310-abi3-win_arm64.whl (675.6 kB view details)

Uploaded CPython 3.10+Windows ARM64

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

Uploaded CPython 3.10+Windows x86-64

beancount_format-0.2.1-cp310-abi3-manylinux_2_28_x86_64.whl (834.9 kB view details)

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

beancount_format-0.2.1-cp310-abi3-manylinux_2_28_aarch64.whl (777.1 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

beancount_format-0.2.1-cp310-abi3-macosx_11_0_arm64.whl (722.4 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

beancount_format-0.2.1-cp310-abi3-macosx_10_12_x86_64.whl (800.4 kB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: beancount_format-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 46e7a4e46a8b368e0bd368718abc7985c4ecb391f97fc632a04ab815467a43c5
MD5 849b894f2129e0269b616969fbf52213
BLAKE2b-256 7648b390d3b550cedd42ddd6d0e74105132b2e795731ffa18e42a2a08586f03b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: beancount_format-0.2.1-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.1-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 1cc9b5db8fc4e87434eb2ac5689b2fdc175bc3ac00a93b9c035e007ab8c93c85
MD5 95f854f7ebf791bd46b152647bc134e5
BLAKE2b-256 ce2b26ef340cf4796bc2ec019ee0c0b53cd1aa3890171562335009803ec69091

See more details on using hashes here.

File details

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

File metadata

  • Download URL: beancount_format-0.2.1-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.1-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 aa63f1fa985b8c69ce556b42231492322f5bd5112bec798bf3a8d724c213aba0
MD5 edd4f495a032b454b70292133ddd43bd
BLAKE2b-256 4f3a72408202f09ca67c0c4cb6acdc133a509df306dd4148f1149e5bd5a9a265

See more details on using hashes here.

File details

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

File metadata

  • Download URL: beancount_format-0.2.1-cp310-abi3-manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 834.9 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.1-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cae2273a78980fabc16f02d5925a88331c0858bf4ee7c5a4dbcc494aa943f436
MD5 be3c10ef5a0e59d013b41f3aaa46f81f
BLAKE2b-256 216e8dff4da9b467ae86601d1174cbee39d8e1780687f82252d62c6ce8978e70

See more details on using hashes here.

File details

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

File metadata

  • Download URL: beancount_format-0.2.1-cp310-abi3-manylinux_2_28_aarch64.whl
  • Upload date:
  • Size: 777.1 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.1-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c705b18394fb5524fcf8a0a9e5ade99d61251b3d9fc398a7994ebb2f0330e24c
MD5 eec080bb81475018e07ec1f0a8aaa468
BLAKE2b-256 bc5341aea6b30f4f71c54b415a5fa10db94f93b797f7bfa51d0275ce0d50096c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: beancount_format-0.2.1-cp310-abi3-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 722.4 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.1-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fe9f7f3546dd4d7be278b0b04ae251f3eae5eeba328b3d954840294f36b2b3a1
MD5 cd3794aff9872d2b7d590f654069eb57
BLAKE2b-256 945cb1ae3e5f8a495e12dad11371fdc49e80879487a7befbf64318ca73895530

See more details on using hashes here.

File details

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

File metadata

  • Download URL: beancount_format-0.2.1-cp310-abi3-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 800.4 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.1-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 9e4f446afdbc9801d6ff730e5fb2e14785186c54abf27054749e442d1bae9263
MD5 d410ab794627c445f49a87961d0c5878
BLAKE2b-256 43f0723469bf1bbefe4df06fbc0268d2ed2d2b82f2c0012cb9eba53e224f476d

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