Skip to main content

Internationalized CLI tool for Java hotspot and risk analysis

Project description

java-hotspots-cli

A pip-installable CLI tool for analyzing Java hotspots using Git churn and cyclomatic complexity.

Author : Orhan Cavus.
Github : https://github.com/orhancavus

Install

From the project directory:

pip install .

Editable install for development:

pip install -e .

Build a wheel:

python -m build

CLI usage

java-hotspots --repos /path/to/repo1 /path/to/repo2

Turkish output:

java-hotspots --repos /path/to/repo1 --lang tr

Custom output base:

java-hotspots --repos /path/to/repo1 --out output/my_hotspots

This generates:

  • output/my_hotspots.md
  • output/my_hotspots.csv
  • output/my_hotspots.json

Optional LLM integration

java-hotspots --repos /path/to/repo1 --ollama --ollama-model Qwen3-Coder-30B-A3B-Instruct-lao01vllm

Environment variables

Configure LLM integration with these environment variables:

export LITELLM_COMPLETION_URL=https://your-llm-service.com
export LITELLM_API_KEY=your-api-key
export SSL_CERT_FILE=/path/to/cert.pem  # optional

Or set them inline:

LITELLM_COMPLETION_URL=https://your-llm-service.com LITELLM_API_KEY=your-api-key java-hotspots --repos /path/to/repo1 --ollama

Development layout

java_hotspots_cli/
├── pyproject.toml
├── README.md
└── src/
    └── java_hotspots_cli/
        ├── __init__.py
        ├── __main__.py
        ├── cli.py
        ├── i18n.py
        └── translations/
            ├── en.json
            ├── tr.json
            ├── en.yaml
            └── tr.yaml

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

java_hotspots_cli-0.1.0.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

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

java_hotspots_cli-0.1.0-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file java_hotspots_cli-0.1.0.tar.gz.

File metadata

  • Download URL: java_hotspots_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for java_hotspots_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cc5fe802dbe245737cd5b30888ab43434c4b27e78f1b5de0c4fb1bcdb609a637
MD5 4b9d4c5fce9033928b7a87664e7d5724
BLAKE2b-256 b72a641f2cc87524d59b3626db5d14cc5afd101f9b7db25b3c260711d36fbf14

See more details on using hashes here.

File details

Details for the file java_hotspots_cli-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for java_hotspots_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 638648a9a56f6778082ba46cd5b6f50b773b4151e204d8d3418fb7bec3a26234
MD5 dfe0a1cf404fa033de5240051545da5a
BLAKE2b-256 32b2fb1f8bee028c8b7066419889ae2390f8542cb9a5596dc455d825361bdd0d

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