Have you looked at [mir.conv](http://mir-core.libmir.org/mir_conv.html) and [mir.parse](http://mir-algorithm.libmir.org/mir_parse.html)?
I’ll give those a try tonight. At first glance I see mention of throwing so they may not fit but I’ll know for certain soon enough.