Code analyzer to get information to help developers to understand how projects works.
pycodeanlyzer is available on PyPI:
pip3 install -U pycodeanalyzer
see https://pip.pypa.io/en/stable/installation/ for more detail on pip
see https://test.pypi.org/search/?q=pycodeanalyzer to see the last release candidate
pip3 install --pre --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple -U pycodeanalyzer
On MacOS, you will need to install libmagic:
brew install libmagic
This is not needed for other platforms.
The following is the help of pycodeanalyzer:
usage: pycodeanalyzer [-h] [--config CONFIGFILE] [--create-config TEMPLATEFILE] [--log {CRITICAL,ERROR,WARNING,INFO,DEBUG}] [--exportDiagrams EXPORTPATH] [--exportFormat {mermaid,plantuml}] [--dumpobj]
[--no-ui]
[path [path ...]]
positional arguments:
path Path of a root directory to be analysed
optional arguments:
-h, --help show this help message and exit
--config CONFIGFILE Configuration file to be used
--create-config TEMPLATEFILE
Create a configuration file template. Should be used alone.
--log {CRITICAL,ERROR,WARNING,INFO,DEBUG}
Log level to be used
--exportDiagrams EXPORTPATH
Export all class diagrams to the path specified
--exportFormat {mermaid,plantuml}
Format to be used for exported class diagrams
--dumpobj Serialize objets found, mainly for test purpose
--no-ui Discard UI, mainly for test purpose
To get more information during the run, use --log=DEBUG
You can see the official documentation here : http://pycodeanalyzer.readthedocs.io/
pycodeanalyser supports the following languages:
- C/C++ (using headers)
- Python3 (using annotation)
- Java
- Kotlin
This project is under the MIT license:
The MIT License (MIT)
Copyright (c) 2022 Giovanni Mion
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
pycodeanalyzer was written by Giovanni Mion.