pypi

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: Apache-2.0 Imports: 8 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