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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cccalculator-0.0.3.tar.gz.
File metadata
- Download URL: cccalculator-0.0.3.tar.gz
- Upload date:
- Size: 213.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16e4774dfe40615d062cf1520a4e88bd79b5999151d10751c35625869d258b66
|
|
| MD5 |
102636d854c15c25ce1cc4fd8c65bc20
|
|
| BLAKE2b-256 |
2da97adafb76548bb6141557a39e07e8f7676babd30aac40aaf068371cff4f8d
|
File details
Details for the file cccalculator-0.0.3-py3-none-any.whl.
File metadata
- Download URL: cccalculator-0.0.3-py3-none-any.whl
- Upload date:
- Size: 231.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13a1104fec521840631d009d8f63fd6bc803e5b72558456edbe8dab7e44e5223
|
|
| MD5 |
a9fafb62b7bd48910ba648041d71daf4
|
|
| BLAKE2b-256 |
5fd4cd508e97656a1e86fc9ae6a3bc15e280f8da176ac0d040f6774cb84056c9
|