Author of the blog post here -- that looks like exactly what I needed, so I'm probably going to add a dependency to it to https://github.com/kaaveland/eugene/ so I can delete a ton of code. :-)
That looks fantastic, so I'm actually just going to put a link to it in the post so that more people see it.