Skip to content

Automatic python bindings using Cppyy or similar system #332

@TheBricktop

Description

@TheBricktop

What issue is the feature request related to?

I've noticed that in readme.md is a TODO for python bindings, i think that this is pretty easy to do now using numerous automatic binding solutions for c/cpp using python

Describe the solution you'd like

I'll probably try to create python bindings using pybind or cppyy as they are quite mature and used in few other projects, that might even allow to automate the binding process whenever new change will appear in the source code.

How to achieve this

  • TASK1 Cppyy works by feeding it header file and then linker symbols, then you can use the library itself (hopefully)
  • TASK2 according to the documentation it goes like that
  • >>> import cppyy

cppyy.include('zlib.h') # bring in C++ definitions
cppyy.load_library('libz') # load linker symbols
cppyy.gbl.zlibVersion() # use a zlib API

Describe alternatives you've considered

ive found a list of possible binding generators for python and it is here https://github.com/jslee02/awesome-cpp-python-binding-generator

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions