pyproject

package
v0.77.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: Apache-2.0 Imports: 7 Imported by: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependencies added in v0.59.0

type Dependencies struct {
	set.Set[string]
}

func (*Dependencies) UnmarshalTOML added in v0.59.0

func (d *Dependencies) UnmarshalTOML(data any) error

type Group added in v0.58.1

type Group struct {
	Dependencies Dependencies `toml:"dependencies"`
}

type Parser

type Parser struct {
}

Parser parses pyproject.toml defined in PEP518. https://peps.python.org/pep-0518/

func NewParser

func NewParser() *Parser

func (*Parser) Parse

func (p *Parser) Parse(r io.Reader) (PyProject, error)

type Poetry

type Poetry struct {
	Dependencies Dependencies     `toml:"dependencies"`
	Groups       map[string]Group `toml:"group"`
}

type Project added in v0.59.1

type Project struct {
	Dependencies         Dependencies            `toml:"dependencies"`
	OptionalDependencies map[string]Dependencies `toml:"optional-dependencies"`
}

type PyProject

type PyProject struct {
	Tool    Tool    `toml:"tool"`
	Project Project `toml:"project"`
}

func (PyProject) MainDeps added in v0.59.1

func (p PyProject) MainDeps() set.Set[string]

MainDeps returns set of main deps `poetry` only uses 1 list of main dependencies `project.dependencies` (first priority) or `tool.poetry.dependencies` (if `project.dependencies` is missing)

type Tool

type Tool struct {
	Poetry Poetry `toml:"poetry"`
}

Jump to

Keyboard shortcuts

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