From 78872fd4d66227e8b98e72d5f07ba7512977addf Mon Sep 17 00:00:00 2001 From: Bernard Siebens Date: Sat, 24 Jan 2026 21:45:19 +0100 Subject: [PATCH] Add ledger management service and API integration - Introduced `LedgerService` to handle ledger file operations, queries, and snapshots. - Added API routes for journal entry retrieval, account balances, and custom queries using FastAPI. - Updated project dependencies to include `ruff` for linting, along with its configuration. - Integrated `lifespan` for managing the lifecycle of `LedgerService`. --- .idea/misc.xml | 3 + ledger.beancount | 0 main.py | 77 +++++++++- pyproject.toml | 6 + services/__init__.py | 0 services/ledger.py | 333 +++++++++++++++++++++++++++++++++++++++++++ uv.lock | 36 +++++ 7 files changed, 449 insertions(+), 6 deletions(-) create mode 100644 ledger.beancount create mode 100644 services/__init__.py create mode 100644 services/ledger.py diff --git a/.idea/misc.xml b/.idea/misc.xml index 566dadb..7ed7fad 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -4,4 +4,7 @@