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.5.tar.gz
(32.5 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.5.tar.gz.
File metadata
- Download URL: prlens_core-0.1.5.tar.gz
- Upload date:
- Size: 32.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4602a071a0b57563517f616b2cf114462aa822f47c901cc8bd9ec390e2ed3dd2
|
|
| MD5 |
92d43d8bdbeea7389a8190c3c780dfca
|
|
| BLAKE2b-256 |
85d44829148986b03dce21d70dbb2aa7cc000365d3a698bc3528144d9a27f08c
|
File details
Details for the file prlens_core-0.1.5-py3-none-any.whl.
File metadata
- Download URL: prlens_core-0.1.5-py3-none-any.whl
- Upload date:
- Size: 23.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 |
2510239fb43e5b4af722a38eea02375ad8b8af5643ecea393a97d56a1811cf21
|
|
| MD5 |
78cc7aa120081fa101170c86d1f23337
|
|
| BLAKE2b-256 |
ef4085434207046efc3f7f80dd206d92d952fddccfd66f04331c436409d97a44
|