python

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package python provides a concrete Cataloger implementation for Python ecosystem files (egg, wheel, requirements.txt).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPythonCataloger added in v0.2.0

func NewPythonCataloger() *common.GenericCataloger

NewPythonCataloger returns a new Python cataloger object.

Types

type PoetryMetadata

type PoetryMetadata struct {
	Packages []PoetryMetadataPackage `toml:"package"`
}

func (PoetryMetadata) Pkgs

func (m PoetryMetadata) Pkgs() []pkg.Package

Pkgs returns all of the packages referenced within the poetry.lock metadata.

type PoetryMetadataPackage

type PoetryMetadataPackage struct {
	Name        string `toml:"name"`
	Version     string `toml:"version"`
	Category    string `toml:"category"`
	Description string `toml:"description"`
	Optional    bool   `toml:"optional"`
}

func (PoetryMetadataPackage) Pkg

Pkg returns the standard `pkg.Package` representation of the package referenced within the poetry.lock metadata.

Jump to

Keyboard shortcuts

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