Skip to main content

rest-framework-mixins

Installation

pip install rest_framework_mixins

Usage

This package provides all combinations of the mixins provided by rest_framework.
All combinations follow the same format: `{initials}Mixin.

The initials correspond to the following methods, in this specific order:

  • L: list()
  • R: retrieve()
  • C: create()
  • U: update()
  • P: partial_update()
  • D: delete()

So for example, to import a mixin that gives us list, retrieve and create, we can do the following:

from rest_framework_mixins import LRCMixin

class CreateListRetrieveViewSet(LRCMixin, viewsets.GenericViewSet):
    """
    A viewset that provides `retrieve`, `create`, and `list` actions.

    To use it, override the class and set the `.queryset` and
    `.serializer_class` attributes.
    """
    pass

Adapted from DRF's documentation

Metadata

Release files for rest_framework_mixins 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rest_framework_mixins 1.0.0
File Size Uploaded Provenance Actions
rest_framework_mixins-1.0.0.tar.gz 4.2 kB Without provenance Details for rest_framework_mixins-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rest_framework_mixins 1.0.0
File Interpreter ABI Platform Actions
rest_framework_mixins-1.0.0-py3-none-any.whl Python 3 none any Details for rest_framework_mixins-1.0.0-py3-none-any.whl

Total release size: 10.0 kB

Release files / rest_framework_mixins-1.0.0.tar.gz

Download URL rest_framework_mixins-1.0.0.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f7e4d7115f88031b455b50e56e284657d53ca79fed38df012301cd4af085c74c
BLAKE2b-256 checksum
How to use checksums
29f8efaa30b5b7eac786355b6a93dbea9f3581c1c0f23ec8f2e1fcca7656c09e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.0 CPython/3.11.7 Linux/6.2.0-1018-azure

Release files / rest_framework_mixins-1.0.0-py3-none-any.whl

Download URL rest_framework_mixins-1.0.0-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bc24a9620ffc6ec1ddf8453ac988b2a0b633d3483124973a3e4503ce7ccdd04e
BLAKE2b-256 checksum
How to use checksums
1cda69ad672e60521c097c7ce3db35620846799b8bcb2f06ea1c47859f5cc8ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.0 CPython/3.11.7 Linux/6.2.0-1018-azure

Security for rest_framework_mixins 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page