Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PythonSingleton ¶
type PythonSingleton interface {
ImportModule(name string) (*python3.PyObject, error)
NewTask(task func()) (*sync.WaitGroup, error)
NewTaskSync(task func()) error
Finalize() error
}
PythonSingleton is an interface to the pythonSingleton instance
func GetPythonSingleton ¶
func GetPythonSingleton(opts ...PythonSingletonOption) PythonSingleton
GetPythonSingleton returns the existing pythonSingleton or creates a new one if one has not been created yet.
type PythonSingletonOption ¶
type PythonSingletonOption func(ps *pythonSingleton) error
func WithModules ¶
func WithModules(modules []string) PythonSingletonOption
Click to show internal directories.
Click to hide internal directories.