;examples: organise/start the CSV rules library
This commit is contained in:
parent
4965046a3a
commit
f986e2167d
@ -1,3 +0,0 @@
|
|||||||
Some examples of recent and older CSV rules files, working and
|
|
||||||
otherwise, which should give some ideas.
|
|
||||||
http://hledger.org/manual.html#csv-format describes the format.
|
|
||||||
8
examples/csv/README.md
Normal file
8
examples/csv/README.md
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# CSV rules library
|
||||||
|
|
||||||
|
Here we collect real-world [CSV rules files](https://hledger.org/hledger.html#csv),
|
||||||
|
which help hledger read many kinds of exported character-separated data.
|
||||||
|
If you've made one which might be useful to others, please add it here!
|
||||||
|
|
||||||
|
These aren't necessarily maintained, and may not work out of the box for you,
|
||||||
|
but at they are at least a good source of examples and starting points.
|
||||||
@ -1,3 +1,5 @@
|
|||||||
|
# https://www.monefy.com
|
||||||
|
|
||||||
skip 1
|
skip 1
|
||||||
fields date, account, category, amount_, currency_, converted_amount, converted_currency, description
|
fields date, account, category, amount_, currency_, converted_amount, converted_currency, description
|
||||||
date-format %d/%m/%Y
|
date-format %d/%m/%Y
|
||||||
16
examples/csv/banking/csb43.csv.rules
Normal file
16
examples/csv/banking/csb43.csv.rules
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# csb43.csv.rules
|
||||||
|
# Rules for csb2format -f csv "${CSV_FILE}" - from https://pypi.org/project/csb43/
|
||||||
|
# (Herramientas para leer y validar datos almacenados siguiendo la norma 43 del Consejo Superior Bancario (CSB) / Asociación Española de Banca (CSB),
|
||||||
|
# Spanish standard norm 43 by the 'Consejo Superior Bancario' (CSB) / 'Asociación Española de Banca' (AEB) for storing bank account transactions.)
|
||||||
|
|
||||||
|
# Skip header
|
||||||
|
skip 1
|
||||||
|
|
||||||
|
# Change to your taste
|
||||||
|
account1 assets:bank:csb43
|
||||||
|
|
||||||
|
# These appear to be the useful columns for hledger
|
||||||
|
fields _,_,_,_,_,_,currency,_,_,_,_,_,_,_,_,_,_,_,_,item1,item2,reference1,reference2,date,_,amount,_,_
|
||||||
|
|
||||||
|
# Merge items for the description
|
||||||
|
description %item1 %item2 %reference1 %reference2
|
||||||
@ -1,15 +0,0 @@
|
|||||||
# csb43.csv.rules
|
|
||||||
# Rules for csb2format -f csv "${CSV_FILE}" -
|
|
||||||
# Using https://pypi.org/project/csb43/
|
|
||||||
|
|
||||||
# Skip header
|
|
||||||
skip 1
|
|
||||||
|
|
||||||
# Change to your taste
|
|
||||||
account1 assets:bank:csb43
|
|
||||||
|
|
||||||
# These appear to be the useful columns for hledger
|
|
||||||
fields _,_,_,_,_,_,currency,_,_,_,_,_,_,_,_,_,_,_,_,item1,item2,reference1,reference2,date,_,amount,_,_
|
|
||||||
|
|
||||||
# Merge items for the description
|
|
||||||
description %item1 %item2 %reference1 %reference2
|
|
||||||
Loading…
Reference in New Issue
Block a user