Skip to content

Go Pip SDKPython Package Management in Go

A comprehensive Go SDK for managing Python pip operations, virtual environments, and Python projects with CLI support

Go Pip SDK

Quick Start

Install the SDK and start managing Python packages in your Go applications:

bash
go get github.com/scagogogo/go-pip-sdk
go
package main

import (
    "fmt"
    "log"
    
    "github.com/scagogogo/go-pip-sdk/pkg/pip"
)

func main() {
    // Create a new pip manager
    manager := pip.NewManager(nil)
    
    // Install a package
    pkg := &pip.PackageSpec{
        Name:    "requests",
        Version: ">=2.25.0",
    }
    
    if err := manager.InstallPackage(pkg); err != nil {
        log.Fatal(err)
    }
    
    fmt.Println("Package installed successfully!")
}

Why Go Pip SDK?

  • Native Go Integration: No need for external Python scripts or subprocess calls
  • Production Ready: Battle-tested with comprehensive error handling and logging
  • Developer Friendly: Clean APIs with extensive documentation and examples
  • Flexible Configuration: Customizable settings for different environments and use cases

Community

License

Released under the MIT License.

Released under the MIT License.