cyclomatic complexity calculator for python file
Project description
cccalculator
calculate the cyclomatic complexity of python source file Use M = E − N + 2 to calculate the complexity . The output is the McCabe complexity of each python source file under the path.
Example
cd into the cccalculate directory
$ python calculate.py /path_to_your_python_file_directory/
The output will be like this
/path_to_your_python_file_directory/test_file4.py
fun:7----------6
/path_to_your_python_file_directory/test_file1.py
class:1--fun:2----------1
class:1--fun:5----------5
fun:26----------5
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cccalculator-0.0.1.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for cccalculator-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86caf61dc3c84c68911023bc8e62d4e241b3435c8ee2a073383aa7aca6644bed |
|
MD5 | 8a104ec612003ec875fa4f5985720e3f |
|
BLAKE2b-256 | b3979ea4b411fc61c998577a9990154cb0d5d216b21d0c1eafe17d244bd220fb |