flask-yoloapi - plugin for JSON-RPC endpoints

A very small and easy to use Flask library to create JSON-RPC endpoints. Find it on Github.

Simple usage:

from flask_yoloapi import endpoint, parameter

@app.route('/api/hello')
@endpoint.api(
    parameter('name', type=str, required=True)
)
def api_hello(name):
    return "Hello %s!" % name

Which would create the following HTTP endpoint: /api/hello?name=Sander, in which we have enforced the existence of GET parameter name that must be of type str.