Hello Stefano,

thank you for sharing this tool. It looks very useful.

From the perspective of the maintainer of bean-query, I wonder whether a tool like this could have been implemented as a front-end that interprets the command line options and translates them into a query for bean-query in the form 'PRINT FROM ...'

If you thought about this approach, I would like to know which shortcomings of bean-query didn't allow to implement bean-grep this way. Some extensions to the PRINT statement were discussed here https://github.com/beancount/beanquery/issues/123

Cheers,
Dan


On 12/05/24 14:34, Stefano Zacchiroli wrote:
Hello beancounters, I've just released a little tool that I've needed
for quite a while but didn't have[^]: beangrep, a grep-like filter for
Beancount ledgers.

[^]: with the exception of grep.py from beanlabs at
https://github.com/beancount/beanlabs/blob/master/beanlabs/scripts/grep.py
which is more limited than my needs.

It is meant to be way simpler than beanquery, but is super useful for
quick queries via the CLI.

Beangrep is available at: https://github.com/zacchiro/beangrep
Its README is also attached to this email.

The tool is almost feature complete for me, so it doesn't really have a
roadmap. But I welcome feedback and suggestions for improvements (or,
even better, patches!), that I'll be happy to consider. It is also not
uploaded to pypi yet, but if that's useful for others I'll be happy to
take care of that too.

Thanks for all the beans!
Cheers

--
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beancount+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/3261df12-7745-4ace-bef2-560ac9c9adb8%40grinta.net.

Reply via email to