Metadata-Version: 2.4
Name: flask-buzz
Version: 5.0.0
Summary: Extra bindings on py-buzz specifically for flask apps
Author: Tucker Beck
Author-email: Tucker Beck <tucker.beck@gmail.com>
License-File: LICENSE.md
Requires-Dist: py-buzz>=9.0
Requires-Dist: flask>=2.0,<4.0
Requires-Python: >=3.11
Project-URL: homepage, https://github.com/dusktreader/flask-buzz
Project-URL: source, https://github.com/dusktreader/flask-buzz
Project-URL: changelog, https://github.com/dusktreader/flask-buzz/blob/main/CHANGELOG.md
Description-Content-Type: text/markdown

[![Latest Version](https://img.shields.io/pypi/v/flask-buzz?label=pypi-version&logo=python&style=plastic)](https://pypi.org/project/flask-buzz/)
[![Python Versions](https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2Fdusktreader%2Fflask-buzz%2Fmain%2Fpyproject.toml&style=plastic&logo=python&label=python-versions)](https://www.python.org/)
[![Build Status](https://github.com/dusktreader/flask-buzz/actions/workflows/main.yml/badge.svg)](https://github.com/dusktreader/flask-buzz/actions/workflows/main.yml)
[![Documentation Status](https://github.com/dusktreader/flask-buzz/actions/workflows/docs.yml/badge.svg)](https://dusktreader.github.io/flask-buzz/)

# flask-buzz

_py-buzz bindings specifically for flask applications_

This is an extension of the [py-buzz](https://github.com/dusktreader/py-buzz) package.

It adds extra functionality especially for flask. Predominately, it adds the ability to register an error handler with
Flask that will automatically package any handled `FlaskBuzz` exceptions in a nicely formatted JSON response with the
appropriate `status_code` and message. There is also a method to explicitly `jsonify` a FlaskBuzz error with some
control over what is included in the error body.

## Super-quick Start

Requires: Python 3.11 or later

Install through pip:

```bash
pip install flask-buzz
```

Minimal usage example: [examples/basic.py](https://github.com/dusktreader/flask-buzz/tree/master/examples/basic.py)


## Documentation

The complete documentation can be found at the
[flask-buzz home page](https://dusktreader.github.io/flask-buzz)
