package pythonlib

  1. Overview
  2. Docs
include module type of struct include Ppx_python_runtime end
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
type pyobject = Pytypes.pyobject
val python_of_pyobject : 'a -> 'a
val pyobject_of_python : 'a -> 'a
module Of_pythonable (Pythonable : sig ... end) (Conv : sig ... end) : sig ... end
module Convert_as_string (M : Base.Stringable.S) : sig ... end
val get_class : Py.Object.t -> string Base.Option.t
module One_or_tuple : sig ... end
val to_iterable : Py.Object.t -> Py.Object.t option
module One_or_tuple_or_list : sig ... end
module Or_error_python : sig ... end
val value_errorf : ('a, unit, string, 'b) format4 -> 'a
module One_or_tuple_or_list_or_error : sig ... end
val python_printf : ('a, unit, string, Base.unit) format4 -> 'a
val python_eprintf : ('a, unit, string, Base.unit) format4 -> 'a
module Class_wrapper : sig ... end
module Defunc : sig ... end
module Gen : sig ... end

This can be used to auto-generated python<->ocaml bindings based on a cmi file.

module Module_env : sig ... end
module Py_module : sig ... end
module Py_typerep : sig ... end
module Type : sig ... end
module Let_syntax : sig ... end