Skip to main content

Let you use function annotations (PEP 3107) to parseand validate arguments

Project description



Bla-bla-bla bla-bla-bla


.. code-block:: bash

sudo pip install thunderargs


You can use it like this:

.. code-block:: python

from thunderargs import Arg
from thunderargs.endpoint import Endpoint

def max_int(x: Arg(int), y: Arg(int)):
return max(x,y)

Or you can use it with flask, like this:

.. code-block:: python

def calc_with_expander(x:Arg(int), y:Arg(int),
op:Arg(str, default='+', expander=OPERATION)):
return str(op(x,y))

(Since version 0.3 this feature was moved to `other repo <>`_.)

Or you can write your own proxy to any other framework!

Read the

Project details

Download files

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

Files for thunderargs, version 0.3.1
Filename, size File type Python version Upload date Hashes
Filename, size (7.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page