python

package
v0.0.0-...-eb48599 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LIB_PATH = "/var/sandbox/sandbox-python"
	LIB_NAME = "python.so"
)

Variables

This section is empty.

Functions

func ExtractOnelineDepency

func ExtractOnelineDepency(dependency string) (string, string)

func InstallDependencies

func InstallDependencies(requirements string) error

func ListDependencies

func ListDependencies() []types.Dependency

func PreparePythonDependenciesEnv

func PreparePythonDependenciesEnv() error

func RefreshDependencies

func RefreshDependencies() []types.Dependency

Types

type PythonRunner

type PythonRunner struct {
	runner.TempDirRunner
}

func (*PythonRunner) InitializeEnvironment

func (p *PythonRunner) InitializeEnvironment(code string, preload string, options *types.RunnerOptions) (string, string, error)

func (*PythonRunner) Run

func (p *PythonRunner) Run(
	code string,
	timeout time.Duration,
	stdin []byte,
	preload string,
	options *types.RunnerOptions,
) (chan []byte, chan []byte, chan bool, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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