Skip to content

miong/pycodeanalyzer

Repository files navigation

pycodeanalyzer

Status - active

Python version

License

Latest PyPI version

TestPyPI

Unit tests

Code Quality

Documentation Status

Code analyzer to get information to help developers to understand how projects works.

Installation

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

Macos

On MacOS, you will need to install libmagic:

brew install libmagic

This is not needed for other platforms.

Requirements

  • - robotpy-cppheaderparser - equals 5.0.16
  • - Flask - equals 2.0.3
  • - Flask-SocketIO - equals 5.1.1
  • - Flask-Classful - equals 0.14.2
  • - flaskwebgui - equals 0.3.4
  • - simple-websocket - equals 0.5.1
  • - injector - equals 0.19.0
  • - pathlib - equals 1.0.1
  • - pcpp - equals 1.30
  • - astroid - equals 2.11.0
  • - javalang - equals 0.13.0
  • - kopyt - equals 0.0.2
  • - simplejson - equals 3.17.6
  • - jsonpickle - equals 2.1.0

Usage

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/

Languages

pycodeanalyser supports the following languages:

  • C/C++ (using headers)
  • Python3 (using annotation)
  • Java
  • Kotlin

License

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.

Authors

pycodeanalyzer was written by Giovanni Mion.

About

Code analyzer to get information to help developers to understand how projects works

Resources

License

Stars

Watchers

Forks

Packages

No packages published