From 434f033c81d00429c5523c01b20d4f6c360e9e57 Mon Sep 17 00:00:00 2001 From: Claudiu Popa Date: Wed, 20 Mar 2019 10:13:42 +0100 Subject: Add the Tidelift subscription notification and badge --- doc/index.rst | 49 ++++++++++++++++++++- ...elift_Logos_RGB_Tidelift_Shorthand_On-White.png | Bin 0 -> 4069 bytes 2 files changed, 47 insertions(+), 2 deletions(-) create mode 100644 doc/media/Tidelift_Logos_RGB_Tidelift_Shorthand_On-White.png (limited to 'doc') diff --git a/doc/index.rst b/doc/index.rst index 4b28cf36..7c084874 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -12,7 +12,53 @@ Welcome to astroid's documentation! =================================== -Contents: +**astroid** is a library for AST parsing, static analysis and inference, +currently powering most of **pylint** capabilities. + +It offers support for parsing Python source code into ASTs, similar to how +the builtin **ast** module works. On top of that, it can partially infer various +Python constructs, as seen in the following example:: + + from astroid import parse + module = parse(''' + def func(first, second): + return first + second + + func(first, second) + ''') + >>> module.body[-1] + + >>> inferred = next(a.body[-1].value.infer()) + >>> inferred + + >>> inferred.value + 5 + + +**astroid** also allows the user to write various inference transforms for +enhancing its Python understanding, helping as well **pylint** in the process +of figuring out the dynamic nature of Python. + +Support +------- + +.. image:: media/Tidelift_Logos_RGB_Tidelift_Shorthand_On-White.png + :width: 75 + :alt: Tidelift + :align: left + :class: tideliftlogo + +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 + + +More information +---------------- .. toctree:: :maxdepth: 2 @@ -32,4 +78,3 @@ Indices and tables * :ref:`genindex` * :ref:`modindex` * :ref:`search` - diff --git a/doc/media/Tidelift_Logos_RGB_Tidelift_Shorthand_On-White.png b/doc/media/Tidelift_Logos_RGB_Tidelift_Shorthand_On-White.png new file mode 100644 index 00000000..317dc4d9 Binary files /dev/null and b/doc/media/Tidelift_Logos_RGB_Tidelift_Shorthand_On-White.png differ -- cgit v1.2.1