From 48ece9a8174d9d52b23e8b8be1bc4c54e3e76c2d Mon Sep 17 00:00:00 2001 From: RamanjaneyuluIdavalapati Date: Thu, 8 Feb 2018 19:12:05 +0530 Subject: [PATCH 1/2] Typing removed --- .travis.yml | 4 ++-- README.md | 4 ++-- setup.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index ba669b8..07ee585 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,8 +17,8 @@ deploy: - kwikapi/__init__.py - kwikapi/tornado/__init__.py - kwikapi/tornado/kwikapi_tornado.py - name: kwikapi.tornado-0.1.1 - tag_name: 0.1.1 + name: kwikapi.tornado-0.2 + tag_name: 0.2 on: repo: deep-compute/kwikapi.tornado - provider: pypi diff --git a/README.md b/README.md index d60c7dd..296bc6b 100644 --- a/README.md +++ b/README.md @@ -20,10 +20,10 @@ from kwikapi.tornado import RequestHandler from kwikapi import API class BaseCalc(object): - def add(self, a: int, b: int): + def add(self, a, b): return a + b - def subtract(self, a: int, b: int): + def subtract(self, a, b): return a - b api = API(default_version='v1') diff --git a/setup.py b/setup.py index 7f146fa..33a5f59 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from setuptools import setup, find_packages # https://docs.djangoproject.com/en/1.11/intro/reusable-apps/ -version = '0.1.1' +version = '0.2' setup( name="kwikapi-tornado", version=version, @@ -15,7 +15,7 @@ author='Deep Compute, LLC', author_email='contact@deepcompute.com', install_requires=[ - 'tornado', + 'tornado==4.5.3', ], classifiers=[ 'Environment :: Web Environment', From e59b303575c8e78bccc34fe5bbc40962fecc0a88 Mon Sep 17 00:00:00 2001 From: RamanjaneyuluIdavalapati Date: Tue, 13 Feb 2018 17:40:28 +0530 Subject: [PATCH 2/2] KwikAPI with type hints allowed. Type must be specifi --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 296bc6b..c29882b 100644 --- a/README.md +++ b/README.md @@ -20,10 +20,10 @@ from kwikapi.tornado import RequestHandler from kwikapi import API class BaseCalc(object): - def add(self, a, b): + def add(self, a: int, b: int) -> int: return a + b - def subtract(self, a, b): + def subtract(self, a: int, b: int) -> int: return a - b api = API(default_version='v1') @@ -51,3 +51,5 @@ $ python sample.py ```bash $ curl "http://localhost:8888/api/v1/add?a=10&b=10" ``` + +> To know how to use all features, please refer KwikAPI documentation https://github.com/deep-compute/kwikapi/blob/master/README.md