Skip to main content

🤖 PR-Agent Pro Python SDK & CLI

Automated AI Pull Request Code Reviewer & Security Auditor.


⚡ Quickstart

pip install ai-pr-reviewer
from ai_pr_reviewer import review_diff, audit_security, generate_changelog

diff = """
--- a/db.py
+++ b/db.py
@@ -10,3 +10,4 @@
+    query = f"SELECT * FROM users WHERE email = '{user_email}'"
+    cursor.execute(query)
"""

# 1. Security & Secret Leak Audit
security = audit_security(diff)
print(f"Security Grade: {security['security_grade']} (Score: {security['security_score']}/100)")
for f in security['findings']:
    print(f"⚠️ {f['type']}: {f['description']}")

# 2. Automated Code Review with 1-Click Suggestions
review = review_code_diff(diff)
print(f"Verdict: {review['verdict']}")
for c in review['comments']:
    print(f"📝 {c['file']}: {c['comment']}")

# 3. Semantic Changelog
changelog = generate_pr_summary_and_changelog(diff, pr_title="Add user query")
print(changelog['summary_markdown'])

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pr_agent_pro-1.0.0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

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

pr_agent_pro-1.0.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file pr_agent_pro-1.0.0.tar.gz.

File metadata

  • Download URL: pr_agent_pro-1.0.0.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for pr_agent_pro-1.0.0.tar.gz
Algorithm Hash digest
SHA256 335a028a6c4d0ff0659998724b5cc29b73b415b95d9cccd4ff0d1c23e6c8b899
MD5 65bd177d517d03e50cf1998641a3d8c7
BLAKE2b-256 1dab248d4da50cfa6b5952ebbd140cb4f1cf81c249c52a9cd81647bfed753d72

See more details on using hashes here.

File details

Details for the file pr_agent_pro-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pr_agent_pro-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for pr_agent_pro-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b26c051745abb688a2e0556f08d745ec8cb56fc0333d26eae412c3aad07f2ab4
MD5 de7835954fb83de9970656d57217e770
BLAKE2b-256 bc525c16c178f53d5f352ce3ed9317053bbacea38b627afa90f084eb87c79b1c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page