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 details)

Uploaded Source

File details

Details for the file Flask-Thunderargs-0.3.1.zip.

File metadata

File hashes

Hashes for Flask-Thunderargs-0.3.1.zip
Algorithm Hash digest
SHA256 6ee7123f85478eb20d7e944859c189d7aaf3461d196c8f15136994c6466dd6f4
MD5 05c634f8ccbb51eba4b39945068fb184
BLAKE2b-256 21414ce256467a06b4fd40c4278e53db6b84162d238eef757a690e70c810b059

See more details on using hashes here.

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