SCM mining utility classes
Project description
Code Metrics
Mine your SCM for insight on your software. A work of love inspired by Adam Tornhill’s books.
Code metrics is a simple Python module that leverage your source control management (SCM) tool to generate insight on your code base.
pandas: for data munching.
lizard: for code complexity calculation.
cloc.pl (script): for line counts from cloc
For now, only Subversion and git are supported.
Installation
To install codemetrics, simply use pip:
pip install codemetrics
Usage
This is a simple tool that makes it easy to retrieve information from your Source Control Management (SCM) repository and hopefully gain insight from it.
import codemetrics as cm import cm.git log_df = cm.git.get_git_log() ages_df = cm.get_ages(log_df)
See module documentation for more advanced functions.
License
Licensed under the term of MIT License. See attached file LICENSE.txt.
Credits
This package was inspired by Adam Tornhill’s books.
This package was created with Cookiecutter.
History
0.8 (2019-02-13)
Integrated lizard to calculate average and function level cyclomatic complexity.
0.7 (2019-01-09)
Function oriented interface.
Visualization via Vega, Altair.
Documentation.
0.6
Alpha work.
0.5 (2018-05-12)
First release on PyPI.
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
File details
Details for the file codemetrics-0.8.0.tar.gz
.
File metadata
- Download URL: codemetrics-0.8.0.tar.gz
- Upload date:
- Size: 41.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc9b1b9856103d9743f949af91c2d45e0252023f255d91cc91ef9987794ae8a9 |
|
MD5 | 9b19a4c9a1b52012f068124289b7efec |
|
BLAKE2b-256 | 7ffc15498982e469a7537b3ca9bacb7b787e991967412608729a25254de3a045 |