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"

Metadata

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 Provenance
logilab-astng-0.24.3.tar.gz 106.7 kB Without provenance 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

Security for logilab-astng 0.24.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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