Procedure | Location | Procedure Type | Description |
---|---|---|---|
assign_py | forpy_mod | Interface | Creates a new reference to an object. Python equivalent: lhs = rhs Do not forget to destroy lhs after use. |
bytes_create | forpy_mod | Interface | Creates a bytes object from Fortran character string or character array. |
call_py | forpy_mod | Interface | Interface to call a Python objects (methods or other callables) Arguments (optional) have to be passed as tuple. Keyword arguments (optional) have to be passed as dict. |
call_py_noret | forpy_mod | Interface | Interface to call a Python objects (methods or other callables), ignoring the return value. Arguments (optional) have to be passed as tuple. Keyword arguments (optional) have to be passed as dict. |
cast | forpy_mod | Interface | Casts/Transforms between Fortran and Python datatypes |
cast_nonstrict | forpy_mod | Interface | Non-strict casts/transforms between Fortran and Python datatypes |
dict_create | forpy_mod | Function | Creates an empty Python dictionary. Python: r = {} |
err_clear | forpy_mod | Subroutine | Clears an exception. |
err_print | forpy_mod | Subroutine | Prints and clears exception. If no exception has occurred, does nothing. |
exception_matches | forpy_mod | Function | Checks if a certain type of exception has occurred. |
forpy_finalize | forpy_mod | Subroutine | Frees resources used by Python interpreter. Call when finished using forpy. |
forpy_initialize | forpy_mod | Function | Initialisation of forpy module. Must be called before using forpy. |
forpy_initialize_ext | forpy_mod | Function | |
get_sys_path | forpy_mod | Function | Getting the list of module search paths: sys.path |
have_exception | forpy_mod | Function | returns .true. if an exception has occurred |
import_py | forpy_mod | Function | Import a Python module. |
is_bool | forpy_mod | Function | Checks if object is a Python bool. |
is_bytes | forpy_mod | Function | Checks if object is a Python bytes. |
is_complex | forpy_mod | Function | Checks if object is a Python complex. |
is_dict | forpy_mod | Function | Checks if object is a Python dict. |
is_float | forpy_mod | Function | Checks if object is a Python float. |
is_int | forpy_mod | Function | Checks if object is a Python int |
is_list | forpy_mod | Function | Checks if object is a Python list. |
is_long | forpy_mod | Function | Checks if object is a Python long. |
is_ndarray | forpy_mod | Function | Checks if object is a Numpy array. |
is_none | forpy_mod | Function | Checks if object is a Python None. |
is_null | forpy_mod | Function | Returns true if object is a null-pointer internally. Object is not properly initialised then. |
is_str | forpy_mod | Function | Checks if object is a Python str |
is_tuple | forpy_mod | Function | Checks if object is a Python tuple. |
is_unicode | forpy_mod | Function | Checks if object is a Python unicode. |
list_create | forpy_mod | Interface | Creates a list. Create as empty list or from other object. |
ndarray_create | forpy_mod | Interface | Create a ndarray from a Fortran array. The ndarray will be a copy of the Fortran array. |
ndarray_create_empty | forpy_mod | Interface | Creates an empty ndarray of given shape. Array contains uninitialised values. |
ndarray_create_nocopy | forpy_mod | Interface | Create a ndarray wrapper for a Fortran array. NO copy is made, changes to the Fortran array affect the ndarray and vice versa. |
ndarray_create_ones | forpy_mod | Interface | Creates a ndarray of ones. |
ndarray_create_zeros | forpy_mod | Interface | Creates a ndarray of zeroes. |
NoneType_create | forpy_mod | Function | Creates a Python None. |
print_py | forpy_mod | Function | Python's print function. |
raise_exception | forpy_mod | Subroutine | raises an exception |
run_string | forpy_mod | Function | Run Python code that is given as string. |
str_create | forpy_mod | Interface | Creates a str object from Fortran character string or character array. |
tuple_create | forpy_mod | Interface | Creates a tuple with a given number of items. |
unicode_create | forpy_mod | Interface | Creates a unicode string from Fortran character string or character array. |
unsafe_cast_from_c_ptr | forpy_mod | Subroutine | Creates an object from a type(c_ptr), no type checks |