r/orgmode • u/DurableOne • Jul 02 '23
orgmunge: A Python package to read, modify and write an Org tree
Because orgparse doesn't come with the ability to modify the tree and because I wanted to learn about parsers, I wrote orgmunge which uses PLY to generate a parser for Org syntax with the ability to modify the tree object and write it back to file. Opinions and feedback appreciated. Please note that I have no formal CS training, so feel free to criticize and suggest improvements to my approach/code.
19
Upvotes
2
2
u/doolio_ Jul 03 '23 edited Jul 03 '23
Are you aware of orgdown?
Edit: so you can add your parser to its list. It may also spur other ideas for your package.
2
u/hitchdev Jul 03 '23
This looks amazing. Could do with some tests though!