py

package
v0.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2025 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PipInstall

func PipInstall(dep string)

Install dependencies using pip

func PipUninstall

func PipUninstall(dep string)

Uninstall dependencies using pip

func RunCode

func RunCode(code string) map[string]any

Run the Python code and return the result.

func RunCodef

func RunCodef(codeTemplate string, args ...any) map[string]any

Run the Python code with the given Golang variables and return the result. The variables should be passed by $v1, $v2, $v3... in the codeTemplate.

func RunFile added in v0.1.5

func RunFile(filePath string) map[string]any

Run the Python file and return the result.

func RunFilef added in v0.1.5

func RunFilef(filePath string, args ...any) map[string]any

Run the Python file with the given Golang variables and return the result. The variables should be passed by $v1, $v2, $v3... in the codeTemplate.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL