Parses query args in sanic using type annotations
Project description
[![Build Status](https://travis-ci.org/trustpilot/python-sanicargs.svg?branch=master)](https://travis-ci.org/trustpilot/python-sanicargs) [![Latest Version](https://img.shields.io/pypi/v/sanicargs.svg)](https://pypi.python.org/pypi/sanicargs) [![Python Support](https://img.shields.io/pypi/pyversions/sanicargs.svg)](https://pypi.python.org/pypi/sanicargs)
# Sanicargs
Parses query args in sanic using type annotations
## Usage
Use with [Sanic framework](https://github.com/channelcat/sanic)
```
@app.route("/datetime", methods=['GET'])
@parse_query_args
async def test_datetime(request, test: datetime.datetime):
return response.json({'test': test.isoformat()})
```
History
=======
0.0.1 (2017-08-09)
------------------
* git init
# Sanicargs
Parses query args in sanic using type annotations
## Usage
Use with [Sanic framework](https://github.com/channelcat/sanic)
```
@app.route("/datetime", methods=['GET'])
@parse_query_args
async def test_datetime(request, test: datetime.datetime):
return response.json({'test': test.isoformat()})
```
History
=======
0.0.1 (2017-08-09)
------------------
* git init
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sanicargs-0.0.2.tar.gz
(3.9 kB
view hashes)