web

package
v0.0.0-...-9bb7059 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PyPiRequest

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

func NewRequest

func NewRequest(pkgName string, cond []expression.Condition) *PyPiRequest

NewRequest creates a new package search query object on PyPi with the specified conditions

func (*PyPiRequest) DownloadPackage

func (req *PyPiRequest) DownloadPackage(link string) (string, error)

DownloadPackage downloads the package file from PyPi repository. Returns a path to downloaded file

func (*PyPiRequest) GetPackageData

func (req *PyPiRequest) GetPackageData() (string, string, error)

GetPackageData gets a first package version that fits the conditions of the operators and system requirements. Returns package version, download link. An error will be returned if a suitable version was not found or another error occurred

Jump to

Keyboard shortcuts

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