Core review engine for prlens — AI-powered GitHub PR code reviewer
Project description
prlens-core
Core review engine for prlens — AI-powered GitHub PR code reviewer for teams.
What's in this package
- AI providers —
BaseReviewer+ concrete implementations for Anthropic Claude and OpenAI GPT-4o - Codebase context — injects repository file tree, co-change history, and paired test files into every review
- GitHub API client — fetches PR diffs, posts inline review comments, all pinned to the PR's head SHA
- Config loader — reads
.prlens.ymland merges environment variables
Installation
pip install 'prlens-core[anthropic]' # Claude
pip install 'prlens-core[openai]' # GPT-4o
pip install 'prlens-core[all]' # both
This package is a library dependency of prlens. Install prlens directly unless you are embedding the review engine in your own tool.
Usage
from prlens_core.reviewer import run_review
from prlens_core.config import load_config
config = load_config(".prlens.yml")
config["github_token"] = "ghp_..."
summary = run_review(repo="owner/repo", pr_number=42, config=config)
print(summary.total_comments, summary.event)
Links
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
prlens_core-0.1.8.tar.gz
(33.8 kB
view details)
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 prlens_core-0.1.8.tar.gz.
File metadata
- Download URL: prlens_core-0.1.8.tar.gz
- Upload date:
- Size: 33.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
885cb4ff51f3b046626e18eb6fc43ab48f2f5cb0054c7eb4b88c1c8045ed2432
|
|
| MD5 |
5b93a73f6d302bd46f3deb0c5f05db6c
|
|
| BLAKE2b-256 |
9571eb93b1ec7e8f1bafe2348a76a4dafab30e2483bb5c99230585aa33243597
|
File details
Details for the file prlens_core-0.1.8-py3-none-any.whl.
File metadata
- Download URL: prlens_core-0.1.8-py3-none-any.whl
- Upload date:
- Size: 24.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b6b6ded4dc862418585d85b7d72d264171a3a6ea93b0f9f7e7b2fefa7684865
|
|
| MD5 |
f2ec23b7df4f9fb3ff19fd3da0ec73c3
|
|
| BLAKE2b-256 |
631a7e65a676f5fd418af7cadbdbb58b458ebae17156dfd87cba2fc5769abf2a
|