pypi

package
v1.13.3 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const Type string = "pypi"

Variables

View Source
var (
	Manifests  = []string{"METADATA", "requirements.txt", "poetry.lock", "PKG-INFO"}
	Extensions = []string{".egg-info"}
)

Functions

func CheckRelatedFile

func CheckRelatedFile(file string) (string, bool, bool)

func Scan

func Scan(data interface{}) interface{}

Types

type Dependency

type Dependency struct {
	Version  string `json:"version,omitempty"`
	Optional bool   `json:"optional,omitempty"`
	Markers  string `json:"markers,omitempty"`
}

type File

type File struct {
	File string `json:"file"`
	Hash string `json:"hash"`
}

type Package

type Package struct {
	Name           string                `json:"name"`
	Version        string                `json:"version"`
	Description    string                `json:"description"`
	Optional       bool                  `json:"optional"`
	PythonVersions string                `json:"python-versions"`
	Files          []File                `json:"files"`
	Dependencies   map[string]Dependency `json:"dependencies"`
	Extras         map[string][]string   `json:"extras"`
}

type PoetryLock

type PoetryLock struct {
	Packages []Package `json:"package"`
}

Jump to

Keyboard shortcuts

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