Helper Functions for hledger plain text accounting
Project description
hledger Helper (hhelper) - A Command-Line Tool for Managing hledger Files
Welcome to hledger Helper (hhelper), a command-line tool for simplifying and enhancing your experience with hledger, the plain-text accounting tool. Whether you're managing transactions, cleaning up your journal, fetching commodity prices, or generating recurring transactions, hhelper is here to make your life easier.
🌟 Features
hledger Helper comes packed with powerful features to streamline your accounting workflow:
-
Mark Transactions as Cleared Easily mark transactions as cleared directly from the command line. No more manual editing of your ledger files!
-
Clean Up Journal Automatically clean and format your hledger journal file. This includes aligning amounts, removing unnecessary spaces, and ensuring your journal is valid.
-
Fetch Prices Fetch historical commodity prices using Yahoo Finance and append them to your price file. Perfect for keeping your commodity valuations up to date.
-
Generate Recurring Transactions Automatically generate recurring transactions based on your predefined rules. Save time by automating repetitive entries.
🚀 Getting Started
Prerequisites
- Python 3.9 or higher
- hledger 1.25 or higher
- A valid
config.tomlfile in~/.config/hhelper/(see example config)
Installation
# install uv (package manager):
curl -LsSf https://astral.sh/uv/install.sh | sh
# restart your terminal, or run the following command:
source $HOME/.local/bin/env # or follow instructions
# install hhelper through uv
uv tool install hhelper
# Run the tool
hh
Screenshots
🛠️ Usage
Once you've launched hhelper, you'll be greeted with a user-friendly menu where you can select from the available options:
-
Mark Transactions as Cleared Navigate through your uncleared transactions and mark them as cleared with a single keypress.
-
Clean Up Journal Automatically clean and format your journal file. The tool will ensure your journal is valid before making any changes.
-
Fetch Prices Fetch historical prices for your commodities and append them to your price file. You can review the fetched prices before saving.
-
Generate Recurring Transactions Generate recurring transactions based on a period expression. Preview the transactions before appending them to your journal.
⚙️ Configuration
hhelper requires a config.toml file located at ~/.config/hhelper/config.toml. This file should define the paths to your ledger, price, header, and recurring transaction files. Here's an example configuration:
[paths]
directory = "~/finance"
ledger_file = "journal.ledger"
price_file = "prices.ledger"
header_file = "header.ledger"
recurring_tx_file = "recurring.ledger"
[commodities]
commodity_pairs = [
{ symbol = "AAPL", base_currency = "USD", quote_currency = "AAPL", is_append_space = true },
{ symbol = "BTC-USD", base_currency = "USD", quote_currency = "BTC", is_append_space = false },
]
📜 License
This project is licensed under the MIT License. See the LICENSE file for details.
🙌 Contributing
Contributions are welcomed! If you have ideas for new features, improvements, or bug fixes, please open an issue or submit a pull request. Let's make hhelper even better together!
💬 Feedback
If you have any questions, suggestions, or just want to say hello, feel free to open an issue or reach out to us. We'd love to hear from you!
Happy accounting with hledger Helper! 🎉
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hhelper-0.3.0.tar.gz.
File metadata
- Download URL: hhelper-0.3.0.tar.gz
- Upload date:
- Size: 709.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9ee4b16baf7222a474cd60c2ba3ef339b0a1f85052c0efb78df85d6a11319c0
|
|
| MD5 |
e9c04af7a64d9ac53d38b94581b6a0a4
|
|
| BLAKE2b-256 |
102f4ee231ea1030e70040a43a5dde20cf6478ad564bbc1c3aae1076077b9ba8
|
File details
Details for the file hhelper-0.3.0-py3-none-any.whl.
File metadata
- Download URL: hhelper-0.3.0-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05f6f0d23bed8147dc2f351a1aaf7d9695995653e718f708ba5b2aa19b3140c9
|
|
| MD5 |
751c2ef109861cd371e6e0c62c0405f3
|
|
| BLAKE2b-256 |
b96401b9ba2ae4bd6d4d06a39043d9b435b58192fc2495e9c9b53c6d920541b9
|