semvec/pypi-packages huggingface dataset:
Flask-REST-Controller 1.0.0
Flask-REST-Controller is added Class-Based-View(Controller) extension on Flask
License: MIT
Keywords: flask,controller,view,cbv

Flask-REST-Controller
=====================


Flask-REST-Controller is added Class-Based-View(Controller) extension on
`Flask <http://flask.pocoo.org/>`__

Features
--------

-  Follow the RESTful design
-  provide of prepare authentication and request validation

   -  other class based view library is not provided of validation

-  uniform routing management

   -  The existing functional view is difficult to manage. Definition
      routing Scattered

-  JSON Response Validation with JSON Schema

   -  It would be useful for creating an API :)

Installation
------------

::

    $ pip install flask-rest-controller

Usage
-----

.. code:: python

    from flask import Flask
    from flask_rest_controller import Controller, set_routing

    app = Flask(__name__)
    app.secret_key = 'Í|	èg<Î|ÇæãhÖúÈi|î°'


    class JsonController(Controller):
        schema = {
            'GET': {
                'type': 'array',
                'properties': {
                    'id':   {
                        'type': 'string'
                    }
                }
            },
            'POST': {
                'type': 'object',
                'properties': {
                    'result':   {
                        'type': 'string'
                    },
                    'code': {
                        'type': 'integer'
                    }
                }
            }
        }

        def get(self):
            return self.render_json(["Hello World"])

        def post(self):
            return self.render_json({'result': "ok", 'code': 200})

    ROUTING = [
        ("/", "app.JsonController", "json_controller"),
    ]

    set_routing(app, ROUTING)

    if __name__ == "__main__":
        app.run(debug=True)

Just save it as app.py and try

.. code:: bash

    $ python app.py

Now head over to http://127.0.0.1:5000/, and you should see your hello
world of json string

You should see a post request result, try this command

.. code:: bash

    $ curl --request POST http://127.0.0.1:5000

You should see that you json in the post method

see
https://github.com/teitei-tk/Flask-REST-Controller/tree/master/example
For other examples

Dependencies
------------

-  Python2.6 later
-  jsonschema

Contribute
----------

1. Fork it
2. Create your feature branch (``git checkout -b your-new-feature``)
3. Commit your changes (``git commit -am 'Added some feature'``)
4. Push to the branch (``git push origin your-new-feature``)
5. Create a new Pull Request

LICENSE
-------

-  MIT
django-websocket-redis3 0.4.4
Py3 compliant port of django-websocket-redis.             Doesn't provide backwards compatibility with py2.
License: MIT
Keywords: django,websocket,redis

django-websocket-redis3
=======================

Fork with better py3 compatibility.

Main and great library home:
https://github.com/jrief/django-websocket-redis

Detailed documentation on
`ReadTheDocs <http://django-websocket-redis.readthedocs.org/en/latest/>`__.

Online demo: http://websocket.aws.awesto.com/

Why did I do that?
------------------

Base library has several critical py3 incompatibilities. I'll try to get
rid of 'six' module too.

Build status
------------

|Build Status|

Downloads for jrief package.

|Downloads|

Questions
---------

Please use the issue tracker to ask questions.

License
-------

Copyright © 2015 Dmitry Shlagoff.

MIT licensed.

.. |Build Status| image:: https://travis-ci.org/0nkery/django-websocket-redis3.png?branch=master
   :target: https://travis-ci.org/0nkery/django-websocket-redis3
.. |Downloads| image:: http://img.shields.io/pypi/dm/django-websocket-redis.svg?style=flat-square
   :target: https://pypi.python.org/pypi/django-websocket-redis/