Skip to main content

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 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 (let’s call it astng ;). The new node classes have additional methods and attributes for different usages. They include some support for static inference and local name scopes. Furthermore, astng 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 astng trees from source files and living objects. It maintains a cache of previously constructed tree for quick access

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 python-project@lists.logilab.org mailing list for support. See http://lists.logilab.org/mailman/listinfo/python-projects for subscription information and archives.

Test

Tests are in the ‘test’ subdirectory. To launch the whole tests suite at once, you may use the ‘pytest’ utility from logilab-common (simply type ‘pytest’ from within this directory) or if you’re running python >= 2.7, using discover, for instance:

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

Release files for logilab-astng 0.24.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for logilab-astng 0.24.3
File Size Uploaded
logilab-astng-0.24.3.tar.gz 106.7 kB Details

Release files / logilab-astng-0.24.3.tar.gz

Download URL logilab-astng-0.24.3.tar.gz
Size 106.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e08fba39689e5a4dfa175749874811e516f019656544874defe05154073f69d4
BLAKE2b-256 checksum
How to use checksums
39ab3ecd06a186cfc503d9554fdf858e9a320c747cb76432d02e0e802f9450f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.24.3 This release

1 release file

0.24.2

1 release file

0.24.1

1 release file

0.24.0

1 release file

0.23.1

1 release file

0.23.0

1 release file

0.22.0

1 release file

0.21.1

1 release file

0.21.0

1 release file

0.20.3

1 release file

0.20.2

1 release file

0.20.1

1 release file

0.20.0

1 release file

0.19.3

1 release file

0.19.2

1 release file

0.19.1

1 release file

0.19.0

1 release file

0.18.0

1 release file

0.17.4

0.17.2

0.17.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page