Fixed cram dependency specification
Add helper scripts for binding cyclic Python classes
gen_multiis a wrapper for
pyml_bindgenthat takes a TSV file of command line specs, and runs
pyml_bindgenon each of them.
combine_rec_modulesis a small program that takes generated OCaml modules and "converts" them into recursive modules
You can combine these two to make it easier to generate recursive modules, which can be useful for binding Python classes that reference each other.
Add support for
py_arg_nameattribute. It lets you use different argument names in the OCaml bindings than used in the Python functions.
--split-caml-moduleoption to split generated module into separate
pyml_bindgen-dev.opamfor easier installation of development dependencies.
Reduce number of dependencies (including when installing from the GitHub repository).
re2for regular expressions.
Drop some of the dev dependencies from the
Allow nested module types in val specs (e.g.,
Py.Object.tin val specs
Better error messages when parser or
You can now use attributes on value specifications.
Currently the only one available is
It allows you to decouple the Python method name and the generated OCaml function name.
See the examples directory on GitHub for more info.
You can now bind tuples with 2, 3, 4, or 5 elements.
They can be passed in as arguments, or returned from functions.
Only basic types and Python objects are allowed in tuples.
You can also put tuples inside of collections, e.g.,
(int * string) list, but not Options or Or_errors.
Update to dune 3
Update to cmdliner 1.1
Fix some small
Allow embedding Python source directly into generated OCaml module with the
--embed-python-sourceCLI option. See this issue for more info.
Fix bug in val spec parsing
Add full examples in the
ocamlformatversion for the tests. See this Opam repository pull request for more info.
Update lower bounds for dependencies
Fix tests to work with BusyBox/Alpine