From 9747b1951d7eaa1e8c7446bcce33e9c6cf1d0cb9 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sun, 23 Nov 2025 10:16:47 -0800 Subject: [PATCH] ;examples: csv: cleanup --- examples/csv/foocsv2hledger.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/examples/csv/foocsv2hledger.py b/examples/csv/foocsv2hledger.py index 14c30dc34..62eb9fb31 100644 --- a/examples/csv/foocsv2hledger.py +++ b/examples/csv/foocsv2hledger.py @@ -1,7 +1,11 @@ #!/usr/bin/env python3 -# An example of using Python to convert a certain CSV to hledger journal entries. -# This won't work as-is (unless you have this particular kind of CSV); -# use it for inspiration. hledger's own CSV rules are not used at all here. +# Here's an example of converting a particular CSV to hledger journal +# entries with your own custom script, without using hledger at all. +# This is worth considering if the conversion is hard to do with hledger's CSV rules. +# (You give up some of the domain knowledge built in to rules, +# but gain the full power of a programming language.) +# +# This script won't work as-is (without the original foo.csv); use it for inspiration. __version__ = "1.0"