hledger/examples
2025-12-31 09:34:27 -10:00
..
budgeting
costs
csv
dungeons-and-dragons
i18n
investing
invoicing
lots
multi-year
reports
self-tracking
shared-finances
systemd
templates
.gitignore
1468.j
alias.journal
all.journal
ascii.journal
balance-multicol.journal
bcexample.hledger
bitcoin-split-coinbase.journal
borrowing.journal
business.journal
chinese.journal
Cody.journal
current.journal
demote-accts.aliases
demote-accts.conf
farfuture.j
forecast.journal
hledger2beancount.conf
multicurrency.journal
onelinecsv.hs
personal.journal
quickstart.journal
README.md
reports1.hledger.sh
reports2.hledger.sh
sample2.journal
sample.csv
sample.csv.cp1252.rules
sample.csv.iso88591.rules
sample.csv.rules
sample.fr.cp1252.csv
sample.fr.csv.py
sample.fr.iso88591.csv
sample.fr.utf8.csv
sample.j1
sample.journal
sample.journal.csv
sample.journaldc
sample.timeclock
sample.timedot
sample.timedothm
status.journal
templates.journal
TXF-spec-v042.org
unicode.journal
vat.journal

Here in examples/ youll find a mixed bag of sample journals, time logs, CSV rules, scripts, etc. Like the Cookbook docs, these vary in age and quality; “examples” here does not mean “exemplary”. Some may be ready to use; some are to be studied and adapted; some are just for interest; some are outdated and best ignored.

The content here is not necessarily stable but here are some subcategories as of 2024-01:

  • budgeting - some budgeting-related journals
  • costs - some examples of cost notation
  • csv - a growing collection of rules and maybe helper scripts you can use and adapt for reading real world CSV/TSV/SSV files
  • dungeons-and-dragons - a nifty example of dungeon master accounting
  • i18n - examples of non-ascii data and account declarations in different languages
  • investing - a place to collect investing-related journal entries
  • invoicing - scripts and templates for generating invoices
  • multi-year - examples of working with multiple year files
  • reports - miscellaneous reporting scripts
  • self-tracking - a mini-tutorial on working with Marek Gibneys “Syntax for Self-Tracking” logging format
  • systemd - an example of systemd service configuration for hledger-web
  • templates - a start at gathering “clean starter file sets for various needs” (2021)