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.6.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.6.tar.gz.
File metadata
- Download URL: prlens_core-0.1.6.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 |
bfb84be89714b942cef2aa0e6139a27f3a0e570d58a38dd9a50c54aba905a69a
|
|
| MD5 |
ce781b6314399b1e6d8a55ba5678f60b
|
|
| BLAKE2b-256 |
c6c0fd08b4917eec2946fe4af15a1f562d645a96df9bc793bf800ffbd3d2ec62
|
File details
Details for the file prlens_core-0.1.6-py3-none-any.whl.
File metadata
- Download URL: prlens_core-0.1.6-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 |
3a984ee06d1f91a0831709e880470667c1dfc8cd8e102474773bec9c3f8c3b0b
|
|
| MD5 |
4d0903009faa5049390fa218425c3747
|
|
| BLAKE2b-256 |
9612a9138e0e403d8ab494761884409511c555a48e8066935d03ce31e7100a0a
|