Code Review Automation Tool
This program is designed to assist developers by automating the process of code review. By leveraging a pre-trained standalone machine learning model (e.g., GPT-4), it reads source code files and provides suggestions for improvements.
Features
- File Scanning: Ability to scan a single file or all files in the current directory.
- Multiple Output Formats: Results can be exported as plain text, JSON, or XML files.
- Customizable Model: Utilizes a customizable language model, allowing users to select the appropriate model for their needs.
Installation
Make sure you have Python 3.x installed.
pip install gpt4all-code-review
For updates, use:
pip install gpt4all-code-review --upgrade
Usage
You can run the program from the command line with various options:
gpt4all_code_review --file <file_path>
Options
h,--help: Show this help message and exit--model: Specifies the model name. Default is"orca-mini-3b.ggmlv3.q4_0.bin".--file: Specifies the file path to analyze. If not provided, all files in the current directory will be analyzed.--all: Includes all files and folders in the current directory for scanning.--output: Output type (default:plain). Options:plain,txt(prettytable),json,xml.--export: Export to file (default:False).--export-folder: Export to folder (default:./code_review_results).
Example
To analyze a single file:
gpt4all_code_review --file=./path/to/yourfile.py
To analyze all files in the current directory:
gpt4all_code_review --all
Output Formats
- PLAIN: A human-readable plain txt file.
- TXT: A human-readable table (prettytable) with file paths and suggestions.
- JSON: A machine-readable format that can be parsed programmatically.
- XML: An alternative machine-readable format.
Dependencies
os: Standard Python library for interacting with the operating system.json: Standard Python library for working with JSON data.argparse: Standard Python library for parsing command-line arguments.gpt4all: A Python library for interfacing with GPT-4 models. Used to apply the AI models to the code.prettytable: A Python library to print tabular data in a visually appealing ASCII table format.datetime: Standard Python library for working with dates and times.console_progressbar: A Python library for displaying progress bars in the console.
License
MIT License
Metadata
Release files for gpt4all-code-review 2025.5.9.1718
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gpt4all_code_review-2025.5.9.1718.tar.gz | 4.9 kB | Without provenance | Details for gpt4all_code_review-2025.5.9.1718.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gpt4all_code_review-2025.5.9.1718-py3-none-any.whl | Python 3 | none | any | Details for gpt4all_code_review-2025.5.9.1718-py3-none-any.whl |
Total release size: 10.5 kB
Release files / gpt4all_code_review-2025.5.9.1718.tar.gz
| Download URL | gpt4all_code_review-2025.5.9.1718.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b5f3b0a55044d1d7eaa5211a21542e63f0637c873889feef67010adfa394d053
|
|
BLAKE2b-256 checksum How to use checksums |
50d5a1ab16666d6e8b86345648bd46b50779ae0ace6c11709d057e2326926fa1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.11
|
Release files / gpt4all_code_review-2025.5.9.1718-py3-none-any.whl
| Download URL | gpt4all_code_review-2025.5.9.1718-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
817e2b191a76d38d0e518c71a715c1c0513e500fa185c6a97af36c71d19a2972
|
|
BLAKE2b-256 checksum How to use checksums |
addcf63b0c14737841b936dc40267cf402f3423868dcabb1ccdb010854098e0a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.11
|
Security for gpt4all-code-review 2025.5.9.1718
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.