minchin.md-it.beancount
A Markdown-It-Py plugin that renders beancount (or bean) fenced blocks as checkbook-style registers. It serve as the Pelican-side counterpart of the Obsidian plugin beancount-register, and it renders the same layout and class names, but depends on neither Pelican or Obsidian.
```beancount
2024-09-26 * "Airbnb Payments" "Paris Trip" #ParisTrip
Liabilities:CreditCard:MyBank -200 EUR
Expenses:Travel:Accomodation
```
Use with Pelican
Add the plugin to the CommonMark reader’s extensions in your pelicanconf.py:
# pelicanconf.py
import minchin.md_it.beancount
COMMONMARK["extensions"].append(minchin.md_it.beancount.beancount_plugin)
Add the stylesheet rules from css/beancount-register.css to your theme.
How it Works
Each entry is parsed with the official beancount package. Missing amounts are filled in by Beancount’s own booking step, so one posting with no amount is the negative of the others.
A register is drawn for each account the transactions share. Ties go to Assets or Liabilities. The title bar shows the account and, when the amounts share one currency, the currency.
Negative amounts are shown as Debit and positive amounts as Credit, following the bank-statement convention.
Entries that do not parse are listed under “Not shown in the register”, and the rest of the block still renders.
Limits
The Balance column is present but empty.
Beancount directives other than transactions (open, balance, …) are not drawn.
Other Options
there is a Pygments lexer (beancount-pygments-lexer) if you’d rather see the raw ledger data.
Licence
MIT. See LICENSE.txt.
Metadata
Release files for minchin.md-it.beancount 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| minchin_md_it_beancount-1.0.0.tar.gz | 14.2 kB | Without provenance | Details for minchin_md_it_beancount-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| minchin_md_it_beancount-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for minchin_md_it_beancount-1.0.0-py3-none-any.whl |
Total release size: 27.5 kB
Release files / minchin_md_it_beancount-1.0.0.tar.gz
| Download URL | minchin_md_it_beancount-1.0.0.tar.gz |
|---|---|
| Size | 14.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
99a60628245df0bd3b3510207e927a68d4bbba59cd53acdaf40da0b998f25552
|
|
BLAKE2b-256 checksum How to use checksums |
8ba00c44a06ba31710a730db6a6f72f569e2977762cb9fdba7ec9728a92bf156
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.18
|
Release files / minchin_md_it_beancount-1.0.0-py3-none-any.whl
| Download URL | minchin_md_it_beancount-1.0.0-py3-none-any.whl |
|---|---|
| Size | 13.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a48130cb60103ca24a2f9bafd19b54122753c58a73d079b2459e500258a76946
|
|
BLAKE2b-256 checksum How to use checksums |
4daf7d89342b466abd3b0f573eb477c7ae9e2d7071b7652f1afb6177fa6fcdd5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.18
|
Security for minchin.md-it.beancount 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.