package ppx_python

  1. Overview
  2. Docs
[@@deriving] plugin to generate Python conversion functions

Install

Dune Dependency

Authors

Maintainers

Sources

v0.12.0.tar.gz
sha256=1ef2b213d1dec9125a7ede1fbbd0520387759fa230b07ac6d009ed826234f7bf
md5=2c3fa39882b5fe033bd42c1e92db1a70

doc/ppx_python.runtime/Ppx_python_runtime/index.html

Module Ppx_python_runtime

val python_of_bool : bool -> Pytypes.pyobject
val bool_of_python : Pytypes.pyobject -> bool
val python_of_int : int -> Pytypes.pyobject
val int_of_python : Pytypes.pyobject -> int
val python_of_float : float -> Pytypes.pyobject
val float_of_python : Pytypes.pyobject -> float
val python_of_string : string -> Pytypes.pyobject
val string_of_python : Pytypes.pyobject -> string
val python_of_array : ('a -> Pytypes.pyobject) -> 'a array -> Pytypes.pyobject
val array_of_python : (Pytypes.pyobject -> 'a) -> Pytypes.pyobject -> 'a array
val python_of_list : ('a -> Pytypes.pyobject) -> 'a list -> Pytypes.pyobject
val list_of_python : (Pytypes.pyobject -> 'a) -> Pytypes.pyobject -> 'a list
val python_of_option : ('a -> Pytypes.pyobject) -> 'a option -> Pytypes.pyobject
val option_of_python : (Pytypes.pyobject -> 'a) -> Pytypes.pyobject -> 'a option
OCaml

Innovation. Community. Security.