{"modulePath":"github.com/kehoej/contextception","version":"v1.0.8","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package python\n\nPackage python implements import extraction for Python source files.\n\n## Functions\n\n```go\nfunc IsStdlib(topLevel string) bool\n```\nIsStdlib reports whether the given top-level module name belongs to the Python standard library.\n\n## Types\n\n```go\ntype Extractor struct{}\n```\nExtractor extracts import facts from Python source files.\n\n```go\nfunc New() *Extractor\n```\nNew returns a new Python extractor.\n\n```go\nfunc (e *Extractor) Clone() extractor.Extractor\n```\n\n```go\nfunc (e *Extractor) Extensions() []string\n```\n\n```go\nfunc (e *Extractor) Extract(filePath string, content []byte) ([]model.ImportFact, error)\n```\nExtract parses Python source and returns all import facts.\n\n```go\nfunc (e *Extractor) ExtractDefinitions(content []byte, symbolNames []string) []string\n```\nExtractDefinitions returns signature lines for the given symbol names. Matches: def X(...), class X(...):, X = ..., X: Type = ...\n\n```go\nfunc (e *Extractor) Language() string\n```\n\n","path":"github.com/kehoej/contextception/internal/extractor/python","name":"python","synopsis":"Package python implements import extraction for Python source files.","isRedistributable":true}
