Metadata-Version: 2.4
Name: codeppr
Version: 0.1.4
Summary: An AI-assisted code review agent that saves you from bad commits by running its analysis during the pre-commit stage.
Author: Piyush Gupta
License: Apache-2.0
Project-URL: Repository, https://github.com/fampiyush/codeppr
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: click>=8.3.1
Requires-Dist: keyring>=25.7.0
Requires-Dist: keyrings-alt>=5.0.2
Requires-Dist: langchain>=1.2.2
Requires-Dist: langchain-anthropic>=1.3.1
Requires-Dist: langchain-google-genai>=4.1.3
Requires-Dist: langchain-openai>=1.1.7
Requires-Dist: platformdirs>=4.5.1
Requires-Dist: pydantic>=2.12.5
Dynamic: license-file

# Codeppr

An AI assisted code review agent that saves you from bad commits by running its analysis during the pre-commit stage.

## Features

- **AI Code Analysis**: Intelligent code review suggestions.
- **Pre-commit Safety**: Catch potential issues before they are committed.

## How to install
For a standard install, run:

```bash
pip install codeppr
```
## Usage

Once installed, you need to initialize the tool in your repository:

1. **Install Hook**: Run this command to set up this tool as a git hook.
   ```bash
   codeppr install
   ```

2. **Add Api Key**: Add api key for a provider (openai, anthropic or gemini).
   ```bash
   codeppr auth login <provider>
   ```

3. **Automatic Review**: The tool will now automatically run and review your changes whenever you try to commit code.
   ```bash
   git commit -m "your message"
   ```

> [!NOTE] 
> The default provider is OpenAI. Switch to Anthropic or Gemini with:
> `codeppr use <provider> <model_name>`

You can also manually check available commands with:

```bash
codeppr --help
```

## Installing locally (development)

To install the dependencies and set up the project locally for development, run:

Create and activate virtual environment
```
python -m venv .venv
```

Install dependencies
```bash
pip install .
# OR
uv sync
```
