Metadata-Version: 2.1
Name: cccalculator
Version: 0.0.2
Summary: cyclomatic complexity calculator for python file
Home-page: https://github.com/xiaomizhou/cccalculator
Author: Li Wang
Author-email: wangli0829@gmail.com
License: MIT license
Keywords: cyclomatic complexity python
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: Quality Assurance
Requires: tree_sitter
Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
Description-Content-Type: text/markdown
License-File: LICENSE

# 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



