Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

7 Commits

Repository files navigation

py

py is a high-level API wrapping the low-level CPython C-API, for go.

Installation

$ go get github.com/go-python/py

Documentation

Documentation is available on godoc:

github.com/go-python/py

Examples

package main
import (
"fmt""github.com/go-python/py"
)
funcinit() {
err:=py.Initialize()
iferr!=nil {
panic(err)
}
}
funcmain() {
gostr:="foo"pystr:=py.NewString(gostr)
fmt.Printf("hello [%v]\n", pystr)
}
$ go run ./main.go
hello [foo]

About

py is a high-level API wrapping the low-level CPython C-API, for go

Resources

Stars

17 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages