Skip to content

uthunderbird/thunderargs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Thunderargs

Latest version released on PyPi 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.

About

Use decorators to validate arguments

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages