package pyml_bindgen
Generate pyml bindings from OCaml value specifications
Install
Dune Dependency
Authors
Maintainers
Sources
0.3.0.tar.gz
md5=d9e771921a4d253b6041d3a99408fa3e
sha512=9ec4aad1307505395154d1c64665be6392292ea9fba60580d3927869427c432502bf4bb4b9102f0fdb0f177bab2950ed1f2a91219ef2e577acc2a1971858cbed
doc/CHANGELOG.html
Unreleased
NA
0.3.0 (2022-03-18)
Added
- Allow nested module types in val specs (e.g.,
Food.Dessert.Apple_pie.t
) - Allow using
Pytypes.pyobject
andPy.Object.t
in val specs - Better error messages when parser or
py_fun
creation fails You can now use attributes on value specifications.
- Currently the only one available is
py_fun_name
. - It allows you to decouple the Python method name and the generated OCaml function name.
- See the examples directory on GitHub for more info.
- Currently the only one available is
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.
Changed
- Updated docs
- Update to dune 3
- Update to cmdliner 1.1
Fixed
- Fix some small
otype
bugs
0.2.0 (2022-02-02)
- Allow embedding Python source directly into generated OCaml module with the
--embed-python-source
CLI option. See this issue for more info. - Fix bug in val spec parsing
- Update docs
- Add full examples in the
examples
directory
0.1.2 (2021-12-07)
- Use specific
ocamlformat
version for the tests. See this Opam repository pull request for more info.
0.1.1 (2021-11-04)
- Update lower bounds for dependencies
- Fix tests to work with BusyBox/Alpine
grep
command
0.1.0 (2021-10-31)
Initial release!
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page