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.16.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.16-cp310-abi3-win_amd64.whl (523.6 kB view details)

Uploaded CPython 3.10+Windows x86-64

beancount_format-0.1.16-cp310-abi3-manylinux_2_28_x86_64.whl (617.4 kB view details)

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

beancount_format-0.1.16-cp310-abi3-manylinux_2_28_aarch64.whl (587.2 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

beancount_format-0.1.16-cp310-abi3-macosx_11_0_arm64.whl (551.2 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

beancount_format-0.1.16-cp310-abi3-macosx_10_12_x86_64.whl (590.9 kB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: beancount_format-0.1.16.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.16.tar.gz
Algorithm Hash digest
SHA256 547dbb4a0d44a56b926f3cc8e9144462457f42ca04cbd0bde56cf976603fe0b2
MD5 95647e455c90920b9337b241c347083c
BLAKE2b-256 9a5a378330d2bfff4f8a9505a35d96425c1c3f122d3315465446112a362e005b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for beancount_format-0.1.16-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 e8a100adca85e88f869980fd0c10c35f69b797399cf98bf378d87c0f1e0d116f
MD5 99ba05c78058e7eeab9c877f5cba42b7
BLAKE2b-256 bad2781446d4328d9550515a90646abc071528f77d0a8058707008d484dddfd0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for beancount_format-0.1.16-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4766da965783db8a3ae1619307595104cab53369d8d4e93b066fb85f2b217d08
MD5 fa46aa625b504b37c6a189ccad0075a4
BLAKE2b-256 a5aac0b07ed6d81619144ef80cc128f1632e65392c676f7544a50f3444759aa5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for beancount_format-0.1.16-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ec08bdc25e12d56ab0335432063bb574a5af00b8e760775fd7876d530000c2dd
MD5 11f14dc755e87d4c4d21c0a730177694
BLAKE2b-256 ba6e86f27a83e9418e4a34ef25729958a5999b5ff9c981ba034bd98371596c98

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for beancount_format-0.1.16-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 19219f736ad89304834d2357e7c28289376d2a4c0118bc826d22a9dbbb3b3652
MD5 02af6e9321f9d3a554ac87c70dfa47de
BLAKE2b-256 1bb278150a41929720f458d689664d5afbb5d86f72bfb5f38e9643b46d62157c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for beancount_format-0.1.16-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 49d11774693b48e141fb89faeaabff428f0ccb5b7b481ed5fde65f7588b8c1f2
MD5 344fc29258d9691645a1b548786ad50d
BLAKE2b-256 2d774c26adb637fd707a2a168a37e993d0b197589b43c3e9dc53bba1c50e94fa

See more details on using hashes here.

Provenance

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