diff options
| author | Ashley Whetter <ashley@awhetter.co.uk> | 2017-10-15 21:25:40 -0700 |
|---|---|---|
| committer | Ashley Whetter <AWhetter@users.noreply.github.com> | 2017-11-05 12:18:24 -0800 |
| commit | 206b4f4494e4ac4f5fe98a85381c63da24901970 (patch) | |
| tree | f6e5b7ae989dc1d5b9224f3fd33071f4c941f5be /doc | |
| parent | d86cbd38b9e614948796c4121f1c43cb44bdb0a8 (diff) | |
| download | astroid-git-206b4f4494e4ac4f5fe98a85381c63da24901970.tar.gz | |
Public facing node documentation
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/api/astroid.exceptions.rst | 38 | ||||
| -rw-r--r-- | doc/api/astroid.nodes.rst | 226 | ||||
| -rw-r--r-- | doc/api/astroid.rst | 64 | ||||
| -rw-r--r-- | doc/api/base_nodes.rst | 44 | ||||
| -rw-r--r-- | doc/ast_objects.inv | 11 | ||||
| -rw-r--r-- | doc/conf.py | 15 | ||||
| -rw-r--r-- | doc/index.rst | 2 |
7 files changed, 399 insertions, 1 deletions
diff --git a/doc/api/astroid.exceptions.rst b/doc/api/astroid.exceptions.rst new file mode 100644 index 00000000..ede67432 --- /dev/null +++ b/doc/api/astroid.exceptions.rst @@ -0,0 +1,38 @@ +:mod:`astroid.exceptions` +========================= + +.. automodule:: astroid.exceptions + + .. rubric:: Classes + + .. autosummary:: + + BinaryOperationError + OperationError + UnaryOperationError + + .. rubric:: Exceptions + + .. autosummary:: + + AstroidBuildingError + AstroidBuildingException + AstroidError + AstroidImportError + AstroidIndexError + AstroidSyntaxError + AstroidTypeError + AttributeInferenceError + DuplicateBasesError + InconsistentMroError + InferenceError + MroError + NameInferenceError + NoDefault + NotFoundError + ResolveError + SuperArgumentTypeError + SuperError + TooManyLevelsError + UnresolvableName + UseInferenceDefault diff --git a/doc/api/astroid.nodes.rst b/doc/api/astroid.nodes.rst new file mode 100644 index 00000000..84ceba98 --- /dev/null +++ b/doc/api/astroid.nodes.rst @@ -0,0 +1,226 @@ +:mod:`astroid.nodes` +==================== + +.. automodule:: astroid.nodes + +For a list of available nodes see :ref:`nodes`. + +.. _nodes: + +Nodes +----- +.. autosummary:: + + AnnAssign + Arguments + Assert + Assign + AssignAttr + AssignName + AsyncFor + AsyncFunctionDef + AsyncWith + Attribute + AugAssign + Await + BinOp + BoolOp + Break + Call + ClassDef + Compare + Comprehension + Const + Continue + Decorators + DelAttr + DelName + Delete + Dict + DictComp + DictUnpack + Ellipsis + EmptyNode + ExceptHandler + Exec + Expr + ExtSlice + For + FormattedValue + FunctionDef + GeneratorExp + Global + If + IfExp + Import + ImportFrom + Index + JoinedStr + Keyword + Lambda + List + ListComp + Module + Name + Nonlocal + Pass + Print + Raise + Repr + Return + Set + SetComp + Slice + Starred + Subscript + TryExcept + TryFinally + Tuple + UnaryOp + Unknown + While + With + Yield + YieldFrom + +.. autoclass:: AnnAssign + +.. autoclass:: Arguments + +.. autoclass:: Assert + +.. autoclass:: Assign + +.. autoclass:: AssignAttr + +.. autoclass:: AssignName + +.. autoclass:: AsyncFor + +.. autoclass:: AsyncFunctionDef + +.. autoclass:: AsyncWith + +.. autoclass:: Attribute + +.. autoclass:: AugAssign + +.. autoclass:: Await + +.. autoclass:: BinOp + +.. autoclass:: BoolOp + +.. autoclass:: Break + +.. autoclass:: Call + +.. autoclass:: ClassDef + +.. autoclass:: Compare + +.. autoclass:: Comprehension + +.. autoclass:: Const + +.. autoclass:: Continue + +.. autoclass:: Decorators + +.. autoclass:: DelAttr + +.. autoclass:: DelName + +.. autoclass:: Delete + +.. autoclass:: Dict + +.. autoclass:: DictComp + +.. autoclass:: DictUnpack + +.. autoclass:: Ellipsis + +.. autoclass:: EmptyNode + +.. autoclass:: ExceptHandler + +.. autoclass:: Exec + +.. autoclass:: Expr + +.. autoclass:: ExtSlice + +.. autoclass:: For + +.. autoclass:: FormattedValue + +.. autoclass:: FunctionDef + +.. autoclass:: GeneratorExp + +.. autoclass:: Global + +.. autoclass:: If + +.. autoclass:: IfExp + +.. autoclass:: Import + +.. autoclass:: ImportFrom + +.. autoclass:: Index + +.. autoclass:: JoinedStr + +.. autoclass:: Keyword + +.. autoclass:: Lambda + +.. autoclass:: List + +.. autoclass:: ListComp + +.. autoclass:: Module + +.. autoclass:: Name + +.. autoclass:: Nonlocal + +.. autoclass:: Pass + +.. autoclass:: Print + +.. autoclass:: Raise + +.. autoclass:: Repr + +.. autoclass:: Return + +.. autoclass:: Set + +.. autoclass:: SetComp + +.. autoclass:: Slice + +.. autoclass:: Starred + +.. autoclass:: Subscript + +.. autoclass:: TryExcept + +.. autoclass:: TryFinally + +.. autoclass:: Tuple + +.. autoclass:: UnaryOp + +.. autoclass:: Unknown + +.. autoclass:: While + +.. autoclass:: With + +.. autoclass:: Yield + +.. autoclass:: YieldFrom diff --git a/doc/api/astroid.rst b/doc/api/astroid.rst new file mode 100644 index 00000000..fda60271 --- /dev/null +++ b/doc/api/astroid.rst @@ -0,0 +1,64 @@ +:mod:`astroid` +============== + +.. automodule:: astroid + +Submodules +---------- +.. autosummary:: + :toctree: + + astroid.exceptions + astroid.nodes + +Exceptions +---------- +.. currentmodule:: astroid.exceptions + +.. autosummary:: + + AstroidBuildingError + AstroidBuildingException + AstroidError + AstroidImportError + AstroidIndexError + AstroidSyntaxError + AstroidTypeError + AttributeInferenceError + BinaryOperationError + DuplicateBasesError + InconsistentMroError + InferenceError + MroError + NameInferenceError + NoDefault + NotFoundError + OperationError + ResolveError + SuperArgumentTypeError + SuperError + TooManyLevelsError + UnaryOperationError + UnresolvableName + UseInferenceDefault + +.. currentmodule:: astroid + +.. data:: MANAGER + + The manager for doing stuff. + + :type: astroid.manager.AstroidManager + + +.. autoclass:: Uninferable + +.. autofunction:: are_exclusive + +.. autofunction:: builtin_lookup + +.. autofunction:: extract_node + +.. autofunction:: parse + +.. autofunction:: unpack_infer diff --git a/doc/api/base_nodes.rst b/doc/api/base_nodes.rst new file mode 100644 index 00000000..b298caa8 --- /dev/null +++ b/doc/api/base_nodes.rst @@ -0,0 +1,44 @@ +Base Nodes +========== + +These are abstract node classes that :ref:`other nodes <nodes>` inherit from. + +.. autosummary:: + + astroid.mixins.AssignTypeMixin + astroid.node_classes._BaseContainer + astroid.mixins.BlockRangeMixIn + astroid.scoped_nodes.ComprehensionScope + astroid.mixins.FilterStmtsMixin + astroid.mixins.ImportFromMixin + astroid.scoped_nodes._ListComp + astroid.scoped_nodes.LocalsDictNodeNG + astroid.node_classes.LookupMixIn + astroid.node_classes.NodeNG + astroid.mixins.ParentAssignTypeMixin + astroid.node_classes.Statement + + +.. autoclass:: astroid.mixins.AssignTypeMixin + +.. autoclass:: astroid.node_classes._BaseContainer + +.. autoclass:: astroid.mixins.BlockRangeMixIn + +.. autoclass:: astroid.scoped_nodes.ComprehensionScope + +.. autoclass:: astroid.mixins.FilterStmtsMixin + +.. autoclass:: astroid.mixins.ImportFromMixin + +.. autoclass:: astroid.scoped_nodes._ListComp + +.. autoclass:: astroid.scoped_nodes.LocalsDictNodeNG + +.. autoclass:: astroid.node_classes.LookupMixIn + +.. autoclass:: astroid.node_classes.NodeNG + +.. autoclass:: astroid.mixins.ParentAssignTypeMixin + +.. autoclass:: astroid.node_classes.Statement diff --git a/doc/ast_objects.inv b/doc/ast_objects.inv new file mode 100644 index 00000000..15683ac4 --- /dev/null +++ b/doc/ast_objects.inv @@ -0,0 +1,11 @@ +# Sphinx inventory version 2 +# Project: Green Tree Snakes +# Version: 1.0 +# The remainder of this file is compressed using zlib. +xœ…—ÍnÛ8F÷z +�tÛ]f§)š4ˆâÉtIK´M„"U’Jì·R¯¨"Ÿº1�s/©Ë_qç?^µ-ë/ŸÅ�cŸ˜6pO¾S"a›ªâÑÒÐÒ¥¥¯œ“G
ÝÌ)Â9a=Ò,ܕԿç½èfk,´'¼ôÝxiôqX�+´Eü³ô§µÀ‘S„÷Vî/PqŠŽë% No\ÂâŽ,›Ký£fb³éñd˜`áþ@C�XaþGk‚ä£pg$× +þ‚Ô‘‘yñÂ!sdÙü‡+Ä‘9žK„É7]Ï-š™Î¶öRXŸpö¿ÔéH +KÀ)9Areƒ&׈J/ö~Åñì¿Bõ•¬k¥dï$2ÂäÿBæ¯Ù97¢÷_¹n•@“qéÌ‘=èKÏ×J6¨Â„³¿UÆX\ÂäÃETîváǽí¿\Áô›D±Ü$ßÛo„–{cC5@ØB¡8eöMÜ ’‹fã�/œk(]“u‹^íöP8øU#³ë
<ã&¸t·Öt«þ(P:nuá´âµÈfóŸÈ$¾[W8÷¦Y6¿©E[{4ƒgž#¾×'y@É'H.ïö-Gn‚äJ³FTz+;aò
G'çˆÈƒmÙü½˜ÉwÜß
+¥Ë”lƒº Y+ Ël÷¼C{ˈJ/WÎs�ò.Š3Z™î„g¦7eV�ŠÄ +.½ÄÈÐrŽ$[ðªTÜ“"|ßyæ
i��e%,ybÙ|\[i�Ë•öÈ¥CŸ™Â•p‚Ùj>’ÂZY�™’½r/ÏáÚskZ™Î¶�÷¸Äf
z¹ÏÕÃY�–k¬ìa�ˆçˆ'{n$…•.=Ø�x±•:Ü…WÒg�b†^¡š%–Íþdݕ߬;\¶]Y·�æö?(2ÍöóIÂ~&F&þ\| þ”B¡Jla®\fž#¸’m‰‘i�Ȥ°†NhsÏMXpVœ„váJ¢–NŽ|—7cQe2Íö[(©ô•†pôÅ™waF9æ|û¹5
Û|bùÙ¨³ël˜Í¼H}d1»ªŸ\Uäy—xÍMY߇Ϩ�Ç›C€Ôè_l+Ï1”ܪ: +-Ç×"*?M�7²ªš½©�…rc…Ðì)ü²Zó—ÐÓ
ó'Á:é\lñáâO¡–¡»,‡v;®e?¨Ð�@‹œåó”úyzß3Æ6B¸ißévÙd�bÃ=aK`z�±þecó€°;¶í˜ÿ>>«*'¸mNËôéYòëÄø1ô&¹Ì\”�Ý?¾¥7,|¦±QMãVý®wQ�
\ No newline at end of file diff --git a/doc/conf.py b/doc/conf.py index 4164f7df..e054073d 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -25,7 +25,14 @@ sys.path.insert(0, os.path.abspath('../../')) # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. -extensions = ['sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx.ext.viewcode'] +extensions = [ + 'sphinx.ext.autodoc', + 'sphinx.ext.autosummary', + 'sphinx.ext.doctest', + 'sphinx.ext.intersphinx', + 'sphinx.ext.todo', + 'sphinx.ext.viewcode', +] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] @@ -219,3 +226,9 @@ man_pages = [ ('index', 'astroid', u'Astroid Documentation', [u'Logilab, PyCQA and contributors'], 1) ] + +autodoc_default_flags = ['members', 'undoc-members', 'show-inheritance'] +intersphinx_mapping = { + 'green_tree_snakes': + ('http://greentreesnakes.readthedocs.io/en/latest/', 'ast_objects.inv'), +} diff --git a/doc/index.rst b/doc/index.rst index 536a25dd..5a291900 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -21,6 +21,8 @@ Contents: extending + api/astroid.rst + Indices and tables ================== |
