Skip to content

An example that demonstrates how to write Python libraries in OCaml using pyml and pythonlib.

Notifications You must be signed in to change notification settings

useada/pyml_example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Writing a Python Library in OCaml

This is an example of how to write a python library in OCaml, using pyml and pythonlib.

gen python bindings

$ cd ocaml $ pyml_bindgen val_specs.txt adder Adder --caml-module Adder > lib.ml

this operation with generate lib.ml in ocaml

Build

$ make

test

$ cd test $ python test.py

About

An example that demonstrates how to write Python libraries in OCaml using pyml and pythonlib.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 59.0%
  • OCaml 23.0%
  • Python 13.6%
  • Makefile 4.4%