package ppx_python

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

Install

Dune Dependency

Authors

Maintainers

Sources

ppx_python-v0.13.0.tar.gz
sha256=c5af340fcea48a895d40ebca5af0584af8089afe22e835f1bcd96f0576fec2ed
md5=1693819df7db90947379382ea1f5545a

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.