Documentation
¶
Overview ¶
Package python implements the Python source analyzer (manifest + module + import tracking).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PythonAnalyzer ¶
func PythonAnalyzer(opts ...Option) *pythonAnalyzer
PythonAnalyzer returns a Python source analyzer (satisfies analyzer.Analyzer and analyzer.BoundaryProvider). Concrete pointer return so tests can call Boundaries without a type assertion; cmd uses the interface upcast.
Types ¶
type BoundaryStrategy ¶
type BoundaryStrategy string
BoundaryStrategy selects the granularity at which Python packages are grouped.
const ( StrategyModule BoundaryStrategy = "module" StrategyPackage BoundaryStrategy = "package" StrategySubpackage BoundaryStrategy = "subpackage" )
Boundary strategies select the granularity at which packages are grouped.
type Option ¶
type Option func(*pythonAnalyzer)
Option configures a pythonAnalyzer.
func WithBoundaryStrategy ¶
func WithBoundaryStrategy(s BoundaryStrategy) Option
WithBoundaryStrategy sets the package-boundary strategy for the analyzer.
Click to show internal directories.
Click to hide internal directories.