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 details)
File details
Details for the file Flask-Thunderargs-0.3.1.zip
.
File metadata
- Download URL: Flask-Thunderargs-0.3.1.zip
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ee7123f85478eb20d7e944859c189d7aaf3461d196c8f15136994c6466dd6f4 |
|
MD5 | 05c634f8ccbb51eba4b39945068fb184 |
|
BLAKE2b-256 | 21414ce256467a06b4fd40c4278e53db6b84162d238eef757a690e70c810b059 |