Extract API documentation about python objects by parsing their source
code.
|
ValueDoc
|
parse_docs(filename=None,
name=None,
context=None,
is_script=False)
Generate the API documentation for a specified object by parsing
Python source files, and return it as a ValueDoc. |
source code
call graph
|
|
| Call Graph |
|
|
|
_parse_package(package_dir)
If the given directory is a package directory, then parse its
__init__.py file (and the __init__.py files of all ancestor
packages); and return its ModuleDoc. |
source code
call graph
|
|
| Call Graph |
|
|
|
|
| Call Graph |
|
|
|
|
| Call Graph |
|
|
|
|
| Call Graph |
|
|
|
|
| Call Graph |
|
|
|
|
| Call Graph |
|
|
|
|
| Call Graph |
|
|
|
|
| Call Graph |
|
|
|
|
| Call Graph |
|
|
|
|
| Call Graph |
|
|
|
shallow_parse(line_toks)
Given a flat list of tokens, return a nested tree structure (called a
token tree),
whose leaves are identical to the original list, but whose structure
reflects the structure implied by the grouping tokens (i.e.,
parenthases, braces, and brackets). |
source code
call graph
|
|
| Call Graph |
|
|
|
|
| Call Graph |
|
|
|
| process_control_flow_line(line,
parent_docs,
prev_line_doc,
lineno,
comments,
decorators,
encoding) |
source code
call graph
|
|
| Call Graph |
|
|
|
| process_import(line,
parent_docs,
prev_line_doc,
lineno,
comments,
decorators,
encoding) |
source code
call graph
|
|
| Call Graph |
|
|
|
| process_from_import(line,
parent_docs,
prev_line_doc,
lineno,
comments,
decorators,
encoding) |
source code
call graph
|
|
| Call Graph |
|
|
|
|
| Call Graph |
|
|
|
|
| Call Graph |
|
|
|
|
| Call Graph |
|
|
|
_add_import_var(src,
name,
container)
Add a new imported variable named name to
container, with imported_from=src. |
source code
call graph
|
|
| Call Graph |
|
|
|
_global_name(name,
parent_docs)
If the given name is package-local (relative to the current context,
as determined by parent_docs), then convert it to a
global name. |
source code
call graph
|
|
| Call Graph |
|
|
|
| process_assignment(line,
parent_docs,
prev_line_doc,
lineno,
comments,
decorators,
encoding) |
source code
call graph
|
|
| Call Graph |
|
|
|
|
| Call Graph |
|
|
|
|
| Call Graph |
|
|
|
|
| Call Graph |
|
|
|
|
| Call Graph |
|
|
|
|
| Call Graph |
|
|
|
|
| Call Graph |
|
|
|
|
| Call Graph |
|
|
|
|
| Call Graph |
|
|
|
|
| Call Graph |
|
|
|
|
| Call Graph |
|
|
|
|
| Call Graph |
|
|
|
|
| Call Graph |
|
|
|
|
| Call Graph |
|
|
|
process_append_to_all(line,
parent_docs,
prev_line_doc,
lineno,
comments,
decorators,
encoding)
The line handler for __all__.append() lines; either of: |
source code
|
|
|
|
|
|
|
|
|
|
dotted_names_in(elt_list)
Return a list of all simple dotted names in the given expression. |
source code
call graph
|
|
| Call Graph |
|
|
|
|
| Call Graph |
|
|
|
|
| Call Graph |
|
|
|
|
| Call Graph |
|
|
|
parse_funcdef_arg(elt)
If the given tree token element contains a valid function definition
argument (i.e., an identifier token or nested list of identifiers),
then return a corresponding string identifier or nested list of
string identifiers. |
source code
call graph
|
|
| Call Graph |
|
|
|
|
| Call Graph |
|
|
|
|
|
|
|
| Call Graph |
|
|
|
|
| Call Graph |
|
|
|
|
| Call Graph |
|
|
|
|
| Call Graph |
|
VariableDoc or None
|
lookup_name(identifier,
parent_docs)
Find and return the documentation for the variable named by the given
identifier. |
source code
call graph
|
|
| Call Graph |
|
|
|
|
| Call Graph |
|
|
|
lookup_value(dotted_name,
parent_docs)
Find and return the documentation for the value contained in the
variable with the given name in the current namespace. |
source code
call graph
|
|
| Call Graph |
|
|
|
|
| Call Graph |
|
|
|
|
|
|
|
| Call Graph |
|
|
|
|
| Call Graph |
|
|
|
|
| Call Graph |
|
|
|
|
| Call Graph |
|
|
|
|