create golang bindings for a python module

I want to use the API that the Python module provides in Golang.

Calling Python from Go is detailed recently in "Python and Go : Part I - gRPC" by Miki Tebeka.
You can see an example in ardanlabs/python-go/grpc

But, as shown in their next two articles, you can also:

  • compiled Go code to a shared library and used it from the Python interactive shell.
  • use a Python module that hides the low level details of working with a shared library and then package this code as a Python package.

https://www.ardanlabs.com/images/goinggo/124_figure1.png

Full example: ardanlabs/python-go/pyext.