Metadata-Version: 1.1
Name: flask-restframework
Version: 0.0.12
Summary: Web APIs for Flask, made easy, inspired from Django DRF.
Home-page: https://github.com/sallyruthstruik/flask_restframework
Author: Stas Kaledin
Author-email: staskaledin@gmail.com
License: BSD
Description: # Django Rest Framework analog for Flask+Mongoengine
        
        [![Build Status](https://travis-ci.org/sallyruthstruik/flask_restframework.svg?branch=master)](https://travis-ci.org/sallyruthstruik/flask_restframework)
        [![codecov](https://codecov.io/gh/sallyruthstruik/flask_restframework/branch/master/graph/badge.svg)](https://codecov.io/gh/sallyruthstruik/flask_restframework)
        [![PyPI version](https://badge.fury.io/py/flask_restframework.svg)](https://badge.fury.io/py/flask_restframework)
        
        Minimalistic and usage-easy RESTful framework for Flask. Like Django Rest Framework for Flask
        
        This project allows you to write serializers/model serializers and REST resources easily.
        This project interface was inspired by Django-rest-framework (https://github.com/tomchristie/django-rest-framework)
        
        
        ## Installation
        
        For installation run:
        `pip install flask_restframework`
        
        Example of usage you can see here: https://github.com/sallyruthstruik/angular2_logviewer/tree/master/server
        
        Simple example:
        ```python
        
        api = Blueprint("api", __name__)
        router = DefaultRouter(api)
        
        class LogsSerializer(ModelSerializer):
            class Meta:
                model = Logs
        
        
        
        class LogsResource(DistinctValuesMixin,
                           ModelResource):
        
            serializer_class = LogsSerializer
            queryset = Logs.objects.all()
            distinct_fields = ["request_id", "level", "host", "logger_name"]
            update_json_filter = update_json_filter #allows to filter with ?json_filters={...}
            ordering = ("-@timestamp", )  #default ordering
        
        ```
        
        
        
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Web Environment
Classifier: Framework :: Flask
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Topic :: Internet :: WWW/HTTP
