Metadata-Version: 2.4
Name: prism-semantic-reviewer
Version: 0.1.2
Summary: Semantic PR Reviewer for Python Web Applications
Author: Ankush Singh Gandhi
License: Proprietary
Project-URL: Homepage, https://github.com/AnkushSinghGandhi/prism
Project-URL: Repository, https://github.com/AnkushSinghGandhi/prism
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# Prism Semantic Reviewer

**Git tells you what *lines* changed. Prism tells you what those changes *mean*.**

Prism reads a Python web codebase and, for any pull request, turns a huge diff into a short, ranked list of the things that actually matter: new endpoints, new database writes, new external calls, and data that now leaves the system. It cuts through the noise of refactors and points you to the exact lines that matter.

## Install

```bash
pip install prism-semantic-reviewer
```

## Quick Start

### 1. Review a Pull Request

Run a semantic review on a local repository or directly via a GitHub URL:

```bash
# Review a local PR by branch
prism review /path/to/repo --base master --head feature-branch

# Review a GitHub PR directly
prism review https://github.com/owner/repo --pr 123
```

### 2. Start the Interactive Web UI

Prism includes a built-in web server with an interactive node-link graph visualization of your PRs.

```bash
prism serve --port 8765
# Open http://localhost:8765
```

### 3. Discover Invariants

Automatically discover and baseline properties of your codebase from its git history.

```bash
prism invariants /path/to/repo --snapshots 10
```

## What it detects

Prism tracks cross-boundary flows without needing to run your code:
- **API Routes** (new, modified, removed)
- **External API Calls** (e.g. Stripe, Twilio)
- **Database Writes**
- **Async Task Dispatches** (e.g. Celery)
- **Authentication Level** (e.g. AllowAny vs Authenticated)
- **PII Egress** (Personal data leaving the system)

For full documentation, architecture details, and instructions on deploying Prism as a GitHub Action, please visit the [Official GitHub Repository](https://github.com/AnkushSinghGandhi/prism).
