Skip to main content

Implements thunderargs to flask framework.

Project description

=========
Flask-Thunderargs
=========


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

.. code-block:: bash

sudo pip install flask-thunderargs

Usage
-----

.. code-block:: python

from flask import Flask
from flask.ext.thunderargs import ThunderargsProxy
from thunderargs import Arg

app = Flask(__name__)
ThunderargsProxy(app)

@app.route('/max')
def find_max(x: Arg(int, multiple=True)):
return str(max(x))

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Flask-Thunderargs-0.3.1.zip (4.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page