class documentation

class ModuleAnalyzer:

View In Hierarchy

Undocumented

Class Method for​_egg Undocumented
Class Method for​_file Undocumented
Class Method for​_module Undocumented
Class Method for​_string Undocumented
Static Method get​_module​_source Try to find the source code for a module.
Method __init__ Undocumented
Method analyze Analyze the source code.
Method find​_attr​_docs Find class and module-level attributes and their documentation.
Method find​_tags Find class, function and method definitions and their location.
Method parse Parse the source code.
Class Variable cache Undocumented
Instance Variable ​_analyzed Undocumented
Instance Variable annotations Undocumented
Instance Variable attr​_docs Undocumented
Instance Variable code Undocumented
Instance Variable finals Undocumented
Instance Variable modname Undocumented
Instance Variable overloads Undocumented
Instance Variable srcname Undocumented
Instance Variable tagorder Undocumented
Instance Variable tags Undocumented
@classmethod
def for_egg(cls, filename, modname):

Undocumented

Parameters
filename:strUndocumented
modname:strUndocumented
Returns
ModuleAnalyzerUndocumented
@classmethod
def for_file(cls, filename, modname):

Undocumented

Parameters
filename:strUndocumented
modname:strUndocumented
Returns
ModuleAnalyzerUndocumented
@classmethod
def for_module(cls, modname):

Undocumented

Parameters
modname:strUndocumented
Returns
ModuleAnalyzerUndocumented
@classmethod
def for_string(cls, string, modname, srcname='<string>'):

Undocumented

Parameters
string:strUndocumented
modname:strUndocumented
srcname:strUndocumented
Returns
ModuleAnalyzerUndocumented
@staticmethod
def get_module_source(modname):

Try to find the source code for a module.

Returns ('filename', 'source'). One of it can be None if no filename or source found

Parameters
modname:strUndocumented
Returns
Tuple[Optional[str], Optional[str]]Undocumented
def __init__(self, source, modname, srcname):

Undocumented

Parameters
source:IOUndocumented
modname:strUndocumented
srcname:strUndocumented
def analyze(self):
Analyze the source code.
def find_attr_docs(self):
Find class and module-level attributes and their documentation.
Returns
Dict[Tuple[str, str], List[str]]Undocumented
def find_tags(self):
Find class, function and method definitions and their location.
Returns
Dict[str, Tuple[str, int, int]]Undocumented
def parse(self):
Parse the source code.
cache: Dict[Tuple[str, str], Any] =

Undocumented

_analyzed: bool =

Undocumented

annotations =

Undocumented

attr_docs =

Undocumented

code =

Undocumented

finals =

Undocumented

modname =

Undocumented

overloads =

Undocumented

srcname =

Undocumented

tagorder =

Undocumented

tags =

Undocumented