Metadata-Version: 2.1
Name: drf-custom-permissions
Version: 0.1.2
Summary: Django Rest Framework custom permissions classes
Home-page: https://github.com/kovalevme/drf-permissions
License: MIT
Keywords: drf,django,Django,django rest framework,drf-permission,permissions,python
Author: kovalevme
Author-email: kovalevme14@gmail.com
Requires-Python: >=3.9,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: django
Requires-Dist: djangorestframework
Description-Content-Type: text/markdown

# drf-permissions

## Installation

```pip
pip install drf-custom-permissions
```

## Usage

### APIView IsNotAuthenticated permission

```python
# views.py

from rest_framework.views import APIView
from drf_custom_permissions import IsNotAuthenticated

class ExampleIsNotAuthenticatedAPIVIew(APIView):
    permission_classes = (IsNotAuthenticated,)
    ...
```

### APIView with HasGroupPermission

```python
# views.py

from rest_framework.views import APIView
from drf_custom_permissions import HasGroupPermission

class ExampleIsNotAuthenticatedAPIVIew(APIView):
    permission_classes = (HasGroupPermission,)
    permission_groups = ('Designers', 'Developers',)
    ...
```
