SkillAgentSearch skills...

Py

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

Install / Use

/learn @go-python/Py
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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"
)

func init() {
	err := py.Initialize()
	if err != nil {
		panic(err)
	}
}

func main() {
	gostr := "foo"
	pystr := py.NewString(gostr)
	fmt.Printf("hello [%v]\n", pystr)
}
$ go run ./main.go
hello [foo]

Related Skills

View on GitHub
GitHub Stars17
CategoryDevelopment
Updated1y ago
Forks2

Languages

Go

Security Score

75/100

Audited on Jun 5, 2024

No findings