Metadata-Version: 2.1
Name: aclvl-permissions
Version: 0.1
Summary: A custom Django permissions package.
Home-page: https://github.com/shahbazism/aclvl_permissions
Author: Saeis shahbazi
Author-email: saeidshahbazi@zohomail.com
License: MIT License
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 3.0
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: Django (>=3.0)
Requires-Dist: djangorestframework (>=3.0)

# My Django Permissions

A custom Django permissions package.

## Installation

```bash
pip install aclvl_permissions
```

## Usage
In your Django project, you can use the custom permission as follows:

```bash
from my_django_permissions.permissions import AccessLevelPermission

class MyView(APIView):
    permission_classes = [AccessLevelPermission]
    required_access_levels = ['view_all_model', 'view_owner_model', 'create_all_model']
    view_key = 'model'
```

## License

This project is licensed under the MIT License - see the LICENSE file for details.



