Skip to main content

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 providersBaseReviewer + 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.yml and 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.9.tar.gz (33.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prlens_core-0.1.9-py3-none-any.whl (23.9 kB view details)

Uploaded Python 3

File details

Details for the file prlens_core-0.1.9.tar.gz.

File metadata

  • Download URL: prlens_core-0.1.9.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

Hashes for prlens_core-0.1.9.tar.gz
Algorithm Hash digest
SHA256 7a09f04eb9454f3868e0f21f3a438d2894690d79f1c8868adbee39cfc0721eb5
MD5 22178e369a895330a3a34c38f43e6276
BLAKE2b-256 cc13a8c3a144b4c53dd42fc5a47c2ddfb5ecb3833f6ebcc93af692def1ff9315

See more details on using hashes here.

File details

Details for the file prlens_core-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: prlens_core-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 23.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for prlens_core-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 114489c414a17aa35f4ebc7518a733e6e0e0a477f0c47d617e7a2ab2efe6bb54
MD5 320c758d71cea83cf83a61a0cd039149
BLAKE2b-256 10fe0ccb903695182ec159f361931031050c7f79ce76bad35ac0c066c3c29fe2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page