A common base representation of python source code for pylint and other projects
Python Other
Switch branches/tags
logilab-astng-version-0.24.3 logilab-astng-version-0.24.2 logilab-astng-version-0.24.1 logilab-astng-version-0.24.0 logilab-astng-version-0.23.1 logilab-astng-version-0.23.0 logilab-astng-version-0.22.0 logilab-astng-version-0.21.1 logilab-astng-version-0.21.0 logilab-astng-version-0.20.4 logilab-astng-version-0.20.3 logilab-astng-version-0.20.2 logilab-astng-version-0.20.1 logilab-astng-version-0.20.0 logilab-astng-version-0.19.3 logilab-astng-version-0.19.2 logilab-astng-version-0.19.1 logilab-astng-version-0_17_4 logilab-astng-version-0_17_0 logilab-astng-debian-version-0.24.3-1 logilab-astng-debian-version-0.24.2-1 logilab-astng-debian-version-0.24.1-1 logilab-astng-debian-version-0.24.0-1 logilab-astng-debian-version-0.23.1-1 logilab-astng-debian-version-0.23.0-1 logilab-astng-debian-version-0.22.0-1 logilab-astng-debian-version-0.21.1-1 logilab-astng-debian-version-0.21.0-1 logilab-astng-debian-version-0.20.4-1 logilab-astng-debian-version-0.20.3-1 logilab-astng-debian-version-0.20.2-1 logilab-astng-debian-version-0.20.1-1 logilab-astng-debian-version-0.20.0-1 logilab-astng-debian-version-0.19.3-1 logilab-astng-debian-version-0.19.2-1 logilab-astng-debian-version-0.19.1-1 logilab-astng-debian-version-0_18_0-1 logilab-astng-debian-version-0_17_4-1 logilab-astng-debian-version-0_17_3-1 logilab-astng-debian-version-0_17_0-1 astroid-version-1.0.1 astroid-version-1.0.0 astroid-debian-version-1.0.1-1 astroid-debian-version-1.0.0-1 astroid-2.0.4 astroid-2.0.3 astroid-2.0.2 astroid-2.0.1 astroid-2.0.0-dev astroid-2.0 astroid-2.0.dev1 astroid-1.6.5 astroid-1.6.4 astroid-1.6.3 astroid-1.6.2 astroid-1.6.1 astroid-1.6.0 astroid-1.5.3 astroid-1.5.2 astroid-1.5.1 astroid-1.5.0 astroid-1.4.9 astroid-1.4.8 astroid-1.4.7 astroid-1.4.6 astroid-1.4.5 astroid-1.4.4 astroid-1.4.3 astroid-1.4.2 astroid-1.4.1 astroid-1.4 astroid-1.3.8 astroid-1.3.7 astroid-1.3.6 astroid-1.3.5 astroid-1.3.4 astroid-1.3.3 astroid-1.3.2 astroid-1.3.1 astroid-1.3 astroid-1.2.1 astroid-1.2 astroid-1.1 astng_0.18.0
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.rst

Astroid

https://travis-ci.org/PyCQA/astroid.svg?branch=master AppVeyor Build Status https://coveralls.io/repos/github/PyCQA/astroid/badge.svg?branch=master Documentation Status

What's this?

The aim of this module is to provide a common base representation of python source code. It is currently the powering pylint's capabilities.

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 can also build partial trees by inspecting living objects.

Installation

Extract the tarball, jump into the created directory and run:

pip install .

If you want to do an editable installation, you can run:

pip install -e .

If you have any questions, please mail the code-quality@python.org mailing list for support. See http://mail.python.org/mailman/listinfo/code-quality for subscription information and archives.

Python Versions

astroid 2.0 is currently available for Python 3 only. If you want Python 2 support, older versions of astroid will still supported until 2020.

Test

Tests are in the 'test' subdirectory. To launch the whole tests suite, you can use either tox or pytest:

tox
pytest astroid