package pyml

  1. Overview
  2. Docs
OCaml bindings for Python

Install

Dune Dependency

Authors

Maintainers

Sources

pyml.20231101.tar.gz
sha512=711cbb8fb14317a04780c4d27edc1897d8a5dd783edfd471fe16b8edfd0820f876507383526fe3b57c0046575982735504ca101ab26d96ad13363f14a2469fa1

doc/pyml/Pywrappers/index.html

Module PywrappersSource

Low-level bindings.

The library has to be initialized via Py.initialize first.

Sourceval _py_nonestruct : unit -> Pytypes.pyobject
Sourceval _py_truestruct : unit -> Pytypes.pyobject
Sourceval py_exit : int -> 'a
Sourceval py_getversion : unit -> string
Sourceval py_getplatform : unit -> string
Sourceval py_getcopyright : unit -> string
Sourceval py_getcompiler : unit -> string
Sourceval py_getbuildinfo : unit -> string
Sourceval py_fdisinteractive : Unix.file_descr Pytypes.file -> string -> int
Sourceval py_initialize : unit -> unit
Sourceval pybool_type : unit -> Pytypes.pyobject
Sourceval pycapsule_type : unit -> Pytypes.pyobject
Sourceval pycallable_check : Pytypes.pyobject -> int
Sourceval pydict_clear : Pytypes.pyobject -> unit
Sourceval pydict_delitem : Pytypes.pyobject -> Pytypes.pyobject -> int
Sourceval pydict_delitemstring : Pytypes.pyobject -> string -> int
Sourceval pydict_getitemstring : Pytypes.pyobject -> string -> Pytypes.pyobject
Sourceval pydict_new : unit -> Pytypes.pyobject
Sourceval pydict_setitem : Pytypes.pyobject -> Pytypes.pyobject -> Pytypes.pyobject -> int
Sourceval pydict_setitemstring : Pytypes.pyobject -> string -> Pytypes.pyobject -> int
Sourceval pydict_size : Pytypes.pyobject -> int
Sourceval pyerr_clear : unit -> unit
Sourceval pyerr_exceptionmatches : Pytypes.pyobject -> int
Sourceval pyerr_givenexceptionmatches : Pytypes.pyobject -> Pytypes.pyobject -> int
Sourceval pyerr_occurred : unit -> Pytypes.pyobject
Sourceval pyerr_print : unit -> unit
Sourceval pyerr_printex : int -> unit
Sourceval pyerr_setinterrupt : unit -> unit
Sourceval pyerr_setinterruptex : int -> unit
Sourceval pyerr_setnone : Pytypes.pyobject -> unit
Sourceval pyerr_setstring : Pytypes.pyobject -> string -> unit
Sourceval pyerr_setobject : Pytypes.pyobject -> Pytypes.pyobject -> unit
Sourceval pyeval_callobjectwithkeywords : Pytypes.pyobject -> Pytypes.pyobject -> Pytypes.pyobject -> Pytypes.pyobject
Sourceval pyeval_getbuiltins : unit -> Pytypes.pyobject
Sourceval pyeval_getglobals : unit -> Pytypes.pyobject
Sourceval pyeval_getlocals : unit -> Pytypes.pyobject
Sourceval pyexc_baseexception : unit -> Pytypes.pyobject
Sourceval pyexc_exception : unit -> Pytypes.pyobject
Sourceval pyexc_stopiteration : unit -> Pytypes.pyobject
Sourceval pyexc_generatorexit : unit -> Pytypes.pyobject
Sourceval pyexc_arithmeticerror : unit -> Pytypes.pyobject
Sourceval pyexc_lookuperror : unit -> Pytypes.pyobject
Sourceval pyexc_assertionerror : unit -> Pytypes.pyobject
Sourceval pyexc_attributeerror : unit -> Pytypes.pyobject
Sourceval pyexc_buffererror : unit -> Pytypes.pyobject
Sourceval pyexc_encodingwarning : unit -> Pytypes.pyobject
Sourceval pyexc_eoferror : unit -> Pytypes.pyobject
Sourceval pyexc_floatingpointerror : unit -> Pytypes.pyobject
Sourceval pyexc_oserror : unit -> Pytypes.pyobject
Sourceval pyexc_importerror : unit -> Pytypes.pyobject
Sourceval pyexc_indexerror : unit -> Pytypes.pyobject
Sourceval pyexc_keyerror : unit -> Pytypes.pyobject
Sourceval pyexc_keyboardinterrupt : unit -> Pytypes.pyobject
Sourceval pyexc_memoryerror : unit -> Pytypes.pyobject
Sourceval pyexc_nameerror : unit -> Pytypes.pyobject
Sourceval pyexc_overflowerror : unit -> Pytypes.pyobject
Sourceval pyexc_resourcewarning : unit -> Pytypes.pyobject
Sourceval pyexc_runtimeerror : unit -> Pytypes.pyobject
Sourceval pyexc_notimplementederror : unit -> Pytypes.pyobject
Sourceval pyexc_syntaxerror : unit -> Pytypes.pyobject
Sourceval pyexc_indentationerror : unit -> Pytypes.pyobject
Sourceval pyexc_taberror : unit -> Pytypes.pyobject
Sourceval pyexc_referenceerror : unit -> Pytypes.pyobject
Sourceval pyexc_systemerror : unit -> Pytypes.pyobject
Sourceval pyexc_systemexit : unit -> Pytypes.pyobject
Sourceval pyexc_typeerror : unit -> Pytypes.pyobject
Sourceval pyexc_unboundlocalerror : unit -> Pytypes.pyobject
Sourceval pyexc_unicodeerror : unit -> Pytypes.pyobject
Sourceval pyexc_unicodeencodeerror : unit -> Pytypes.pyobject
Sourceval pyexc_unicodedecodeerror : unit -> Pytypes.pyobject
Sourceval pyexc_unicodetranslateerror : unit -> Pytypes.pyobject
Sourceval pyexc_valueerror : unit -> Pytypes.pyobject
Sourceval pyexc_zerodivisionerror : unit -> Pytypes.pyobject
Sourceval pyexc_environmenterror : unit -> Pytypes.pyobject
Sourceval pyexc_ioerror : unit -> Pytypes.pyobject
Sourceval pyexc_recursionerrorinst : unit -> Pytypes.pyobject
Sourceval pyexc_warning : unit -> Pytypes.pyobject
Sourceval pyexc_userwarning : unit -> Pytypes.pyobject
Sourceval pyexc_deprecationwarning : unit -> Pytypes.pyobject
Sourceval pyexc_pendingdeprecationwarning : unit -> Pytypes.pyobject
Sourceval pyexc_syntaxwarning : unit -> Pytypes.pyobject
Sourceval pyexc_runtimewarning : unit -> Pytypes.pyobject
Sourceval pyexc_futurewarning : unit -> Pytypes.pyobject
Sourceval pyexc_importwarning : unit -> Pytypes.pyobject
Sourceval pyexc_unicodewarning : unit -> Pytypes.pyobject
Sourceval pyexc_byteswarning : unit -> Pytypes.pyobject
Sourceval pyfloat_asdouble : Pytypes.pyobject -> float
Sourceval pyfloat_fromdouble : float -> Pytypes.pyobject
Sourceval pyfloat_type : unit -> Pytypes.pyobject
Sourceval pygilstate_check : unit -> int
Sourceval pygilstate_ensure : unit -> int
Sourceval pygilstate_release : int -> unit
Sourceval pyimport_addmodule : string -> Pytypes.pyobject
Sourceval pyimport_cleanup : unit -> unit
Sourceval pyimport_execcodemodule : string -> Pytypes.pyobject -> Pytypes.pyobject
Sourceval pyimport_execcodemoduleex : string -> Pytypes.pyobject -> string -> Pytypes.pyobject
Sourceval pyimport_getmagicnumber : unit -> int64
Sourceval pyimport_getmoduledict : unit -> Pytypes.pyobject
Sourceval pyimport_importfrozenmodule : string -> int
Sourceval pyimport_import : Pytypes.pyobject -> Pytypes.pyobject
Sourceval pyimport_importmodule : string -> Pytypes.pyobject
Sourceval pyimport_importmodulelevel : string -> Pytypes.pyobject -> Pytypes.pyobject -> Pytypes.pyobject -> int -> Pytypes.pyobject
Sourceval pyimport_reloadmodule : Pytypes.pyobject -> Pytypes.pyobject
Sourceval pylist_new : int -> Pytypes.pyobject
Sourceval pylist_getitem : Pytypes.pyobject -> int -> Pytypes.pyobject
Sourceval pylist_setitem : Pytypes.pyobject -> int -> Pytypes.pyobject -> int
Sourceval pylist_size : Pytypes.pyobject -> int
Sourceval pylong_aslong : Pytypes.pyobject -> int64
Sourceval pylong_fromlong : int64 -> Pytypes.pyobject
Sourceval pymapping_check : Pytypes.pyobject -> int
Sourceval pymapping_getitemstring : Pytypes.pyobject -> string -> Pytypes.pyobject
Sourceval pymapping_haskey : Pytypes.pyobject -> Pytypes.pyobject -> int
Sourceval pymapping_haskeystring : Pytypes.pyobject -> string -> int
Sourceval pymapping_length : Pytypes.pyobject -> int
Sourceval pymapping_setitemstring : Pytypes.pyobject -> string -> Pytypes.pyobject -> int
Sourceval pymapping_size : Pytypes.pyobject -> int
Sourceval pymarshal_readobjectfromfile : Unix.file_descr Pytypes.file -> Pytypes.pyobject
Sourceval pymarshal_readlastobjectfromfile : Unix.file_descr Pytypes.file -> Pytypes.pyobject
Sourceval pymarshal_readobjectfromstring : string -> int -> Pytypes.pyobject
Sourceval pymarshal_writeobjecttofile : Pytypes.pyobject -> Unix.file_descr Pytypes.file -> int -> unit
Sourceval pymarshal_writeobjecttostring : Pytypes.pyobject -> int -> Pytypes.pyobject
Sourceval pymethod_function : Pytypes.pyobject -> Pytypes.pyobject
Sourceval pymodule_addobject : Pytypes.pyobject -> string -> Pytypes.pyobject -> int
Sourceval pymodule_getdict : Pytypes.pyobject -> Pytypes.pyobject
Sourceval pymodule_getfilename : Pytypes.pyobject -> string option
Sourceval pymodule_getname : Pytypes.pyobject -> string option
Sourceval pymodule_new : string -> Pytypes.pyobject
Sourceval pymodule_type : unit -> Pytypes.pyobject
Sourceval pymodule_setdocstring : Pytypes.pyobject -> string -> int
Sourceval pynumber_absolute : Pytypes.pyobject -> Pytypes.pyobject
Sourceval pynumber_check : Pytypes.pyobject -> int
Sourceval pynumber_inplacefloordivide : Pytypes.pyobject -> Pytypes.pyobject -> Pytypes.pyobject
Sourceval pynumber_inplacelshift : Pytypes.pyobject -> Pytypes.pyobject -> Pytypes.pyobject
Sourceval pynumber_inplacemultiply : Pytypes.pyobject -> Pytypes.pyobject -> Pytypes.pyobject
Sourceval pynumber_inplaceremainder : Pytypes.pyobject -> Pytypes.pyobject -> Pytypes.pyobject
Sourceval pynumber_inplacershift : Pytypes.pyobject -> Pytypes.pyobject -> Pytypes.pyobject
Sourceval pynumber_inplacesubtract : Pytypes.pyobject -> Pytypes.pyobject -> Pytypes.pyobject
Sourceval pynumber_inplacetruedivide : Pytypes.pyobject -> Pytypes.pyobject -> Pytypes.pyobject
Sourceval pynumber_invert : Pytypes.pyobject -> Pytypes.pyobject
Sourceval pynumber_negative : Pytypes.pyobject -> Pytypes.pyobject
Sourceval pynumber_positive : Pytypes.pyobject -> Pytypes.pyobject
Sourceval pyobject_delitem : Pytypes.pyobject -> Pytypes.pyobject -> int
Sourceval pyobject_delitemstring : Pytypes.pyobject -> string -> int
Sourceval pyobject_getattrstring : Pytypes.pyobject -> string -> Pytypes.pyobject
Sourceval pyobject_getiter : Pytypes.pyobject -> Pytypes.pyobject
Sourceval pyobject_hasattr : Pytypes.pyobject -> Pytypes.pyobject -> int
Sourceval pyobject_hasattrstring : Pytypes.pyobject -> string -> int
Sourceval pyobject_hash : Pytypes.pyobject -> int64
Sourceval pyobject_istrue : Pytypes.pyobject -> int
Sourceval pyobject_isinstance : Pytypes.pyobject -> Pytypes.pyobject -> int
Sourceval pyobject_issubclass : Pytypes.pyobject -> Pytypes.pyobject -> int
Sourceval pyobject_not : Pytypes.pyobject -> int
Sourceval pyobject_print : Pytypes.pyobject -> Unix.file_descr Pytypes.file -> int -> int
Sourceval pyobject_richcomparebool : Pytypes.pyobject -> Pytypes.pyobject -> Pytypes.compare -> int
Sourceval pyobject_setattr : Pytypes.pyobject -> Pytypes.pyobject -> Pytypes.pyobject -> int
Sourceval pyobject_setattrstring : Pytypes.pyobject -> string -> Pytypes.pyobject -> int
Sourceval pyobject_setitem : Pytypes.pyobject -> Pytypes.pyobject -> Pytypes.pyobject -> int
Sourceval pyobject_size : Pytypes.pyobject -> int
Sourceval pyrun_anyfileexflags : Unix.file_descr Pytypes.file -> string -> int -> int ref option -> int
Sourceval pyrun_fileexflags : Unix.file_descr Pytypes.file -> string -> Pytypes.input -> Pytypes.pyobject -> Pytypes.pyobject -> int -> int ref option -> Pytypes.pyobject
Sourceval pyrun_interactiveoneflags : Unix.file_descr Pytypes.file -> string -> int ref option -> int
Sourceval pyrun_interactiveloopflags : Unix.file_descr Pytypes.file -> string -> int ref option -> int
Sourceval pyrun_simplefileexflags : Unix.file_descr Pytypes.file -> string -> int -> int ref option -> int
Sourceval pyrun_stringflags : string -> Pytypes.input -> Pytypes.pyobject -> Pytypes.pyobject -> int ref option -> Pytypes.pyobject
Sourceval pyrun_simplestringflags : string -> int ref option -> int
Sourceval pysequence_check : Pytypes.pyobject -> int
Sourceval pysequence_contains : Pytypes.pyobject -> Pytypes.pyobject -> int
Sourceval pysequence_count : Pytypes.pyobject -> Pytypes.pyobject -> int
Sourceval pysequence_delitem : Pytypes.pyobject -> int -> int
Sourceval pysequence_delslice : Pytypes.pyobject -> int -> int -> int
Sourceval pysequence_fast : Pytypes.pyobject -> string -> Pytypes.pyobject
Sourceval pysequence_getitem : Pytypes.pyobject -> int -> Pytypes.pyobject
Sourceval pysequence_getslice : Pytypes.pyobject -> int -> int -> Pytypes.pyobject
Sourceval pysequence_in : Pytypes.pyobject -> Pytypes.pyobject -> int
Sourceval pysequence_index : Pytypes.pyobject -> Pytypes.pyobject -> int
Sourceval pysequence_inplaceconcat : Pytypes.pyobject -> Pytypes.pyobject -> Pytypes.pyobject
Sourceval pysequence_inplacerepeat : Pytypes.pyobject -> int -> Pytypes.pyobject
Sourceval pysequence_length : Pytypes.pyobject -> int
Sourceval pysequence_list : Pytypes.pyobject -> Pytypes.pyobject
Sourceval pysequence_repeat : Pytypes.pyobject -> int -> Pytypes.pyobject
Sourceval pysequence_setitem : Pytypes.pyobject -> int -> Pytypes.pyobject -> int
Sourceval pysequence_setslice : Pytypes.pyobject -> int -> int -> Pytypes.pyobject -> int
Sourceval pysequence_size : Pytypes.pyobject -> int
Sourceval pysequence_tuple : Pytypes.pyobject -> Pytypes.pyobject
Sourceval pyset_add : Pytypes.pyobject -> Pytypes.pyobject -> int
Sourceval pyset_contains : Pytypes.pyobject -> Pytypes.pyobject -> int
Sourceval pyset_clear : Pytypes.pyobject -> int
Sourceval pyset_discard : Pytypes.pyobject -> Pytypes.pyobject -> int
Sourceval pyset_size : Pytypes.pyobject -> int
Sourceval pyset_type : unit -> Pytypes.pyobject
Sourceval pytuple_getitem : Pytypes.pyobject -> int -> Pytypes.pyobject
Sourceval pytuple_getslice : Pytypes.pyobject -> int -> int -> Pytypes.pyobject
Sourceval pytuple_new : int -> Pytypes.pyobject
Sourceval pytuple_setitem : Pytypes.pyobject -> int -> Pytypes.pyobject -> int
Sourceval pytuple_size : Pytypes.pyobject -> int
Sourceval pytype_issubtype : Pytypes.pyobject -> Pytypes.pyobject -> int
Sourceval pytype_type : unit -> Pytypes.pyobject
Sourcemodule Python2 : sig ... end

Python 2 specific bindings.

Sourcemodule UCS2 : sig ... end

UCS2 specific bindings.

Sourcemodule UCS4 : sig ... end

UCS4 specific bindings.

Sourcemodule Python3 : sig ... end

Python 3 specific bindings.

Sourcemodule Pycaml : sig ... end

Automatic wrappers for Pycaml_compat.

OCaml

Innovation. Community. Security.