gopy: Files | Directories

Command gopy

gopy generates (and compiles) language bindings that make it possible to call Go code and pass objects from Python.

Using gopy

gopy takes a Go package and generates bindings for all of the exported symbols. The exported symbols define the cross-language interface.

The gopy tool generates both an API stub in Python, and binding code in Go. Start with a Go package:

package hi

import "fmt"

func Hello(name string) {
	fmt.Println("Hello, %s!\n", name)

Package Files

cmd_bind.go cmd_gen.go doc.go gen.go main.go python.go


bindPackage bind provides tools to generate bindings to use Go from Python.

Package main imports 18 packages (graph). Updated 2018-06-14. Refresh now. Tools for package owners.