pyccel.codegen.wrapper.cpp_to_python_wrapper module

pyccel.codegen.wrapper.cpp_to_python_wrapper module#

Module describing the code-wrapping class : CppToPythonWrapper which creates an interface exposing C++ code to Python using pybind11.

class pyccel.codegen.wrapper.cpp_to_python_wrapper.CppToPythonWrapper(sharedlib_dirpath, verbose)[source]View on GitHub#

Bases: Wrapper

Class for creating a wrapper exposing C++ code to Python.

A class which provides all necessary functions for wrapping different AST objects such that the resulting AST is Python-compatible.

Parameters:
  • sharedlib_dirpath (str) – The folder where the generated .so file will be located.

  • verbose (int) – The level of verbosity.

start_language = 'C++'#
target_language = 'Python'#