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.3.tar.gz
(213.1 kB
view hashes)
Built Distribution
cccalculator-0.0.3-py3-none-any.whl
(231.1 kB
view hashes)
Close
Hashes for cccalculator-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13a1104fec521840631d009d8f63fd6bc803e5b72558456edbe8dab7e44e5223 |
|
MD5 | a9fafb62b7bd48910ba648041d71daf4 |
|
BLAKE2b-256 | 5fd4cd508e97656a1e86fc9ae6a3bc15e280f8da176ac0d040f6774cb84056c9 |