On Wed, Jul 16, 2014 at 11:44:39AM -0700, Red Street wrote:
> Here are some examples:
>
> account Assets:Foo_Bank:Deposit1
> accountmetadata :CD:fdicinsured:autorenew:ladder:taxable
> accountmetadata startdate:2013/01/01
> accountmetadata maturitydate:2013/06/01
> accountmetadata interestrate:1%
> accountmetadata accountnumber:908234901
My work-flow rely on this very same idea, except I've reused the regular
syntax for (valued) tag. I've a separate "accounts.ledger" file, which
is included by the main ledger file. Here is a sample (censored) entry
from my accounts.ledger:
account Assets:FR:Cmut:Checking
note checking account at Credit Mutuel Enseignant, Zack
; country: fr
; IBAN: FR7610278XXXXXXXXXXXXXXXXXX
; cmut-id: 000XXXXXX 01
; boobank-id: 10278XXXXXXXXXXXXXXXXXXX@cmut-zack
; ledger-file: current.ledger
Some metadata are purely informational (like IBAN), others are used by
other tools I use in my work-flow (e.g. weboob).
Given that, as you've observed, Ledger does not do anything with
account-specific metadata yet, I've implemented my own Python code (a
module called "ledgerish.py") to parse ledger-like files, including
various kinds of declarations (account, tag, etc.) and extract metadata
from them.
My own automation work-flows are built on top of that.
I haven't yet shared my code for doing that, because reimplementing this
outside Ledger feels wrong in so many ways. Ideally, Ledger itself
should support metadata on all sort of declarations, not only
transactions; and the native Python module should expose those
functionalities.
As the status of building the Ledger Python module is still obscure to
me (see recurrent threads on this mailing lists), and since I haven't
yet had time to investigate it more, I'm still stuck at my next TODO
item on this matter, i.e. "verify how this can be more properly
implemented in Ledger('s Python module)".
Cheers.
--
Stefano Zacchiroli . . . . . . . [email protected] . . . . o . . . o . o
Maître de conférences . . . . . http://upsilon.cc/zack . . . o . . . o o
Former Debian Project Leader . . @zack on identi.ca . . o o o . . . o .
« the first rule of tautology club is the first rule of tautology club »
--
---
You received this message because you are subscribed to the Google Groups
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.