Skip to content

Writing bindings for another language #606

Open
@ljulliar

Description

@ljulliar

I'm thinking about writing bindings for another language and my first step is to understand how Python bindings work. From what I see in bindings/py/cpp_src/ the pybind11 C++ library is used to build a Python compatible bindings from the C++ side.

Then if I take a look at, say, bindings/py/tests/encoders/rdse_test.py I see

from htm.bindings.sdr import SDR, Metrics
from htm.bindings.encoders import RDSE, RDSE_Parameters

and I'm not quite sure where the htm.bindings.sdr and htm.bindings.encoders python modules are created in the first place.

Can someone help me understand the logic of the flow here ?

Thank you everyone!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions