This looks very promising. Could you provide an example of how to use this as a library (and not through the CLI)? Thanks!