kandi background

drf-url-filters | django app to apply filters on drf querysets using query params | Widget library

Download this library from

kandi X-RAY | drf-url-filters Summary

drf-url-filters is a Python library typically used in User Interface, Widget, React applications. drf-url-filters has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. However drf-url-filters has 1 bugs. You can install using 'pip install drf-url-filters' or download it from GitHub, PyPI.
A django app to apply filters on drf querysets using query params with validations using voluptuous.

kandi-support Support

  • drf-url-filters has a low active ecosystem.
  • It has 151 star(s) with 17 fork(s). There are 8 watchers for this library.
  • It had no major release in the last 12 months.
  • There are 3 open issues and 7 have been closed. On average issues are closed in 64 days. There are 1 open pull requests and 0 closed requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of drf-url-filters is v0.5.1

quality kandi Quality

  • drf-url-filters has 1 bugs (0 blocker, 0 critical, 0 major, 1 minor) and 11 code smells.


  • drf-url-filters has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • drf-url-filters code analysis shows 0 unresolved vulnerabilities.
  • There are 0 security hotspots that need review.

license License

  • drf-url-filters is licensed under the MIT License. This license is Permissive.
  • Permissive licenses have the least restrictions, and you can use them in most projects.


  • drf-url-filters releases are available to install and integrate.
  • Deployable package is available in PyPI.
  • Build file is available. You can build the component from source.
  • Installation instructions, examples and code snippets are available.
  • It has 490 lines of code, 32 functions and 19 files.
  • It has low code complexity. Code complexity directly impacts maintainability of the code.
Top functions reviewed by kandi - BETA

kandi has reviewed drf-url-filters and discovered the below as its top functions. This is intended to give you an instant insight into drf-url-filters implemented functionality, and help decide if they suit your requirements.

  • Returns a function that validates integers .
  • Call validation function .
  • Fetches the queryset .
  • Validates that a value is an integer .
  • Returns a function that validates input .
  • Returns a function that validates an integer .
  • Return a queryset filtered queryset .
  • Create a function that returns a date with tz .
  • Initialize validation .
  • Overrides get_queryset .

drf-url-filters Key Features

A django app to apply filters on drf querysets using query params with validations using voluptuous.

drf-url-filters Examples and Code Snippets

  • validations.py
  • views.py


import six

from filters.schema import base_query_params_schema
from filters.validations import (

# make a validation schema for players filter query params
players_query_schema = base_query_param_schema.extend(
        "id": IntegerLike(),
        "name": six.text_type,  # Depends on python version
        "team_id": CSVofIntegers(),  # /?team_id=1,2,3
        "install_ts": DatetimeWithTZ(),
        "update_ts": DatetimeWithTZ(),
        "taller_than": IntegerLike(),

Community Discussions

Trending Discussions on Widget
  • Hide subcategories from woocommerce category BLOCK widget on WP 5.8
  • Audio widget within Jupyter notebook is **not** playing. How can I get the widget to play the audio?
  • iOS widget background-image goes black after couple of minutes
  • Kivy widget generation very slow
  • how to remove shadow from a WidgetControl?
  • How to better position Next/Back button in shiny glide, in order to eliminate large white space?
  • How do you take a screenshot of a particular widget in Tkinter?
  • showDialog bug: dialog isn't triggered from PopupMenuButton in Flutter
  • Update the Painted Decoration of The Widget from a Function
  • Make known subclassed wigets in .ui files in GTK+
Trending Discussions on Widget


Hide subcategories from woocommerce category BLOCK widget on WP 5.8

Asked 2022-Apr-02 at 09:04

With the update to WP 5.8 and WC 5.6 the "woocommerce_product_categories_widget_args" filter no longer works, which hook should I use to be able to customize the new product categories block widget?

The solution mentioned in this post Hide subcategories from woocommerce category widget it worked before upgrading to WP 5.8, and it still works if I install the Classic Widget plugin, but I want to use the new block widgets available from WP 5.8 version without using Classic Widget plugin:

how should i do?


Answered 2022-Apr-02 at 09:04

You have to use the Classic Widget plugin, or you need to write your own code. The current widget block, that displays the categories, does not have any filter hook points included, that allow you to modify it.

Your last resort option may be to extend the class ProductCategories in the Blocks src folder, which is now responsible for rendering the list.

Source https://stackoverflow.com/questions/68872123

Community Discussions, Code Snippets contain sources that include Stack Exchange Network


No vulnerabilities reported

Install drf-url-filters

Download drf-url-filters app package from this git repo or can be installed using python-pip like pip install drf-url-filters.
Add filters in INSTALLED_APPS of settings.py file of django project.
Your View or ModelViewSet should inherit FiltersMixin from filters.mixins.FiltersMixin.
To apply filters using drf-url-filters we need to configure our view to have a dict mapping filter_mappings which converts incoming query parameters to query you want to make on the column name on the queryset.
Optionally, to perform any preprocessing on the incoming values for query params, add another dict filter_value_transformations which maps incoming query parameters to functions that should be applied to the values corresponding to them. The resultant value is used in the final filtering.


Please open an issue for support.

Explore Related Topics

Build your Application

Share this kandi XRay Report