semvec/pypi-packages huggingface dataset:
djangorestframework-verbose-errors 0.0.6
A simple package for DRF errors formatting
License: MIT
Requires Python: >=3.6

# Verbose Errors

[![Test](https://github.com/koenigsley/djangorestframework-verbose-errors/actions/workflows/test.yaml/badge.svg)](https://github.com/koenigsley/djangorestframework-verbose-errors/actions/workflows/test.yaml)

A simple package for DRF errors formatting

## Requirements

- Python 3.6 or newer
- Django 3.2 or newer
- Django Rest Framework 3.14 or newer

## Formatting

This package provides the exception handler that formats handled DRF exceptions into verbose error response

### Generic error

```json
{
  "errors": [
    {
      "field": null,
      "messages": [
        "You do not have enough permissions to perform this action"
      ]
    }
  ]
}
```

### Error related to an object field

```json
{
  "errors": [
    {
      "field": "name",
      "messages": [
        "This field is required", 
        "This field can not be null"
      ]
    }
  ]
}
```

## Installation

You can install this package using pip:

```shell
pip install djangorestframework-verbose-errors
```

## Configuration

Configure your project in order to use the exception handler:

```python
REST_FRAMEWORK = {
    'EXCEPTION_HANDLER': 'rest_framework_verbose_errors.views.exception_handler',
}
```

## License

[MIT](https://github.com/koenigsley/djangorestframework-verbose-errors/blob/main/LICENSE)
dark-and-darker 0.0.0
Dark and Darker
License: MIT
Requires Python: >=3.7,<4.0

# Dark and Darker

[![PyPI](https://img.shields.io/pypi/v/dark-and-darker.svg)][pypi_]
[![Status](https://img.shields.io/pypi/status/dark-and-darker.svg)][status]
[![Python Version](https://img.shields.io/pypi/pyversions/dark-and-darker)][python version]
[![License](https://img.shields.io/pypi/l/dark-and-darker)][license]

[![Read the documentation at https://dark-and-darker.readthedocs.io/](https://img.shields.io/readthedocs/dark-and-darker/latest.svg?label=Read%20the%20Docs)][read the docs]
[![Tests](https://github.com/56kyle/dark-and-darker/workflows/Tests/badge.svg)][tests]
[![Codecov](https://codecov.io/gh/56kyle/dark-and-darker/branch/main/graph/badge.svg)][codecov]

[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)][pre-commit]
[![Black](https://img.shields.io/badge/code%20style-black-000000.svg)][black]

[pypi_]: https://pypi.org/project/dark-and-darker/
[status]: https://pypi.org/project/dark-and-darker/
[python version]: https://pypi.org/project/dark-and-darker
[read the docs]: https://dark-and-darker.readthedocs.io/
[tests]: https://github.com/56kyle/dark-and-darker/actions?workflow=Tests
[codecov]: https://app.codecov.io/gh/56kyle/dark-and-darker
[pre-commit]: https://github.com/pre-commit/pre-commit
[black]: https://github.com/psf/black

## Features

- TODO

## Requirements

- TODO

## Installation

You can install _Dark and Darker_ via [pip] from [PyPI]:

```console
$ pip install dark-and-darker
```

## Usage

Please see the [Command-line Reference] for details.

## Contributing

Contributions are very welcome.
To learn more, see the [Contributor Guide].

## License

Distributed under the terms of the [MIT license][license],
_Dark and Darker_ is free and open source software.

## Issues

If you encounter any problems,
please [file an issue] along with a detailed description.

## Credits

This project was generated from [@cjolowicz]'s [Hypermodern Python Cookiecutter] template.

[@cjolowicz]: https://github.com/cjolowicz
[pypi]: https://pypi.org/
[hypermodern python cookiecutter]: https://github.com/cjolowicz/cookiecutter-hypermodern-python
[file an issue]: https://github.com/56kyle/dark-and-darker/issues
[pip]: https://pip.pypa.io/

<!-- github-only -->

[license]: https://github.com/56kyle/dark-and-darker/blob/main/LICENSE
[contributor guide]: https://github.com/56kyle/dark-and-darker/blob/main/CONTRIBUTING.md
[command-line reference]: https://dark-and-darker.readthedocs.io/en/latest/usage.html