bean-sort
bean-sort is a naive sorting utility for Beancount files. It is naive in that it makes no attempt to parse the file, simply splitting on date fields.
Specifically, bean-sort splits on any date at the beginning of a line. All text between this and the next date are regarded as part of that record. This is particularly important for any pragmas which follow any actual directive.
Any test before the first date in the file is regarded as header.
The sortng is stable, that is, records already in date order are left undisturbed.
Output is written to standard output.
Installation
Either from PyPI or from the Nix flake in this repo.
Usage
> bean-sort --help
usage: bean-sort [-h] file [file ...]
Sort one or more Beancount files to standard output.
positional arguments:
file Beancount file(s) to sort
options:
-h, --help show this help message and exit
Release files for bean-sort 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bean_sort-0.1.1.tar.gz | 14.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bean_sort-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.4 kB
Release files / bean_sort-0.1.1.tar.gz
| Download URL | bean_sort-0.1.1.tar.gz |
|---|---|
| Size | 14.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a1341744b26402aaaa980eab7129f116284aa7295bf89e0bf0cd89367a0bf2a5
|
|
BLAKE2b-256 checksum How to use checksums |
d5161b9be9cc5a6ed18526d18f4ec3135b22b2d2c05d37f8786d0a711a751fed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.12
|
Release files / bean_sort-0.1.1-py3-none-any.whl
| Download URL | bean_sort-0.1.1-py3-none-any.whl |
|---|---|
| Size | 15.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
47c0c4545d89999e6d2e347d2e411e7c57fb29cb525ffb2eb4e64e9bc7bfab48
|
|
BLAKE2b-256 checksum How to use checksums |
8ee166fe6fd345342f9ba3a925f4863b4302121af6757d62e1eca1cda76dfdff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.12
|