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.

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.3.4.tar.gz (69.0 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.3.4-py3-none-any.whl (99.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for metripy-0.3.4.tar.gz
Algorithm Hash digest
SHA256 93ca8f91396a5afcb3bc11d11499a57953ecbbd0e85bc0fb1b020f20e3d988b5
MD5 69bbc27f2fc30270b1aad1ce31c9d04f
BLAKE2b-256 2aadef1a79bc3bc42a5f76b7eebea49e2925772d93cb3a0ffa62291c2d897f3b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: metripy-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 99.9 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.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 755d1b05c69df0c053537ec8a5d6270bfc145c45534d50e81212c6a2999a3b60
MD5 453d164c6d0d8b743247ef22a89d28f4
BLAKE2b-256 227914fe06eb11210a7d1d23d6025e7f27e597e7ab4dc6ec6f85802f0032681c

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