Show HN: rest-filters – A filter backend for Django REST framework
I have been working on a new Filter backend for Django REST framework.
The de-facto library for filtering and query parameter handling is django-filter, but I had some use cases where it fell short. Here are some features:
You use serializer fields to do parsing and validation. No more need to deal with Django forms and widgets.
You can group your filters. Grouping allows you to customize interactions between your filters.
You can use the constraint system to perform validation between your filters.
You can create nested filters with child filters.
... and more. In the documentation, I explain the reasoning behind these choices as well as presenting some real-world examples.
I would like to see your comments on it. I'm open to suggestions and recommendations. Thanks!
No comments yet