python

package
v0.0.0-...-0d14bb8 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package python provides Python analysis using tree-sitter. Detects imports, HTTP endpoints (Flask, FastAPI, Django), database connections, and messaging patterns.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzer

type Analyzer struct {
	// contains filtered or unexported fields
}

Analyzer implements the scanner.Analyzer interface for Python files.

func New

func New() *Analyzer

New creates a Python analyzer with a tree-sitter parser.

func (*Analyzer) Analyze

func (a *Analyzer) Analyze(path string) ([]*model.Node, []*model.Edge, error)

Analyze parses a Python file and extracts architectural elements.

func (*Analyzer) Clone

func (a *Analyzer) Clone() scanner.Analyzer

Clone returns an independent copy with a fresh tree-sitter parser. Tree-sitter parsers are not thread-safe; each goroutine needs its own.

func (*Analyzer) Extensions

func (a *Analyzer) Extensions() []string

Extensions returns Python file extensions.

func (*Analyzer) Language

func (a *Analyzer) Language() string

Language returns "python".

Jump to

Keyboard shortcuts

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