# Pagerless for Flask

> Two lines. Metrics per URL rule, and every exception Flask turns into a 500.

URL: https://pagerless.dev/integrations/flask
Updated: 2026-10-22

## Set up

```bash
pip install pagerless
export PAGERLESS_KEY=pl_live_...
```

```python
import pagerless.flask

pagerless.flask.init_app(app)
```

## What it catches

- Exceptions Flask turns into 500s.
- Request rate, errors and latency per URL rule.

## Questions

### Other WSGI apps?

`from pagerless.wsgi import PagerlessMiddleware` and `application = PagerlessMiddleware(application)`.
