Astroid
=======
.. image:: https://codecov.io/gh/pylint-dev/astroid/branch/main/graph/badge.svg?token=Buxy4WptLb
:target: https://codecov.io/gh/pylint-dev/astroid
:alt: Coverage badge from codecov
.. image:: https://readthedocs.org/projects/astroid/badge/?version=latest
:target: http://astroid.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/ambv/black
.. image:: https://results.pre-commit.ci/badge/github/pylint-dev/astroid/main.svg
:target: https://results.pre-commit.ci/latest/github/pylint-dev/astroid/main
:alt: pre-commit.ci status
.. |tidelift_logo| image:: https://raw.githubusercontent.com/pylint-dev/astroid/main/doc/media/Tidelift_Logos_RGB_Tidelift_Shorthand_On-White.png
:width: 200
:alt: Tidelift
.. list-table::
:widths: 10 100
* - |tidelift_logo|
- Professional support for astroid is available as part of the
`Tidelift Subscription`_. Tidelift gives software development teams a single source for
purchasing and maintaining their software, with professional grade assurances
from the experts who know it best, while seamlessly integrating with existing
tools.
.. _Tidelift Subscription: https://tidelift.com/subscription/pkg/pypi-astroid?utm_source=pypi-astroid&utm_medium=referral&utm_campaign=readme
What's this?
------------
The aim of this module is to provide a common base representation of
python source code. It is currently the library 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.
Documentation
-------------
http://astroid.readthedocs.io/en/latest/
Python Versions
---------------
astroid 2.0 is currently available for Python 3 only. If you want Python 2
support, use an older version of astroid (though note that these versions
are no longer supported).
Test
----
Tests are in the 'test' subdirectory. To launch the whole tests suite, you can use
either `tox` or `pytest`::
tox
pytest
Raw data
{
"_id": null,
"home_page": null,
"name": "astroid",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9.0",
"maintainer_email": null,
"keywords": "static code analysis, python, abstract syntax tree",
"author": null,
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/20/f6/7725404e3dcaeafe695d4fe42ad99eefbcba4cad2c83ca122e6b439c9f96/astroid-3.3.7.tar.gz",
"platform": null,
"description": "Astroid\n=======\n\n.. image:: https://codecov.io/gh/pylint-dev/astroid/branch/main/graph/badge.svg?token=Buxy4WptLb\n :target: https://codecov.io/gh/pylint-dev/astroid\n :alt: Coverage badge from codecov\n\n.. image:: https://readthedocs.org/projects/astroid/badge/?version=latest\n :target: http://astroid.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n :target: https://github.com/ambv/black\n\n.. image:: https://results.pre-commit.ci/badge/github/pylint-dev/astroid/main.svg\n :target: https://results.pre-commit.ci/latest/github/pylint-dev/astroid/main\n :alt: pre-commit.ci status\n\n.. |tidelift_logo| image:: https://raw.githubusercontent.com/pylint-dev/astroid/main/doc/media/Tidelift_Logos_RGB_Tidelift_Shorthand_On-White.png\n :width: 200\n :alt: Tidelift\n\n.. list-table::\n :widths: 10 100\n\n * - |tidelift_logo|\n - Professional support for astroid is available as part of the\n `Tidelift Subscription`_. Tidelift gives software development teams a single source for\n purchasing and maintaining their software, with professional grade assurances\n from the experts who know it best, while seamlessly integrating with existing\n tools.\n\n.. _Tidelift Subscription: https://tidelift.com/subscription/pkg/pypi-astroid?utm_source=pypi-astroid&utm_medium=referral&utm_campaign=readme\n\n\n\nWhat's this?\n------------\n\nThe aim of this module is to provide a common base representation of\npython source code. It is currently the library powering pylint's capabilities.\n\nIt provides a compatible representation which comes from the `_ast`\nmodule. It rebuilds the tree generated by the builtin _ast module by\nrecursively walking down the AST and building an extended ast. The new\nnode classes have additional methods and attributes for different\nusages. They include some support for static inference and local name\nscopes. Furthermore, astroid can also build partial trees by inspecting living\nobjects.\n\n\nInstallation\n------------\n\nExtract the tarball, jump into the created directory and run::\n\n pip install .\n\n\nIf you want to do an editable installation, you can run::\n\n pip install -e .\n\n\nIf you have any questions, please mail the code-quality@python.org\nmailing list for support. See\nhttp://mail.python.org/mailman/listinfo/code-quality for subscription\ninformation and archives.\n\nDocumentation\n-------------\nhttp://astroid.readthedocs.io/en/latest/\n\n\nPython Versions\n---------------\n\nastroid 2.0 is currently available for Python 3 only. If you want Python 2\nsupport, use an older version of astroid (though note that these versions\nare no longer supported).\n\nTest\n----\n\nTests are in the 'test' subdirectory. To launch the whole tests suite, you can use\neither `tox` or `pytest`::\n\n tox\n pytest\n",
"bugtrack_url": null,
"license": "LGPL-2.1-or-later",
"summary": "An abstract syntax tree for Python with inference support.",
"version": "3.3.7",
"project_urls": {
"Bug tracker": "https://github.com/pylint-dev/astroid/issues",
"Discord server": "https://discord.gg/Egy6P8AMB5",
"Docs": "https://pylint.readthedocs.io/projects/astroid/en/latest/",
"Source Code": "https://github.com/pylint-dev/astroid"
},
"split_keywords": [
"static code analysis",
" python",
" abstract syntax tree"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "830bef3a51abbf2064ac50447a02d1cd14c1f008590e96f780042c21108b6b56",
"md5": "72677c7fcee60367435eb60bb0a177f5",
"sha256": "e1ea2c358a3c760ef583d4963e773100fa2c693b27ed158a1d0e81adb4436903"
},
"downloads": -1,
"filename": "astroid-3.3.7-py3-none-any.whl",
"has_sig": false,
"md5_digest": "72677c7fcee60367435eb60bb0a177f5",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9.0",
"size": 275125,
"upload_time": "2024-12-21T14:43:59",
"upload_time_iso_8601": "2024-12-21T14:43:59.935184Z",
"url": "https://files.pythonhosted.org/packages/83/0b/ef3a51abbf2064ac50447a02d1cd14c1f008590e96f780042c21108b6b56/astroid-3.3.7-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "20f67725404e3dcaeafe695d4fe42ad99eefbcba4cad2c83ca122e6b439c9f96",
"md5": "ea526530e7d855c22c3aa0d9f723b95f",
"sha256": "29fe1df7ef64dc17a54dbfad67b40b445340fcdba7c4012e7ecc9270c9b2f5b6"
},
"downloads": -1,
"filename": "astroid-3.3.7.tar.gz",
"has_sig": false,
"md5_digest": "ea526530e7d855c22c3aa0d9f723b95f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9.0",
"size": 398091,
"upload_time": "2024-12-21T14:44:02",
"upload_time_iso_8601": "2024-12-21T14:44:02.611112Z",
"url": "https://files.pythonhosted.org/packages/20/f6/7725404e3dcaeafe695d4fe42ad99eefbcba4cad2c83ca122e6b439c9f96/astroid-3.3.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-21 14:44:02",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "pylint-dev",
"github_project": "astroid",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"tox": true,
"lcname": "astroid"
}