Skip to main content

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

Project description

=========
Thunderargs
=========

Abstract
--------

This library helps you to validate function parameters.


Installation
------------

.. code-block:: bash

sudo pip install thunderargs

Usage
-----

You can use it like this:

.. code-block:: python

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.

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

thunderargs-0.3.1a5.zip (6.8 kB view hashes)

Uploaded Source

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