Skip to main content

Django Rest Framework extension for implement by action serializers, permissions & /etc

Project description

Django Rest Framework Extended ViewSet

https://pypi.python.org/pypi/drf_extended_viewset https://travis-ci.com/ivlevdenis/drf_extended_viewset https://drf-extended-viewset.readthedocs.io/en/latest/?badge=latest https://pyup.io/repos/github/ivlevdenis/drf_extended_viewset/

Django Rest Framework extension for implement by action serializers, permissions & /etc

Dependencies

  • Python 3.7+
  • Django 2.0+
  • Django Rest Framework 3.10+

Setup

You can install the library directly from pypi using pip:

$ pip install drf-extended-viewset

License

Free software: MIT license

Features

class MyModelViewSet(ExtendedModelViewSet):
    serializer_class_map = {
        'list': ListMyModelSerializer,
        'retrieve': RetrieveMyModelSerializer,
        'update': UpdateMyModelSerializer,
        ...
    }
    permission_classes_map = {
        'list': AllowAny,
        'retrieve': IsAuthenticated,
        'update': (IsOwner | IsAdminUser),
        ...
    }

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

Project details


Download files

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

Source Distribution

drf_extended_viewset-0.1.1.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

drf_extended_viewset-0.1.1-py2.py3-none-any.whl (4.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file drf_extended_viewset-0.1.1.tar.gz.

File metadata

  • Download URL: drf_extended_viewset-0.1.1.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.5

File hashes

Hashes for drf_extended_viewset-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0e1466510720e2bccba01212f1bdbb6e377dfee672fc9051e3c765747b42bfb9
MD5 0b91d3e1bf9162a993b1bb8e2581f9dd
BLAKE2b-256 e618e9fac9f14f96f86c2f63654736696881416d614ba758376567ef6615c3d2

See more details on using hashes here.

File details

Details for the file drf_extended_viewset-0.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: drf_extended_viewset-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.5

File hashes

Hashes for drf_extended_viewset-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 06e4b184fba6ed3f9df5ec5b08052c3880f6297511bb776487010eb7fefc82a4
MD5 59cb238962f5f7bcf4edcc5f8832c184
BLAKE2b-256 34a6ec69a660c0f201b8c0f4b5f54ae3e5bdc30c84dbfd1b1b9b5a98be8d9d99

See more details on using hashes here.

Supported by

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