Metadata-Version: 2.4
Name: nolli-review
Version: 0.3.0
Summary: Draws a pull request as a change to a repository's architecture, for you and your review agent
License-Expression: Apache-2.0
Project-URL: Source, https://github.com/ioleit/nolli
Project-URL: Issues, https://github.com/ioleit/nolli/issues
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Quality Assurance
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: tree-sitter>=0.23
Requires-Dist: tree-sitter-language-pack>=0.7
Requires-Dist: pyyaml>=6
Dynamic: license-file

# Nolli

Nolli draws a pull request as a change to a repository's architecture: the components,
modules and classes it touches, the dependencies between them that it adds, removes or
changes, and how much each one changed.

> [!NOTE]
> [Giambattista **Nolli**](https://en.wikipedia.org/wiki/Giambattista_Nolli) spent twelve
> years on a single map. Commissioned by Pope Benedict XIV, he began surveying Rome in
> 1736, street by street and building by building, and only in 1748 did he publish his
> ichnographic plan of the city: by far the most accurate map of Rome anyone had made.
> Its buildings are solid blocks, but the city's enclosed public spaces are left open,
> the interiors of churches and courtyards among them. The plan shows what lies inside
> exactly where it matters for moving through the city.

## How to use

```
pip install nolli-review
```

### Viewing the current state

In a git repository:

```
nolli view --whole
```

### Viewing changes

```
nolli view                  # your current branch
nolli view '#48'            # a GitHub pull request (or its URL)
nolli view <base>..<head>   # any two revisions
```

### Reviewing changes with an agent

Install the skill for your coding agent:

```
nolli agent skill --install ~/.claude/skills
```

Then tell your agent to "review PR #48 with nolli". It gives you a link to the viewer,
with its verdicts and reasoning on the structural changes.

![A pull request in Nolli's viewer: added edges in green, a removed module dashed red, verdict marks from a review agent in chess notation, and the card of the worst one, a new import cycle](https://raw.githubusercontent.com/ioleit/nolli/main/viewer/e2e/__screenshots__/review.spec.js/blunder-on-edge.png)

## What it reads

| Framework | Status | Note |
|---|---|---|
| Python | ![supported](https://img.shields.io/badge/supported-2ea44f) | imports, classes and references between them |
| FastAPI, Starlette | ![supported](https://img.shields.io/badge/supported-2ea44f) | routes from `@router.get(...)`-style decorators, `APIRouter` prefixes, `include_router` chains |
| Flask | ![partial](https://img.shields.io/badge/partial-e36209) | `@app.get(...)`-style routes; `@app.route` and blueprint prefixes are not read |
| `os.environ`, `os.getenv` | ![supported](https://img.shields.io/badge/supported-2ea44f) | environment variables a module reads |
| TypeScript, JavaScript | ![supported](https://img.shields.io/badge/supported-2ea44f) | imports, classes, interfaces, type aliases and enums, and references between them through barrels (`index.ts`) and namespaces; type-only dependencies drawn dotted; tsconfig `paths`/`baseUrl`, workspace packages, CommonJS `require` |
| `fetch`, axios, `EventSource`, `WebSocket` | ![heuristic](https://img.shields.io/badge/heuristic-dbab09) | HTTP calls, bound to the backend route with the same path shape; one level of helper function is followed |
| `process.env`, `import.meta.env` | ![supported](https://img.shields.io/badge/supported-2ea44f) | environment variables a module reads |
| docker-compose | ![supported](https://img.shields.io/badge/supported-2ea44f) | services, `depends_on`, service URLs in environment values, the variables each service sets |
| Dockerfile | ![supported](https://img.shields.io/badge/supported-2ea44f) | which directories go into an image (`COPY`, `ADD`) and its entrypoint |

Other languages show up as files and directories only.

## License

Apache 2.0, see [LICENSE](LICENSE).
