On 09/05/2016 06:53 PM, Ryan Nowakowski wrote:
> Hey Ledger Folks,
>
> I'm building a tool for automatically categorizing transactions based 
> on regex matching certain journal fields.  It's a standard UNIX filter
> that takes a journal file from stdin, modifies it and sends it to stdout.
> I want to maintain the exact format of the journal including comments.
> I haven't figured out a way to do this with the ledger parser python lib
> so I wrote my own[1].  Does anyone else have a better way to do this?
> I'd rather not maintain my own parser.
>
> Thanks!
>
> Ryan
>
> [1] https://gist.github.com/tubaman/0e80cec388d3d5d61e3f300e2477a9ae
>


I have a robust parser for ledger files in
https://github.com/Rudd-O/ledgerhelpers , but it is missing some
features.  It is meant to preserve the exact format and comments in the
file, so nothing gets destroyed in the parsing process.

I will welcome pull requests that add those features.

-- 
    Rudd-O
    http://rudd-o.com/

-- 

--- 
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.

Reply via email to