python

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmbeddedPython

type EmbeddedPython struct {
	// contains filtered or unexported fields
}

func NewEmbeddedPython

func NewEmbeddedPython(name string) (*EmbeddedPython, error)

NewEmbeddedPython creates a new EmbeddedPython instance. The embedded source code and python binaries are extracted on demand using the given name as the base for the temporary directory. You should ensure that the chosen name does collide with other consumers of this library.

func NewEmbeddedPythonWithTmpDir

func NewEmbeddedPythonWithTmpDir(tmpDir string, withHashInDir bool) (*EmbeddedPython, error)

func (*EmbeddedPython) AddPythonPath

func (ep *EmbeddedPython) AddPythonPath(p string)

func (*EmbeddedPython) Cleanup

func (ep *EmbeddedPython) Cleanup() error

func (*EmbeddedPython) GetBinPath

func (ep *EmbeddedPython) GetBinPath() string

func (*EmbeddedPython) GetExePath

func (ep *EmbeddedPython) GetExePath() string

func (*EmbeddedPython) GetExtractedPath

func (ep *EmbeddedPython) GetExtractedPath() string

func (*EmbeddedPython) PythonCmd

func (ep *EmbeddedPython) PythonCmd(args ...string) *exec.Cmd

func (*EmbeddedPython) PythonCmd2

func (ep *EmbeddedPython) PythonCmd2(args []string) *exec.Cmd

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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