Open source project pylyzer identifies errors within Python scripts
The open source tool pylyzer is a static code analyser and language server for the popular Python programming language. Pylyzer is written in the Rust system programming language, which, unlike other low-level languages such as C and C++, is said to have similar performance, but is better protected against memory errors, thanks to automated memory management.
By using Rust as the underlying programming language, pylyzer's developers claim a 100 percent performance gain over other Python code analysis tools such as pytype or pyright. "Pylyzer can do more than just type checking. For example, it can detect out-of-bounds accesses to lists and accesses to non-existent keys in dictionaries," the pylyzer project page explains.
In addition, pylyzer's error reports should be easier to read than those of its competitors pytype and pyright, as pylyzer should provide clear error messages and show directly where the error lies in the analysed Python script. In addition, pylyzer acts as a language server, supporting various features such as renaming and completing Python code.
Installation using pip or cargo
The open source tool pylyzer can be installed either via the Python package manager pip with "pip install pylyzer" or via cargo, a package manager for Rust, with the terminal command "cargo install pylyzer --locked". There is also an extension for Visual Studio Code which can be used after installation via the VS Code Marketplace, provided pylyzer has been installed on the development system via pip or cargo.