Public

enhanced-drf-jsonapi (1.0.6)

Published 2025-07-16 07:09:00 +02:00 by iruiz in Public/enhanced-drf-jsonapi

Installation

pip install --index-url  enhanced-drf-jsonapi

About this package

Patch library for django rest framework json api

Enhanced Django Rest Framework JSON Api

This is a library aimed to fix some classes in Django Rest Framework and Django Rest Framework JSON Api libraries.

Contents

enhanced_drf_jsonapi module

API

  • class PreloadIncludesMixin

    Overwrites the method get_queryset(self, *args, **kwarg)

  • class ReasonableModelViewSet

    Overwrites the attribute http_method_names

  • class ReasonableModelSerializer

    Overwrites the method get_field_names(self, declared_fields, info)

PAGINATION

  • class NgxJsonApiPageNumberPagination
    Overwrites the method get_paginated_response(self, data)

Build the library

In root directory, run python setup.py bdist_wheel. This will create a wheel file in dist folder.

Install

Run this command in the desired python environment pip install path/to/wheelfile.whl.

Details
PyPI
2025-07-16 07:09:00 +02:00
16
MIT
6.6 KiB
Assets (2)
Versions (3) View all
1.0.6 2025-07-16
1.0.5 2024-10-14
1.0.4 2024-05-21