Skip to main content

Dravik

PyPI - Version GitHub License

Dravik is a TUI for hledger, focused on a fast, keyboard-driven workflow for personal accounting. It provides a simple interface to interact with financial data without manual text edits.

Transactions List
You can see more screenshots in screenshots directory in the root of the project.

Main Features:

  • Accounts tree
  • Transaction list with internal filters (shortcuts for time filters, autocomplete for account path input, etc)
  • Historical balance chart
  • Balance change chart
  • Financial reports: income statement, balance sheet, cash flow
  • Account labeling (e.g., label "Electricity" instead of expenses:housing:utilities:electricity)
  • Pin accounts on the home page to see their balance
  • Currency labels (e.g., label $ instead of USD)

Note: Dravik supports only the hledger features I use. You're welcome to add more. For currency conversion, I use the equity method, so only that is supported.
Tested hledger version: 1.32


📦 Installation

Dravik can be installed using uv, a fast Rust-based package manager that automatically handles dependencies, including Python.

# Install uv (package manager):
curl -LsSf https://astral.sh/uv/install.sh | sh

# Restart your terminal or run:
source $HOME/.local/bin/env

# Install python 3.14 if you don't have it already
uv python install 3.14

# Install Dravik
uv tool install --python 3.14 dravik

Now you can start using Dravik with:

dravik-init  # Initialize configuration files
dravik       # Start Dravik

Alternative: Install via Pip

First make sure you have Python 3.14 and then install the package with your Python package manager (pip, etc)

pip install dravik

However, uv is the recommended method due to its speed and dependency management.


⚙️ Configuration

After the initial setup, Dravik creates a config file at ~/.config/dravik/config.json. Below is an example:

{
    "ledger": "/home/user/hledger/2025.ledger",
    "account_labels": {
        "assets:bank": "Banks",
        "assets:binance": "Binance",
        "assets:bank:revolut": "Revolut",
        "assets:bank:sparkasse": "Sparkasse",
        "assets:bank:paypal": "PayPal",
        "assets:cash": "Cash"
    },
    "currency_labels": {
        "USDT": "₮",
        "EUR": "€"
    },
    "pinned_accounts": [
        {"account": "assets:bank", "color": "#2F4F4F"},
        {"account": "assets:cash", "color": "#8B4513"},
        {"account": "assets:binance", "color": "#556B2F"}
    ]
}

Note: If ledger is set to null, Dravik will use hledger's default file.

Note: Dravik does not install hledger automatically. You must install and configure it separately.


🛠️ Development Setup

Refer to the Makefile for available commands and setup instructions.


📜 License

Dravik is licensed under GPL-3.0. See the LICENSE file for details.

Metadata

Release files for dravik 0.25

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

Source distribution (sdist)

Source distribution for dravik 0.25
File Size Uploaded Provenance Actions
dravik-0.25.tar.gz 1.1 MB Without provenance Details for dravik-0.25.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dravik 0.25
File Interpreter ABI Platform Actions
dravik-0.25-py3-none-any.whl Python 3 none any Details for dravik-0.25-py3-none-any.whl

Total release size: 1.1 MB

Release files / dravik-0.25.tar.gz

Download URL dravik-0.25.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
bf34a37f28bbd0ffba1fc986bcf3b88c9964c4bbf5503a8a7caa253229685d88
BLAKE2b-256 checksum
How to use checksums
3926b6958ef7684ad04e538578bc36c7a6e7d8a374351eda7692af56a865c40d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / dravik-0.25-py3-none-any.whl

Download URL dravik-0.25-py3-none-any.whl
Size 53.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
179dfe3b24ab5cef7779a0e446f2231654fcef644a8f7766ad37ba669f51a3bb
BLAKE2b-256 checksum
How to use checksums
7690943e19e15b1d186d2543165ab33a380f64e2136ed3f85c8425b83755aed5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for dravik 0.25

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.

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