Skip to main content

Python package for calculating code complexity metrics of the target source code

Project description

Python Code Complexity Metrics

Python package for calculating code complexity metrics of the target source code.

Description

With the help of this package, you can calculate the following code complexity metrics for your given source code as an input to it:

Level Metric Variants
methods FOUT Number of method calls (fan out) avg, max, total
MLOC Method lines of code avg, max, total
NBD Nested block depth avg, max, total
PAR Number of parameters avg, max, total
VG McCabe cyclomatic complexity avg, max, total
classes NOF Number of fields avg, max, total
NOM Number of methods avg, max, total
NSF Number of static fields avg, max, total
NSM Number of static methods avg, max, total
files ACD Number of anonymous class declarations value
NOI Number of interfaces value
NOT Number of classes value
TLOC Total lines of code value

Getting Started

Support

Currently, the following source code languages is supported:

  1. Java
  2. Python
  3. JavaScript

Dependencies

  1. Python 3
  2. Pip Package Manager

Installing

pip install pyccmetrics

Examples

  • TBC

Authors

Mohammad Mahdi Mohajer

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments & References

Inspired by the work of Thomas Zimmermann:

T. Zimmermann, R. Premraj and A. Zeller, "Predicting Defects for Eclipse," Third International Workshop on Predictor Models in Software Engineering (PROMISE'07: ICSE Workshops 2007), 2007, pp. 9-9, doi: 10.1109/PROMISE.2007.10. Click for more info.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyccmetrics-0.1.2.tar.gz (59.8 kB view details)

Uploaded Source

Built Distribution

pyccmetrics-0.1.2-py3-none-any.whl (59.6 kB view details)

Uploaded Python 3

File details

Details for the file pyccmetrics-0.1.2.tar.gz.

File metadata

  • Download URL: pyccmetrics-0.1.2.tar.gz
  • Upload date:
  • Size: 59.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for pyccmetrics-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8cfa76edaf44601d5b57d8b71287e57e3770cd5faab4939cdf7f4cd2820378c2
MD5 ba8d500f552d6ed430f5817e574b6f57
BLAKE2b-256 a2e0ad53bf253a0033f5f1c9cbe2c05639ee1c92eaecfb52d635c4ecdb23d585

See more details on using hashes here.

File details

Details for the file pyccmetrics-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pyccmetrics-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 59.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for pyccmetrics-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c04c8598a48ba8194632e33a510ff8f1dae5092c303f76ef827e9311647a9772
MD5 857f0399166377d2d4e34df5651e0581
BLAKE2b-256 192b56b561739392c3f7b7970c96558d27b0e636652e0ba06f46d4d0684e2f10

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page