gopip

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 4 Imported by: 0

README

Go-Pip

Go bindings to manage Pip.


Example:

pip, err := utils.DetectPipBinary()
if err != nil {
	// TODO: No pip binary in system
}
command, err := New(pip).Install("conda").DryRun().Seal()
if err != nil {
	// TODO: Error building command
}
err = command.Run()
if err != nil {
	// TODO: Error running command
}

Documentation

Index

Constants

View Source
const (
	Install  verb = "install"
	Download verb = "download"
	NoVerb        = ""
)

Variables

View Source
var (
	ErrNoPackageName = errors.New("Package name not specified.")
	ErrNoVerb        = errors.New("Verb not specified.")
)

Functions

func New

func New(binaryName string) *pip

Start a new Pip command. https://pip.pypa.io/en/stable/

Types

type RunOptions

type RunOptions struct {
	Output *os.File
	Env    []string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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