gopy

package
v0.0.0-...-a5060f3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Client             *python3.PyObject // the python file
	Interact           *python3.PyObject // the python file
	Init               *python3.PyObject
	Honest_run         *python3.PyObject
	Attacker_run       *python3.PyObject
	Node_run           *python3.PyObject
	Malicious_node_run *python3.PyObject
	Test               *python3.PyObject
	LF                 *python3.PyObject // label flipping attacker
	BF                 *python3.PyObject // bit flipping attacker
	Worker             *python3.PyObject //honest worker
)

the imported module seems not able to be imported multiple times errors appear when import the module the third time not sure the reason centralized initialize the funcs instead

Functions

func ArgFromFloat

func ArgFromFloat(arg float64) *python3.PyObject

func ArgFromInt

func ArgFromInt(arg int) *python3.PyObject

func ArgFromListArray_Float

func ArgFromListArray_Float(arg [][]float64) *python3.PyObject

{list of list} --> {list of list}

func ArgFromListArray_Int

func ArgFromListArray_Int(arg [][]int) *python3.PyObject

{list of list} --> {list of tuple}

func ArgFromList_Float

func ArgFromList_Float(arg []float64) *python3.PyObject

func ArgFromList_Int

func ArgFromList_Int(arg []int) *python3.PyObject

func ArgFromString

func ArgFromString(arg string) *python3.PyObject

func GetFunc

func GetFunc(module *python3.PyObject, funcName string) *python3.PyObject

func ImportModule

func ImportModule(pyFolder string, pyFile string) *python3.PyObject

func PyListList_Float

func PyListList_Float(val *python3.PyObject) [][]float64

func PyListToFloat

func PyListToFloat(val *python3.PyObject) []float64

func PyListToInt

func PyListToInt(val *python3.PyObject) []int

func PyListTuple_Int

func PyListTuple_Int(val *python3.PyObject) [][]int

func PyToBool

func PyToBool(val *python3.PyObject) bool

func PyToFloat

func PyToFloat(val *python3.PyObject) float64

func PyToInt

func PyToInt(val *python3.PyObject) int

func PyTupleToInt

func PyTupleToInt(val *python3.PyObject) []int

func TypeCheck

func TypeCheck(val *python3.PyObject) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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