Metadata-Version: 1.1
Name: django-rest-tools
Version: 1.0.1
Summary: Tools for Django Rest Framework
Home-page: https://github.com/quiqueporta/django-rest-tools
Author: Quique Porta
Author-email: quiqueporta@gmail.com
License: GPLv3
Download-URL: https://github.com/quiqueporta/django-rest-tools/releases
Description: django-rest-tools
        =================
        
        |Build Status| |Coverage Status| |Requirements Status|
        
        Install last stable version from pypi
        -------------------------------------
        
        .. code-block:: bash
        
            pip install django-rest-tools
        
        Install development version
        ---------------------------
        
        .. code-block:: bash
        
            pip install https://github.com/quiqueporta/django-rest-tools/tarball/master
        
        Filters
        -------
        
        NearToPointFilter
        ~~~~~~~~~~~~~~~~~
        
        ``views.py:``
        
        .. code-block:: python
        
            from django_rest_tools.filters import NearToPointFilter
        
            class LocationsList(generics.ListAPIView):
        
                queryset = Location.objects.all()
                serializer_class = LocationListSerializer
                filter_backends = (NearToPointFilter,)
                point_field_filter = 'location'
        
        We can then filter in the URL.
        
        eg:.
        ``/location/?max_distance=40&lat=-40.4862&long=-0.39536``
        
        
        .. |Build Status| image:: https://travis-ci.org/quiqueporta/django-rest-tools.svg?branch=master
            :target: https://travis-ci.org/quiqueporta/django-rest-tools
        
        .. |Coverage Status| image:: https://coveralls.io/repos/quiqueporta/django-rest-tools/badge.svg?branch=master
          :target: https://coveralls.io/r/quiqueporta/django-rest-tools?branch=master
        
        .. |Requirements Status| image:: https://requires.io/github/quiqueporta/django-rest-tools/requirements.svg?branch=master
             :target: https://requires.io/github/quiqueporta/django-rest-tools/requirements/?branch=master
             :alt: Requirements Status
        
Keywords: django,djangorestframework,tools
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Internet :: WWW/HTTP
