Skip to main content

A Python tool to generate multi project, multi language code metric reports

Project description

Metripy

A multilanguage, multi project code metrics analysis tool.

PyPI version Tests Coverage License Downloads

Languages

Supported languages

  • Python (with radon)
  • Php (experimental)
  • Typescript (experimental)
  • TBD

Analysis types

Code analysis

Analyses code with cyclomatic complexity, maintainability index, halstead metrics.

Git analysis

Analyses git stats of the past months

Dependeny analysis

Analyzses composer, npm or pip dependencies

More dependencies TBD

Report formats

Html

Generates an easy to read dashboard

TODO: as this application generates multi project reports, add central dashboard to have project specific insights at first glance

Csv

Coming soon...

Json

Coming soon...

Cli

Coming soon...

Configuration

Configuration is for the moment only possible with the --config=<file>.json option. More TBD

Sample configuraiton:

{
    "configs": {
        "metripy": {
            "base_path": "./", // base path to look at
            "includes": [
                "metripy/" // paths to include from the base path on
            ],
            "excludes": [
                "__pycache__" // exclude patterns of paths / files
            ],
            "extensions": [
                "py" // file extensions to look at
            ],
            "git": { // if git is set, analyzes git history
                "branch": "main" // git branch to look at
            },
            "composer": true, // looks for base_path/composer.json and analyzes dependencies - for php projects
            "npm": true, // looks for base_path/package.json and analyzes dependencies - for ts/js projects
            "pip": true,
            // looks for base_path/requirements.txt or base_path/pyproject.toml and analyzes dependencies - for python projects
            "reports": {
                "html": "./build/report/metripy", // report should be put into this directory
                "json-git": "./build/json-report/metripy-git.json" // file where to put git json report
                // more types of reports TBA
            }
        },
        // next project name: { next config... } 
    }
}

Configuration for only git stats

{
    "configs": {
        "metripy-git": {
            "base_path": "./",
            "git": {
                "branch": "main"
            },
            "reports": {
                "json-git": "./build/json-report/metripy-git.json"
            }
        }
    }
}

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

metripy-0.7.0.tar.gz (105.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

metripy-0.7.0-py3-none-any.whl (152.1 kB view details)

Uploaded Python 3

File details

Details for the file metripy-0.7.0.tar.gz.

File metadata

  • Download URL: metripy-0.7.0.tar.gz
  • Upload date:
  • Size: 105.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for metripy-0.7.0.tar.gz
Algorithm Hash digest
SHA256 a3462ff2fe5274b6f448946164b840590c52989f16fc3dca808ac2504dc0edad
MD5 2b25efa94fd381ec78d3fe11f92bd44b
BLAKE2b-256 ff1302299e38643ed42bfbc0b391d2b6d9342a61a879dfa0f7abd813d788c024

See more details on using hashes here.

File details

Details for the file metripy-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: metripy-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 152.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for metripy-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a07b1423a11eff4472df7aa4043535eae1162bf1bf73439f7d738d50118f0e17
MD5 5ab594577e875927a789923e93f77a0f
BLAKE2b-256 2367e53cee2db6c6dea597fc3ab299e3d1898c398caf8e9e21284ee4317348dc

See more details on using hashes here.

Supported by

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