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
Click to show internal directories.
Click to hide internal directories.