Documentation
¶
Overview ¶
Package python implements import extraction for Python source files.
Index ¶
- func IsStdlib(topLevel string) bool
- type Extractor
- func (e *Extractor) Clone() extractor.Extractor
- func (e *Extractor) Extensions() []string
- func (e *Extractor) Extract(filePath string, content []byte) ([]model.ImportFact, error)
- func (e *Extractor) ExtractDefinitions(content []byte, symbolNames []string) []string
- func (e *Extractor) Language() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Extractor ¶
type Extractor struct{}
Extractor extracts import facts from Python source files.
func (*Extractor) Extensions ¶
func (*Extractor) ExtractDefinitions ¶
ExtractDefinitions returns signature lines for the given symbol names. Matches: def X(...), class X(...):, X = ..., X: Type = ...
Click to show internal directories.
Click to hide internal directories.