pypi

package
v0.1.99 Latest Latest
Warning

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

Go to latest
Published: May 27, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PyPI

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

PyPI represents a PyPI package manager

func New

func New(verbose bool) *PyPI

New creates a new PyPI package manager

func (*PyPI) AddExtraDirectIndexURL added in v0.1.84

func (p *PyPI) AddExtraDirectIndexURL(indexURL string)

AddExtraDirectIndexURL allows adding an extra index URL directly from code

func (*PyPI) CheckEndpoint added in v0.1.65

func (p *PyPI) CheckEndpoint() error

func (*PyPI) ClearExtraIndexURLs added in v0.1.84

func (p *PyPI) ClearExtraIndexURLs()

ClearExtraIndexURLs clears all extra index URLs

func (*PyPI) ForceReadPipConf added in v0.1.84

func (p *PyPI) ForceReadPipConf()

ForceReadPipConf forces reading from pip.conf files, used for testing

func (*PyPI) GetExtraIndexURLs added in v0.1.84

func (p *PyPI) GetExtraIndexURLs() []string

GetExtraIndexURLs returns the list of extra index URLs

func (*PyPI) GetLatestVersion

func (p *PyPI) GetLatestVersion(packageName string) (string, error)

GetLatestVersion returns the latest version of a package from PyPI

func (*PyPI) GetRequestMetrics added in v0.1.84

func (p *PyPI) GetRequestMetrics() utils.HTTPClientMetrics

GetRequestMetrics returns metrics about HTTP requests

func (*PyPI) IsHostUnreachable added in v0.1.90

func (p *PyPI) IsHostUnreachable(urlStr string) bool

IsHostUnreachable checks if a host has been marked as unreachable

func (*PyPI) MarkHostUnreachable added in v0.1.90

func (p *PyPI) MarkHostUnreachable(urlStr string)

MarkHostUnreachable marks a host as unreachable

func (*PyPI) SetCustomIndexURL

func (p *PyPI) SetCustomIndexURL() error

SetCustomIndexURL sets a custom PyPI index URL based on environment variables or pip.conf.

func (*PyPI) SetDirectIndexURL added in v0.1.84

func (p *PyPI) SetDirectIndexURL(indexURL string)

SetDirectIndexURL allows setting the index URL directly from code

func (*PyPI) SetIndexURLFromPyProjectTOML added in v0.1.84

func (p *PyPI) SetIndexURLFromPyProjectTOML(content []byte)

SetIndexURLFromPyProjectTOML sets the PyPI index URL from pyproject.toml content.

func (*PyPI) SetIndexURLFromRequirements added in v0.1.84

func (p *PyPI) SetIndexURLFromRequirements(content string)

SetIndexURLFromRequirements sets the PyPI index URL from a requirements file content.

Jump to

Keyboard shortcuts

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