Skip to main content

Add your description here

Project description

ledger2bql

Translate Ledger CLI query syntax into BQL

Implemented in Python.

Introduction

BQL is quite a powerful language for slicing and dicing Beancount data. But, when all you need are simple queries, writing every field and filter seems tedios. In comparison, Ledger CLI's syntax is short and efficient. A simple l b bank will list all bank accounts, assuming a well-organized account tree.

The purpose of this project, a simple CLI utility, is to accept a Ledger-like syntax, generate an appropriate BQL statement, and run it for you.

Development

uv sync

Build

uv build

Run

uv run ledger2bql

or run

l ...

Usage

Set the BEANCOUNT_FILE variable to point to your Beancount ledger file.

Run

ledger2bql b card
ledger2bql r card -b 2025-08-01

To get the list of available parameters, simply run

ledger2bql
ledger2bql bal --help
ledger2bql reg --help

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

ledger2bql-0.3.0.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ledger2bql-0.3.0-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

Details for the file ledger2bql-0.3.0.tar.gz.

File metadata

  • Download URL: ledger2bql-0.3.0.tar.gz
  • Upload date:
  • Size: 18.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.14

File hashes

Hashes for ledger2bql-0.3.0.tar.gz
Algorithm Hash digest
SHA256 671a9238e20c28fa26df902a174e2e9c3cca731190b31dbf81a2b6e38d56c762
MD5 31a963c53375de529180d3acc0524c00
BLAKE2b-256 933a87dad2325f8f029b3c210a08186318bcbccf7f9c64b71e06aa4f327aeee7

See more details on using hashes here.

File details

Details for the file ledger2bql-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: ledger2bql-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 19.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.14

File hashes

Hashes for ledger2bql-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6b8eafaebfea2fddf38be5f628fb0a083a4a367fb67eb2364a77d985b4708bca
MD5 32e56cdb10aa5ae68068c1906903b972
BLAKE2b-256 02d4a493e032841ea98b1420eb7ad1e80fb08d99aa24442050115bfa1f2875fe

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