python

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2026 License: MPL-2.0 Imports: 15 Imported by: 0

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.

Jump to

Keyboard shortcuts

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