Skip to content

Interoperability with cython #522

@ianhbell

Description

@ianhbell

I am sure I am not the only one, but I have historically developed a number of interlinking packages based on cython interfaces, cython headers, etc.

Having discovered pybind11, I am totally enamored. I especially like how wrapping a class to python involves just a single C++ method definition if you are lucky, and you are good to go. I've been doing lots of work with pybind11 recently.

I especially like how easy it is to drop into a visual studio/Xcode debugger inside the C++ code called from the python module. That has drastically improved my compile-debug-compile cycle throughput. Previously it was all just print commands in my cython code (yuck!)...

But the crux of my problem is that I would like to switch over my API to use pybind11 instead of cython while retaining the ability to make the module(s) interoperable with cython. I know this is a big ask, but I thought I would put it out there as something I am very interested in and would like to know if there is any way to make it work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions