python

package
v1.31.3 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: Apache-2.0 Imports: 34 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	PythonPackageTypeIdentifier = "pypi://"

	CurationPipMinimumVersion = "23.0.0"
	PoetryNoInteractionFlag   = "--no-interaction"

	CurationPoetryMinimumVersion = "1.2.0"
)

Variables

This section is empty.

Functions

func BuildDependencyTree

func BuildDependencyTree(params technologies.BuildInfoBomGeneratorParams, technology techutils.Technology) (dependencyTree []*clientutils.GraphNode, uniqueDeps []string, downloadUrls map[string]string, err error)

func NormalizePypiName added in v1.31.0

func NormalizePypiName(name string) string

func ResolveVersionRange added in v1.31.0

func ResolveVersionRange(rangeSpec string, candidates []string) string

ResolveVersionRange returns the newest version from candidates satisfying rangeSpec. Returns "" if no candidate matches.

func SetPipVirtualEnvPath

func SetPipVirtualEnvPath() (restoreEnv func() error, err error)

Execute virtualenv command: "virtualenv venvdir" / "python3 -m venv venvdir" and set path

Types

type CvsBlockedError added in v1.31.0

type CvsBlockedError struct {
	Packages []PinnedRequirement
	Cause    error
}

CvsBlockedError is returned when CVS hides a pinned version from the simple index. Packages lists the blockers so the curation-audit command can recover policy details via the metadata-API fallback.

func (*CvsBlockedError) Error added in v1.31.0

func (e *CvsBlockedError) Error() string

func (*CvsBlockedError) Unwrap added in v1.31.0

func (e *CvsBlockedError) Unwrap() error

type PinnedRequirement added in v1.31.0

type PinnedRequirement struct {
	Name          string
	Version       string
	VersionRange  string
	ParentName    string
	ParentVersion string
}

PinnedRequirement is a blocker extracted from pip's failure output.

Jump to

Keyboard shortcuts

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