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.7.tar.gz
(32.7 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.7.tar.gz.
File metadata
- Download URL: prlens_core-0.1.7.tar.gz
- Upload date:
- Size: 32.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11744a2039f1ba9edf07b1d8061452bbcca2195ff9d720cf430f24f6529c95e1
|
|
| MD5 |
08a437aa3c581945fcab89b47aaededf
|
|
| BLAKE2b-256 |
91d7da1c475f651f860549f864bb2b425721884fcaa226989a93995badc76be7
|
File details
Details for the file prlens_core-0.1.7-py3-none-any.whl.
File metadata
- Download URL: prlens_core-0.1.7-py3-none-any.whl
- Upload date:
- Size: 23.2 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 |
0dd49857e4a352b1f3d09d3187a45cb442abaa27d4c8f358e56a025ac3037613
|
|
| MD5 |
793256e37a3c851dd4a5ec837e473108
|
|
| BLAKE2b-256 |
f0950b332d2ba0f444c0ae6e96bcd011cc88132e2c33a997b9b404cb82027c25
|