python

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

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

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

Documentation

Overview

Package python provides backends for Python 2 and 3 using Poetry and pip.

Index

Constants

This section is empty.

Variables

View Source
var PythonPipBackend = makePythonPipBackend(getPython3())
View Source
var PythonPoetryBackend = makePythonPoetryBackend(getPython3())

PythonPoetryBackend is a UPM backend for Python 3 that uses Poetry.

View Source
var WhiteSpaceChars = " \n\t"

Functions

func RemoveFromRequirementsTxt

func RemoveFromRequirementsTxt(path string, pkgs map[api.PkgName]bool) 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) PackageToModules

func (p *PypiMap) PackageToModules(packageName string) ([]string, bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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