AI-powered Python code quality and security analyzer using Groq LLM
Project description
quality-analysis-cli
🔍 AI-powered Python code quality and security analyzer using Groq LLM.
Features
- 🤖 LLM-powered code analysis using Groq (Llama 3.1)
- 🔴 Severity classification (High, Medium, Low)
- 📊 Quality scoring (0-100)
- 🎨 Beautiful terminal reports with Rich
- 🚀 CI/CD integration support (exits with code 1 on high-severity issues)
Installation
Quick Start
1. Install the package
pip install quality-analysis-cli
### 2. Get a Groq API Key
Go to console.groq.com
Create a free account and generate an API key
###3. Navigate to your project folder
cd /path/to/your/project
###4. Run the scan
## Usage
### Basic Scan
```bash
quality-analysis-cli scan <path>
# Scan a single file
quality-analysis-cli scan main.py
# Scan a directory
quality-analysis-cli scan ./src
# Scan with custom API key
quality-analysis-cli scan ./src --api-key YOUR_GROQ_API_KEY
# Exclude specific patterns
quality-analysis-cli scan ./src --exclude "tests,__pycache__"
# Verbose output
quality-analysis-cli scan ./src --verbose
# Skip confirmation prompt for large scans
quality-analysis-cli scan ./src --yes
5. View your report
The tool will display a quality score (0-100) with issues grouped by severity:
🔴 High - Critical issues to fix immediately
🟡 Medium - Should be addressed soon
🟢 Low - Minor improvements
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file quality_analysis_cli-1.0.2.tar.gz.
File metadata
- Download URL: quality_analysis_cli-1.0.2.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7597be3c06bd55d0977e181256fbb000da99824da9bef10435cd733bd98651e7
|
|
| MD5 |
e22e1e70323e54c2e39f8745ff12d257
|
|
| BLAKE2b-256 |
d4da887232d66fce96938fd9e0adeabfddb894e2a39424abeb29d0249e5ffa86
|
File details
Details for the file quality_analysis_cli-1.0.2-py3-none-any.whl.
File metadata
- Download URL: quality_analysis_cli-1.0.2-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2b6c1a3cdeacc292c5d4c69451b56ce5722defda14a22cf2c322ec2b717516a
|
|
| MD5 |
a52ff8b30854e734e74ece710bf46aaa
|
|
| BLAKE2b-256 |
adb324d6ddfe8257a27a44b342afa6d17e6f645b3d015470a8eb5e3afc6b1df3
|