hledger/examples
Simon Michael 8779f2481a ;dev: PeriodData, DayPartition: haddock updates
Clarify some things. Also note an example of PeriodData wrapping around.
2025-10-11 11:02:18 -10:00
..
budgeting ;examples: forecast-budget* -> goal-budget* 2025-04-04 10:00:47 -10:00
costs ;examples: the hledger manual > Cost reporting examples, and shelltests 2023-06-28 16:20:19 -10:00
csv ;examples:csv: monefy 2025-10-08 06:44:50 -10:00
dungeons-and-dragons
i18n ;examples: add Vietnamese translations for top-level accounts (#2466) 2025-09-27 18:21:32 -10:00
investing
invoicing ;examples:invoicing: cleanups 2024-01-05 09:18:32 -10:00
lots ;examples: 2025-03-05 16:19:29 -10:00
multi-year ;examples:multi-year:readme: clarify/warn about print --equity losing directives 2024-01-23 23:52:52 -10:00
reports
self-tracking
shared-finances
systemd ;imp: added systemd and nginx files to examples dir 2021-07-05 05:24:21 -10:00
templates
.gitignore
1468.j ;tests: ui: add missing test file 2021-09-20 16:53:55 -10:00
alias.journal
all.journal
ascii.journal
balance-multicol.journal
bcexample.hledger examples: bcexample: drop beancountish double quotes 2022-07-23 02:35:17 +01:00
bitcoin-split-coinbase.journal
borrowing.journal
business.journal
chinese.journal
Cody.journal ;examples: Cody: hledger compatibility and a txn tweak 2019-08-23 08:05:44 -07:00
current.journal
demote-accts.aliases
demote-accts.conf
farfuture.j ;dev: PeriodData, DayPartition: haddock updates 2025-10-11 11:02:18 -10:00
forecast.journal
hledger2beancount.conf
multicurrency.journal
onelinecsv.hs
personal.journal
quickstart.journal
README.md ;examples:README: update 2024-01-20 15:42:38 -10:00
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 ;examples: test files for CSV encoding [#2319] 2025-02-15 14:48:30 -10:00
sample.fr.iso88591.csv
sample.fr.utf8.csv
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)