Documentation
¶
Overview ¶
Package python provides the manifest parsing and writing for Python requirements.txt.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPipfileReadWriter ¶ added in v0.3.6
func GetPipfileReadWriter() (manifest.ReadWriter, error)
GetPipfileReadWriter returns a ReadWriter for Pipfile manifest files.
func GetPoetryReadWriter ¶ added in v0.3.3
func GetPoetryReadWriter() (manifest.ReadWriter, error)
GetPoetryReadWriter returns a ReadWriter for pyproject.toml manifest files.
func GetRequirementsReadWriter ¶ added in v0.3.3
func GetRequirementsReadWriter() (manifest.ReadWriter, error)
GetRequirementsReadWriter returns a ReadWriter for requirements.txt manifest files.
Types ¶
type Pipfile ¶ added in v0.3.6
type Pipfile struct {
Packages map[string]any `toml:"packages"`
DevPackages map[string]any `toml:"dev-packages"`
}
Pipfile is a struct that represents the contents of a Pipfile.
type TokenizedRequirements ¶ added in v0.3.3
type TokenizedRequirements struct {
Name string
VersionFrom []VersionConstraint
VersionTo []VersionConstraint
}
TokenizedRequirements represents a change from one version constraint to another, with each constraint broken down into a slice of VersionConstraint structs.
type VersionConstraint ¶
type VersionConstraint struct {
// contains filtered or unexported fields
}
VersionConstraint represents a single parsed requirement constraint, consisting of an operator (e.g., "==", ">=") and a version number.