Table of Contents
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
-mflag
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.
Usage
Generate a PR Summary
usepr generate
The interactive workflow will:
- Detect your repository's default branch
- Prompt for a base branch to diff against
- Gather commits between base and HEAD
- Ask for related issues (optional)
- Detect and offer PR templates (if any)
- Generate and display the summary
- 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
Development
Common tasks:
uv run poe clean-full
uv run poe test
uv run poe lint
uv run poe format
Contributing
Quick workflow:
- Fork and branch:
git checkout -b feature/name - Make changes
- Run checks:
uv run poe clean-full - Commit and push
- Open a Pull Request
License
License information has not been added yet.
Built by thememium
Metadata
Release files for usepr 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| usepr-0.1.7.tar.gz | 11.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| usepr-0.1.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.1 kB
Release files / usepr-0.1.7.tar.gz
| Download URL | usepr-0.1.7.tar.gz |
|---|---|
| Size | 11.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a192d10503b16ee16966b1be4b79f9c4556950981b499a7086b7583b9e414e94
|
|
BLAKE2b-256 checksum How to use checksums |
d8d673be6fc5aff437d96e52bc0840e195cdc8188175523717e0e6d209c2c9cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","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}
|
Release files / usepr-0.1.7-py3-none-any.whl
| Download URL | usepr-0.1.7-py3-none-any.whl |
|---|---|
| Size | 16.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
64d824f117585e537e1fb417fc03576fcb1fcba7146ab7b1c6385787d354994a
|
|
BLAKE2b-256 checksum How to use checksums |
ad73406419d8da872bfab341d71ddc57bde2112f1465d90f76ba12a3a21847e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","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}
|