Git Product home page Git Product logo

astroid's Introduction

Astroid

image

AppVeyor Build Status

image

Documentation Status

What's this?

The aim of this module is to provide a common base representation of python source code for projects such as pychecker, pyreverse, pylint... Well, actually the development of this library is essentially governed by pylint's needs. 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.

Installation

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

python setup.py install

For installation options, see:

python setup.py install --help

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

Python Versions

astroid is compatible with Python 2.7 as well as 3.3 and later. astroid uses the same code base for both Python versions, using six.

Test

Tests are in the 'test' subdirectory. To launch the whole tests suite at once, you can use unittest discover:

python -m unittest discover -p "unittest*.py"

astroid's People

Contributors

adimasci avatar balparda avatar ceridwen avatar cpennington avatar dashea avatar degustaf avatar dimp-gh avatar eevee avatar flying-sheep avatar gurneyalex avatar hugovk avatar ioanatia avatar jayvdb avatar jcristau avatar living180 avatar lorenzph avatar lothiraldan avatar moylop260 avatar nchauvat avatar obsc avatar pcmanticore avatar radekjg avatar raylu avatar rogalski avatar rr- avatar sthenault avatar the-compiler avatar thedrow avatar tmarek-google avatar torstenmarek avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.