gopy
gopy copied to clipboard
gopy generates a CPython extension module from a go package.
A function returning a map of struct values causes a panic: `panic: interface conversion: interface {} is batman.Foo, not *batman.Foo` ``` type Foo struct { S string } // crash...
This aims to solve both #323 and #328 by supplying efficient methods to copy Python `bytes` into Go `[]byte` slices and vice versa. One question I have is whether the...
I tried to use`gopy build -vm=python3 -no-make -no-warn -rename ` to convert some Go class which implements `fmt.Stringer` interface: has `String() string` method defined. However, on Python side, `__str__(self)` relies...
As of this writing I believe gopy does not support manylinux builds due to the fact that it requires libpython (libpython*.so) to be present. Manylinux builds are against static Python...
Hi! Since links from docs are not available, I made some examples for cross-platform wheel build with ci and local https://github.com/popatam/gopy_build_wheel_example (without win yet)
First of all, my aim is to be able to load certain assets in memory with multiple goroutines for speed/performance and once an asset is loaded into memory I would...
## ENV MacOS 2020 M1 chip python3.9 (system) ## Replication ```shell # prepare mkdir dummy && cd dummy export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. go env -w GOBIN="/usr/local/go/bin/" # init project and install as...
Currently, `[]byte` slices in Go are presented in Python as a custom type, `Slice_byte`, which allows for iterating over and fetching individual byte values from the underlying slice. However, this...
Hi! I just encountered this library, and I was wondering how hard it would be to use this code to generate C bindings instead of Python bindings. I haven't looked...
Because I was trying to wrap github.com/faiface/beep/vorbis so I can play audio, but the only useful function in that package returns (Streamer, Format, err), and because it returns too many...