thunderargs

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


License
JSON
Install
pip install thunderargs==0.4.0a0

Documentation

Thunderargs

Latest version released on PyPi Test coverage Build status of the master branch on Mac/Linux

Abstract

This library helps you to validate function parameters.

Installation

sudo pip install thunderargs

Usage

You can use it like this:

from thunderargs import Arg
from thunderargs.endpoint import Endpoint


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

Read the tests for more examples.