Versions in this module Expand all Collapse all v0 v0.3.2 Aug 19, 2026 Changes in this version + func InstalledNodeList(dists []*InstalledDistribution, includeFiles bool) (*sbom.NodeList, error) + func NormalizeName(name string) string + type Artifact struct + Hash string + Size int64 + URL string + func (a *Artifact) HashValue() (algorithm, value string) + type Decomposer struct + func New() *Decomposer + func (d *Decomposer) DefaultOptions() any + func (d *Decomposer) Extract(opts *api.DecomposerOptions) (*sbom.NodeList, error) + func (d *Decomposer) FindCodeBases(index *code.PathIndex) ([]string, error) + func (d *Decomposer) Requirements(_ *api.DecomposerOptions) []api.Requirement + type Dependency struct + Extra []string + Marker string + Name string + Source Source + Version string + type DirectURL struct + DirInfo struct{ ... } + URL string + VCSInfo struct{ ... } + type Environment struct + Extras []string + ImplementationName string + OSName string + PlatformMachine string + PlatformPythonImplementation string + PlatformSystem string + PythonFullVersion string + PythonVersion string + SysPlatform string + func NewEnvironment(goos, goarch, pythonVersion string) (*Environment, error) + func (env *Environment) Evaluate(marker string) (bool, error) + type InstalledDistribution struct + Classifiers []string + DirectURL *DirectURL + Files []InstalledFile + HomePage string + Installer string + License string + LicenseExpression string + Name string + Path string + ProjectURLs map[string]string + Requested bool + RequiresDist []string + RequiresPython string + Summary string + Version string + func FindDistributions(fsys fs.FS) ([]*InstalledDistribution, error) + func ReadDistribution(fsys fs.FS, dir string) (*InstalledDistribution, error) + type InstalledFile struct + Algorithm string + Digest string + Path string + Size int64 + type Lockfile struct + Packages []Package + RequiresPython string + ResolutionMarkers []string + Revision int + SupportedMarkers []string + Version int + func ParseLockfile(data []byte) (*Lockfile, error) + func ReadLockfile(path string) (*Lockfile, error) + type Marker struct + func ParseMarker(s string) (*Marker, error) + func (m *Marker) Eval(env *Environment) (bool, error) + type Options struct + Concurrency int + Platform string + PythonVersion string + type Package struct + Dependencies []Dependency + DevDependencies map[string][]Dependency + Name string + OptionalDependencies map[string][]Dependency + ResolutionMarkers []string + Sdist *Artifact + Source Source + Version string + Wheels []Artifact + type PoetryDependency struct + Extras []string + Marker string + Name string + type PoetryFile struct + File string + Hash string + func (f *PoetryFile) HashValue() (algorithm, value string) + type PoetryLockfile struct + Metadata PoetryMetadata + Packages []PoetryPackage + func ParsePoetryLockfile(data []byte) (*PoetryLockfile, error) + func ReadPoetryLockfile(path string) (*PoetryLockfile, error) + type PoetryMetadata struct + ContentHash string + LockVersion string + PythonVersions string + type PoetryPackage struct + Dependencies []PoetryDependency + Description string + Extras map[string][]string + Files []PoetryFile + Groups []string + Markers map[string]string + Name string + Optional bool + PythonVersions string + RawDependencies map[string]any + RawMarkers any + Source *PoetrySource + Version string + type PoetrySource struct + Reference string + ResolvedReference string + Type string + URL string + type PyPIClient struct + Agent *khttp.Agent + BaseURL string + func NewPyPIClient(concurrency int) *PyPIClient + func (c *PyPIClient) FetchAll(packages []packageKey) map[packageKey]*pypiInfo + type PyProject struct + DependencyGroups map[string][]any + Project struct{ ... } + Tool struct{ ... } + func ReadPyProject(path string) (*PyProject, error) + func (p *PyProject) ExtraDependencies() (map[string][]*requirement, error) + func (p *PyProject) GroupDependencies() (map[string][]*requirement, error) + func (p *PyProject) MainDependencies() ([]*requirement, error) + func (p *PyProject) RootName() string + func (p *PyProject) RootVersion() string + type Source struct + Directory string + Editable string + Git string + Path string + Registry string + URL string + Virtual string + func (s *Source) IsProject() bool + type Version struct + Dev int + Epoch int + HasDev bool + HasPost bool + HasPre bool + Local string + Post int + Pre int + PreN int + Release []int + func ParseVersion(s string) (*Version, error) + func (v *Version) Compare(o *Version) int