Documentation
¶
Overview ¶
Package python implements a gorisk analyzer for Python projects. It supports pyproject.toml/poetry.lock, Pipfile.lock, and requirements.txt.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Detect ¶
func Detect(dir string) capability.CapabilitySet
Detect walks .py files in dir and returns the combined capability set.
Types ¶
type Adapter ¶
type Adapter struct{}
Adapter implements the analyzer.Analyzer interface for Python projects.
type PythonPackage ¶
type PythonPackage struct {
Name string
Version string
Dir string // path to site-packages/<name>; empty if not installed
Dependencies []string
Direct bool
}
PythonPackage represents a Python dependency extracted from a lockfile.
func Load ¶
func Load(dir string) ([]PythonPackage, error)
Load detects and parses the Python dependency lockfile in dir. Detection order: pyproject.toml+poetry.lock → Pipfile.lock → requirements.txt
Click to show internal directories.
Click to hide internal directories.