Published June 27, 2025
A few days ago I blogged about maybe adding a collection of recipes here and I mentioned Cooklang. I'm pretty sure I mentioned that there is a Rust parser but not a Python one. But the Rust one has Python bindings so it shouldn't be too hard to make that into a Python package that can be distributed. And I did a TIL about what I learned about doing that.
But this isn't about this. This is about the Python parser that I'm writing. As of now it has the basic functionality I want. It can parse what I think is a normal recipe. It's probably actually good enough for my own use even if I don't think it's quite ready for distribution to the masses. There are still some things it needs:
But those are the things I need in order to have something I can ship. To have something I can use, for myself? I'm OK with not having all of that (OK, I need the metadata) since I control the input.
This means that, assuming I actually have enough time to tinker and to transcribe recipes, I should be able to start putting some recipes up at some point next week.