Hello Ryan, thank you for your detailed response, it is very helpful and much appreciated.
> Is there a way to add the package but retain backward compatibility? Yes, there is a way to add the package and retain backward compatibility. I disliked the way I initially thought of, though, fortunately your question made me think about it some more and I may have another idea, that is backward compatible and offers a clean API. > Alternatively and perhaps more interesting, you could create a separate > python package on PyPI that depends on ledger. That would allow you to > iterate more quickly than the current pace of ledger releases. Interesting idea, thanks for the suggestions. I'll look into what is needed to make it happen. Though I do like Ledger's Python API to be so close to the native code. I need to dabble around with it to get a better understanding of the pros and cons. > I use it as an import in scripts and ad-hoc in ipython. Anything you'd be willing to share? > I use it as a parser[1] to then be able to automatically edit my journal > via Python. I also use that same parser to import my ledger into some > Django models for easy editing via the web. > > [1] https://gist.github.com/tubaman/0e80cec388d3d5d61e3f300e2477a9ae Interesting. With only a rough look at the code are you aware of Ledger's Data File Parsing Information¹? > Documentation is pretty sparse. Most of my use comes from exploring the > API in ipython. What would you find most helpful? A technical documentation? A tutorial? Something else? > The one I filed a couple of weeks ago ;) I assume you mean #2169.² I'll have another look. Best Alexis ¹ https://www.ledger-cli.org/3.0/doc/ledger3.html#Data-File-Parsing-Information ² https://github.com/ledger/ledger/issues/2169 -- --- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/20230227161146.jtvki66q5bgtwixn%40kei.local.
