Metadata-Version: 2.1
Name: cyclopy
Version: 1.1
Summary: A tool for calculating the cyclomatic complexity of projects written in python
Home-page: https://github.com/Split174/cyclopy
License: MIT
Author: Sergey Popov
Author-email: sergei.popov174@gmail.com
Requires-Python: >=3.5,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Dist: GitPython (>=3.1.12,<4.0.0)
Project-URL: Repository, https://github.com/Split174/cyclopy
Description-Content-Type: text/markdown

### A tool for calculating the cyclomatic complexity of projects written in python

# Installation

```
pip3 install cyclopy
```

# Calculation in a local directory

single file:

```cyclopy -f "./cc.py"``` 

![single file example](https://raw.githubusercontent.com/Split174/cyclopy/assets/example_cc_single.png)

project:

```cyclopy -s path_to_project_src``` 

![example local dir](https://raw.githubusercontent.com/Split174/cyclopy/assets/example_cc_localdir.png)


# Computing from git repository

```cyclopy -g "https://github.com/Split174/financial-accounting"```

![git example](https://raw.githubusercontent.com/Split174/cyclopy/assets/example_cc1.png)


# Calculate with limit flag

```cyclopy -g "https://github.com/Split174/financial-accounting" -l 5```

![limit flag example](https://raw.githubusercontent.com/Split174/cyclopy/assets/example_cc_limitflag.png)

