Skip to main content

hledger-textual

PyPI GitHub Release CI Coverage

A full-featured terminal user interface for hledger plain-text accounting. Manage transactions, recurring rules, budgets, and investments — with multi-period reports, account drill-downs, and git sync — all from your terminal.

Built with Textual and Python.

hledger-textual demo

✨ Feature highlights

  • 📊 Multi-period reports — monthly, quarterly, yearly, and custom ranges, with charts
  • 🔁 Recurring transaction rules with calendar view and one-shot generation
  • 💰 Budgets with overview screen and per-category drill-down
  • 📥 CSV import wizard with separator/header detection and rule editor
  • 📈 Investment tracking with cost basis and market value conversion
  • 🔄 Git sync and cloud sync support for the journal
  • 🧩 Custom report builder with saved filters
  • 🏦 Account hierarchy with directives (notes, metadata)
  • 📄 PDF / CSV export of every view

Why hledger-textual?

hledger-textual is the most advanced TUI in the hledger ecosystem, with feature parity for budgets, recurring transactions, investments, and reports. Everything lives in plain-text files you already own — the journal, a budget.journal for budgets, CSV rules for imports — so no database, no lock-in, and git-friendly versioning of your finances.

Stack

  • Python 3.12+
  • Textual - TUI framework
  • hledger - plain-text accounting (must be installed separately)
  • uv - package manager (no requirements.txt needed, dependencies are in pyproject.toml)
  • pytest - testing

Requirements

  • Python 3.12+
  • hledger installed and available in PATH

Installation

# With pipx
pipx install hledger-textual

# With uv
uv tool install hledger-textual

Usage

hledger-textual -f path/to/your.journal

The journal file is resolved in this order:

  1. -f / --file CLI argument
  2. LEDGER_FILE environment variable
  3. ~/.config/hledger-textual/config.toml (journal_file key)
  4. ~/.hledger.journal

Default currency

For multi-currency journals, the default currency is resolved in this order:

  1. The first commodity directive declared in the journal (following include files), e.g. commodity €1,000.00.
  2. The default_commodity key in ~/.config/hledger-textual/config.toml.

When resolved, the Accounts and Summary views convert balances to that currency using hledger -X --infer-market-prices, so P price directives in the journal are honored (see examples/multicurrency-prices.journal). Commodities without a price are shown in their original currency, and the Summary's Income / Expenses / Liabilities breakdowns show — instead of a percentage for them (a note names the excluded commodities). Percentages are always computed on converted amounts, so rows in different currencies are never compared one-to-one.

When nothing is resolved, the Accounts view shows each account's balances in their original currencies (stacked within the cell), the Reports view's flat multi-period mode marks multi-currency accounts with a ◆ prefix, and the Summary overview shows a per-currency balance line under each card (marquee scrolling when it overflows). The Reports view's stacked mode (M) always expands each currency into its own row. Summary breakdown percentages stay hidden (—) for journals that mix currencies in that case, since there is no common denominator; single-currency journals are unaffected.

To pin a currency via config instead:

default_commodity = "€"

Configuration

Full reference: the Wiki documents every option. A minimal ~/.config/hledger-textual/config.toml:

journal_file = "~/finance/all.journal"
default_commodity = "€"
theme = "nord"

# Reorder the tabs (any subset; missing tabs keep their default order)
tab_order = ["summary", "accounts", "transactions", "budget", "recurring", "reports"]

Documentation

See the Wiki for the full documentation: feature overview, configuration, investment tracking, and per-tab reference.

Roadmap

Planned work is tracked as enhancement issues — vote, comment, or pick one up.

Contributing

Contributions are welcome! See CONTRIBUTING.md for the development setup, test suite, and pull-request flow.

Development

git clone https://github.com/thesmokinator/hledger-textual.git
cd hledger-textual
uv sync

Testing

# Run all tests
uv run pytest

# Run with verbose output
uv run pytest -v

# Run with coverage report
uv run pytest --cov=hledger_textual --cov-report=term-missing

Metadata

Release files for hledger-textual 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hledger-textual 0.7.0
File Size Uploaded Provenance Actions
hledger_textual-0.7.0.tar.gz 155.1 kB With provenance Details for hledger_textual-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hledger-textual 0.7.0
File Interpreter ABI Platform Actions
hledger_textual-0.7.0-py3-none-any.whl Python 3 none any Details for hledger_textual-0.7.0-py3-none-any.whl

Total release size: 352.1 kB

Release files / hledger_textual-0.7.0.tar.gz

Download URL hledger_textual-0.7.0.tar.gz
Size 155.1 kB
Tags Source
SHA-256 checksum
How to use checksums
428bb8744c1aa4565c6f12f4c8d5ffd9c57ae6f148609872d4e0fb17ec606667
BLAKE2b-256 checksum
How to use checksums
7a9d8a8d523d385beb21b7f47d289817845e30ea37b77fd3a77314f39c51ffcf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Release files / hledger_textual-0.7.0-py3-none-any.whl

Download URL hledger_textual-0.7.0-py3-none-any.whl
Size 197.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
93d6eae74c444468b4ccc34dc2226519c1983a8f09b701be0bdb52b00979b87c
BLAKE2b-256 checksum
How to use checksums
e0add971034d83e3847319e6067a1bd657f2932f7c44389abd3334a1624e7ca6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Security for hledger-textual 0.7.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for hledger_textual-0.7.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.7.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page