python

package
v0.0.0-...-ec3eda5 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2025 License: MIT Imports: 26 Imported by: 0

Documentation

Overview

Package python provides backends for Python 3 using uv, poetry and pip.

Index

Constants

This section is empty.

Variables

View Source
var MatchEggComponent = regexp.MustCompile(`(?i)\begg=(` + pep345Name + `)(?:$|[^A-Z0-9])`)
View Source
var MatchEggComponentIndexEgg = 1
View Source
var MatchPackageAndSpec = regexp.MustCompile(`(?i)^\s*(` + pep345Name + `)\s*(` + extrasSpec + `)?\s*(` + pep440VersionSpec + `)?\s*$`)
View Source
var MatchPackageAndSpecIndexExtras = 2
View Source
var MatchPackageAndSpecIndexName = 1
View Source
var MatchPackageAndSpecIndexVersion = 3
View Source
var MatchPep440VersionComponent = regexp.MustCompile(pep440VersionComponent)
View Source
var MatchSpecOnly = regexp.MustCompile(`^` + pep440VersionSpec + `$`)
View Source
var PythonPipBackend = makePythonPipBackend()
View Source
var PythonPoetryBackend = makePythonPoetryBackend()

A collection of backends exported for consumption

View Source
var PythonUvBackend = makePythonUvBackend()
View Source
var WhiteSpaceChars = " \n\t"

Functions

func RemoveFromRequirementsTxt

func RemoveFromRequirementsTxt(path string, pkgs map[api.PkgName]bool) error

func SearchLocalSqlite

func SearchLocalSqlite(query string) ([]api.PkgInfo, error)

Types

type Constraints

type Constraints map[api.PkgName]api.PkgSpec

type PipFlag

type PipFlag string

func ListRequirementsTxt

func ListRequirementsTxt(path string) ([]PipFlag, map[api.PkgName]api.PkgSpec, error)

type PypiMap

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

func NewPypiMap

func NewPypiMap() (*PypiMap, error)

func (*PypiMap) Close

func (p *PypiMap) Close() error

func (*PypiMap) ModuleToPackage

func (p *PypiMap) ModuleToPackage(moduleName string) (string, bool)

func (*PypiMap) QueryToResults

func (p *PypiMap) QueryToResults(query string) ([]api.PkgInfo, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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