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.10.tar.gz
(33.9 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.10.tar.gz.
File metadata
- Download URL: prlens_core-0.1.10.tar.gz
- Upload date:
- Size: 33.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c4d9e947c3d7197fa6f8e64ca7ae4ddb5dcde828b54a31a9bfd7a91b41c959c
|
|
| MD5 |
c4e97a246e0fc7747dbc570a1ab4ee9e
|
|
| BLAKE2b-256 |
6e3e8946949513a165ab89af9a6cb6b722170262a592c1379de8aaf8a7e78071
|
File details
Details for the file prlens_core-0.1.10-py3-none-any.whl.
File metadata
- Download URL: prlens_core-0.1.10-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 |
660c5300c03d08fad2d1873f36be1ba906c4cc04eed2f40c81454a11d4bdac5a
|
|
| MD5 |
2ef60a4aeae78869f9ceec88ca117c56
|
|
| BLAKE2b-256 |
8d94b463bb5038980040ad7c1a75f7cf5c5f0a909d972fdf78f493f707f16417
|