Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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

Project Description
=========
Thunderargs
=========

Abstract
--------

Bla-bla-bla bla-bla-bla


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)

Or you can use it with flask, like this:

.. code-block:: python

@app.route('/calc_with_expander/')
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 <https://bitbucket.org/dsupiev/flask-thunderargs>`_.)

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

Read the example.py
Release History

Release History

History Node

0.4.0a0

This version
History Node

0.3.1

History Node

0.3.1a5

History Node

0.3

History Node

0.2.2

History Node

0.2.1

History Node

0.2

History Node

0.2a3

History Node

0.2a2

History Node

0.2a1

History Node

0.1

History Node

0.1b1

History Node

0.1b

History Node

0.1a1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
thunderargs-0.3.1.zip (7.1 kB) Copy SHA256 Checksum SHA256 Source Sep 3, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting