Skip to main content

AI-powered PR summary generator for Git repositories

Project description

usePR

AI-powered PR summary generator for Git repositories

Explore the Documentation »
Report Bug · Request Feature

Table of Contents
  1. About
  2. Quick Start
  3. Usage
  4. Development
  5. Contributing
  6. License

About

usepr (usepr) is a Python CLI that generates pull request summaries from your git commits using AI (DSPy). It analyzes your commit history and produces well-structured, meaningful PR descriptions.

  • AI-powered summaries - Uses DSPy ChainOfThought to understand and summarize your changes
  • Template support - Automatically detects and uses PR templates from your repository
  • Flexible diffing - Generate summaries between any branches, tags, or commits
  • Interactive prompts - Guided workflow with base branch and issue selection
  • Clipboard integration - Copy generated summaries directly to clipboard
  • Model override - Use different LLM models via the -m flag

(back to top)

Quick Start

Install usepr with uv (recommended)

uv tool install usepr

Install with pipx (alternative)

pipx install usepr

Generate a PR summary

usepr generate

This will prompt you to select a base branch, optionally link related issues, and generate a summary from your commits.

(back to top)

Usage

Generate a PR Summary

usepr generate

The interactive workflow will:

  1. Detect your repository's default branch
  2. Prompt for a base branch to diff against
  3. Gather commits between base and HEAD
  4. Ask for related issues (optional)
  5. Detect and offer PR templates (if any)
  6. Generate and display the summary
  7. Offer to copy to clipboard

Use a Custom Model

Set your API key as an environment variable for the provider you're using:

export OPENAI_API_KEY="sk-..."
export ANTHROPIC_API_KEY="sk-ant-..."

Then run with the provider/model format:

usepr generate -m openai/gpt-4o
usepr generate -m anthropic/claude-sonnet-4-20250514
usepr generate -m openrouter/google/gemini-2.5-flash

Use the Short Alias

usepr gen

Available Commands

generate (gen)  Generate a PR summary from commits
help            Show help

(back to top)

Development

Common tasks:

uv run poe clean-full
uv run poe test
uv run poe lint
uv run poe format

(back to top)

Contributing

Quick workflow:

  1. Fork and branch: git checkout -b feature/name
  2. Make changes
  3. Run checks: uv run poe clean-full
  4. Commit and push
  5. Open a Pull Request

(back to top)

License

License information has not been added yet.

(back to top)


Built by thememium

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

usepr-0.1.6.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

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

usepr-0.1.6-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

Details for the file usepr-0.1.6.tar.gz.

File metadata

  • Download URL: usepr-0.1.6.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for usepr-0.1.6.tar.gz
Algorithm Hash digest
SHA256 827b55ab4ea84a8d74ffb976a0ab39c482e5c04b16103f20352548b2d65ead1d
MD5 149d8fc8d2585afaca0be01662f97af5
BLAKE2b-256 84f35d892bd948b896a320e34437acac96b6073f8586a79e138d2cb36f6c40f9

See more details on using hashes here.

File details

Details for the file usepr-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: usepr-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 16.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for usepr-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3e4f1f2285325adbf9b5d3608c1c9b6589423668f2725a5ca34ec28b05f1555b
MD5 6ae5cb8df5af402db852145916bb1f0f
BLAKE2b-256 b52ec34cdbb5bc616fbdd9d6b65d8072c1d44dd25eb7a5df8714f4321743cb96

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