Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
type pyobject = Py.Object.t
type funcent = funcptr * int * int * bool
type pyerror_type =
| Pyerr_Exception
| Pyerr_StandardError
| Pyerr_ArithmeticError
| Pyerr_LookupError
| Pyerr_AssertionError
| Pyerr_AttributeError
| Pyerr_EOFError
| Pyerr_EnvironmentError
| Pyerr_FloatingPointError
| Pyerr_IOError
| Pyerr_ImportError
| Pyerr_IndexError
| Pyerr_KeyError
| Pyerr_KeyboardInterrupt
| Pyerr_MemoryError
| Pyerr_NameError
| Pyerr_NotImplementedError
| Pyerr_OSError
| Pyerr_OverflowError
| Pyerr_ReferenceError
| Pyerr_RuntimeError
| Pyerr_SyntaxError
| Pyerr_SystemExit
| Pyerr_TypeError
| Pyerr_ValueError
| Pyerr_ZeroDivisionError
exception Pycaml_exn of pyerror_type * string
val pytype : pyobject -> pyobject_type
val pywrap_value : 'a -> pyobject
val pyunwrap_value : pyobject -> 'a
val py_repr : pyobject -> string
val pyrefcount : pyobject -> int
val pytype_name : pyobject_type -> string
val python_last_value : unit -> pyobject
val py_true : unit -> pyobject
val py_false : unit -> pyobject
val py_is_true : pyobject -> bool
val register_for_python : (string * pyobject) array -> unit
val register_pre_functions_for_python :
(string * (string -> pyobject)) array ->
unit
val float_array_to_python : float array -> pyobject
val int_array_to_python : int array -> pyobject
val py_float_list_as_array :
?error_label:string ->
?length:int ->
pyobject ->
float array
val py_number_list_as_float_array :
?error_label:string ->
?length:int ->
pyobject ->
float array
val py_int_list_as_array :
?error_label:string ->
?length:int ->
pyobject ->
int array
val py_string_list_as_array :
?error_label:string ->
?length:int ->
pyobject ->
string array
val py_float_list_list_as_array :
?error_label:string ->
?length_outer:int ->
?length_inner:int ->
pyobject ->
float array array
val py_number_list_list_as_float_array :
?error_label:string ->
?length_outer:int ->
?length_inner:int ->
pyobject ->
float array array
val py_int_list_list_as_array :
?error_label:string ->
?length_outer:int ->
?length_inner:int ->
pyobject ->
int array array
val py_string_list_list_as_array :
?error_label:string ->
?length_outer:int ->
?length_inner:int ->
pyobject ->
string array array
val unpythonizing_function :
?name:string ->
?catch_weird_exceptions:bool ->
?extra_guards:(pyobject -> string option) array ->
?expect_tuple:bool ->
pyobject_type array ->
(pyobject array -> 'a) ->
pyobject ->
'a
val pythonize_string : string -> pyobject
val unpythonize_string : pyobject -> string
val python_interfaced_function :
?name:string ->
?catch_weird_exceptions:bool ->
?doc:string ->
?extra_guards:(pyobject -> string option) array ->
pyobject_type array ->
(pyobject array -> pyobject) ->
pyobject
val python_pre_interfaced_function :
?catch_weird_exceptions:bool ->
?doc:string ->
?extra_guards:(pyobject -> string option) array ->
pyobject_type array ->
(pyobject array -> pyobject) ->
string ->
pyobject
val ocamlpill_type_of : pyobject -> string
val check_pill_type :
?position:'a ->
?exn_name:string ->
string ->
pyobject ->
unit
val guarded_pyint_asint : pyobject -> int
val guarded_pyfloat_asfloat : pyobject -> float
val guarded_pynumber_asfloat : pyobject -> float
val guarded_pybytes_asstring : pyobject -> string
val ocamlpill_hard_unwrap : pyobject -> 'a
val py_compilestring : (string * string * int) -> pyobject
val pyobject_print : (pyobject * int * int) -> int
val pyobject_istrue : pyobject -> int
val pyobject_not : pyobject -> int
val pycallable_check : pyobject -> int
val pyobject_hasattrstring : (pyobject * string) -> int
val pyobject_hash : pyobject -> int64
val pybytes_size : pyobject -> int
val pystring_size : pyobject -> int
val pybytes_asstring : pyobject -> string
val pystring_asstring : pyobject -> string
val pybytes_asstringandsize : pyobject -> string
val pystring_asstringandsize : pyobject -> string
val pybytes_fromstring : string -> pyobject
val pystring_fromstring : string -> pyobject
val pyunicode_decodeutf8 : (string * string option) -> pyobject
val pyunicode_decodeutf16 : (string * string option * int option) -> pyobject
val pyunicode_decodeutf32 : (string * string option * int option) -> pyobject
val pyunicode_fromunicode : (int -> int) -> int -> pyobject
val pyunicode_asunicode : pyobject -> int array
val pyunicode_getsize : pyobject -> int
val pydict_new : unit -> pyobject
val pydict_clear : pyobject -> unit
val pydict_size : pyobject -> int
val pydict_delitemstring : (pyobject * string) -> int
val pyint_fromlong : int64 -> pyobject
val pyint_aslong : pyobject -> int64
val pyfloat_fromdouble : float -> pyobject
val pyfloat_asdouble : pyobject -> float
val pymodule_new : string -> pyobject
val pymodule_getname : pyobject -> string
val pymodule_getfilename : pyobject -> string
val pytuple_new : int -> pyobject
val pytuple_size : pyobject -> int
val pyerr_setnone : pyobject -> unit
val pyerr_setstring : (pyobject * string) -> unit
val pyerr_occurred : unit -> pyobject
val pyerr_exceptionmatches : pyobject -> int
val pyimport_getmoduledict : unit -> pyobject
val pyimport_addmodule : string -> pyobject
val pyimport_importmodule : string -> pyobject
val pyeval_getbuiltins : unit -> pyobject
val pyeval_getglobals : unit -> pyobject
val pyeval_getlocals : unit -> pyobject
val pyobject_size : pyobject -> int
val pyobject_ascharbuffer : pyobject -> string
val pyobject_asreadbuffer : pyobject -> string
val pyobject_aswritebuffer : pyobject -> string
val pynumber_check : pyobject -> int
val pysequence_check : pyobject -> int
val pysequence_size : pyobject -> int
val pysequence_length : pyobject -> int
val pysequence_delitem : (pyobject * int) -> int
val pysequence_delslice : (pyobject * int * int) -> int
val pymapping_check : pyobject -> int
val pymapping_size : pyobject -> int
val pymapping_length : pyobject -> int
val pymapping_haskeystring : (pyobject * string) -> int
val pyiter_check : pyobject -> int
val pynull : unit -> pyobject
val pynone : unit -> pyobject
val pytuple_empty : pyobject
val pyint_fromint : int -> pyobject
val pyint_asint : pyobject -> int