whl

package
v0.0.0-...-bb68feb Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FORMAT_WHEEL = "dist-info"
)

Variables

This section is empty.

Functions

func Extract

func Extract(path string) error

Types

type Package

type Package struct {
	Name string

	Data   *map[string]string
	Format string
	// contains filtered or unexported fields
}

func LoadPackage

func LoadPackage(name string) (*Package, error)

func (*Package) GetDependencies

func (p *Package) GetDependencies() ([]string, error)

Parse dependencies of wheel metadata. Returns error if package have unsupported format or another parse error

func (*Package) GetExtraPackages

func (p *Package) GetExtraPackages(names []string) ([]string, error)

Get extra packages. Returns error if package have unsupported format or another parse error

func (*Package) GetSize

func (p *Package) GetSize() int64

Calculate all size of files in directory with source code. Returns size in bytes

func (*Package) LoadMetaData

func (p *Package) LoadMetaData(libDir string) error

load data from wheel/egg and convert it to single format

func (*Package) Uninstall

func (p *Package) Uninstall() error

Jump to

Keyboard shortcuts

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