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)
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
Release history Release notifications | RSS feed
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)