Skip to main content

My Django Permissions

A custom Django permissions package.

Installation

pip install aclvl_permissions

Usage

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

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aclvl_permissions-0.1.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

aclvl_permissions-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

aclvl_permissions-0.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file aclvl_permissions-0.1.0.tar.gz.

File metadata

  • Download URL: aclvl_permissions-0.1.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.25.1 setuptools/58.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

File hashes

Hashes for aclvl_permissions-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bbe5546e07ff0724b510a51e05230c75da531dd1a3d310a79e4dd0d47e1c79d2
MD5 52ac2287cfe25a22d5f4dbf70b2a5d4d
BLAKE2b-256 19f4905c8bff171255610621f5c02f836eb4823ee7ca6b2323f2426846121d72

See more details on using hashes here.

File details

Details for the file aclvl_permissions-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: aclvl_permissions-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.25.1 setuptools/58.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

File hashes

Hashes for aclvl_permissions-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c235d727dd1ed562b0d82ebd0a2435123f2bfd5a2ec5e22c9b76bc467d421963
MD5 371f94a71d44afa060cbd15a0bff67ee
BLAKE2b-256 e562b2b5270ddcca4ea500f42fded9ab6b2f9e14976a4583d9cf5e0d44f8b3d0

See more details on using hashes here.

File details

Details for the file aclvl_permissions-0.1-py3-none-any.whl.

File metadata

  • Download URL: aclvl_permissions-0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.25.1 setuptools/58.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

File hashes

Hashes for aclvl_permissions-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c30b1c2fefc64a402bfe51eaefe180065aea3c57f0d6923c89eaf0e290c2b78a
MD5 7f254fb249ab40af1e983ec3c69714b4
BLAKE2b-256 929ed621fe5690b71d05a668a660aa23a2b984bfb510872a4869fa28e22e8127

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page