Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

astroid (3)

Name

astroid - An abstract syntax tree for Python with inference support.

Synopsis

Please see following description for synopsis

Description

astroid(3)                 Library Functions Manual                 astroid(3)



NAME
       astroid - An abstract syntax tree for Python with inference support.

DESCRIPTION
       The  aim  of  this module is to provide a common base representation of
       python source code for projects such as pychecker,  pyreverse,  pylint.
       It used to be called logilab-astng.


       It  provides  a  compatible  representation which comes from the `_ast`
       module.  It rebuilds the tree generated by the builtin _ast  module  by
       recursively  walking down the AST and building an extended ast. The new
       node classes have  additional  methods  and  attributes  for  different
       usages.   They include some support for static inference and local name
       scopes.  Furthermore, astroid builds partial trees by inspecting living
       objects.


       Main modules are:

       *  `bases`,  `node_classses` and `scoped_nodes` contain the classes for
       the different type of nodes of the tree.


       * the `manager` contains a high level object to get astroid trees  from
       source  files  and  living  objects. It maintains a cache of previously
       constructed tree for quick access


FILES
       /usr/lib/python{version}/vendor-packages/astroid
                             astroid python modules


AUTHORS
       Sylvain Thenault (sylvain.thenault@logilab.fr)


SUPPORT
       If you have any  questions,  please  mail  the  code-quality@python.org
       mailing    list    for    support.   See   http://mail.python.org/mail-
       man/listinfo/code-quality for subscription  information  and  archives.
       You   may   find   older   archives  at  http://lists.logilab.org/mail-
       man/listinfo/python-projects .




ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+--------------------------+
       |ATTRIBUTE TYPE |     ATTRIBUTE VALUE      |
       +---------------+--------------------------+
       |Availability   | library/python/astroid   |
       +---------------+--------------------------+
       |Stability      | Pass-through uncommitted |
       +---------------+--------------------------+

SEE ALSO
       pylint(1)



NOTES
       Source code for open source software components in Oracle  Solaris  can
       be found at https://www.oracle.com/downloads/opensource/solaris-source-
       code-downloads.html.

       This    software    was    built    from    source     available     at
       https://github.com/oracle/solaris-userland.    The  original  community
       source was downloaded from  pypi:///astroid==2.4.2.

       Further information about this software can be found on the open source
       community website at https://github.com/PyCQA/astroid.



astroid 2.2.5                     10 May 2019                       astroid(3)