From cc1794af1a0c028c74057f89f84c63d2417e9b33 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 29 Jan 2020 13:44:15 +0100 Subject: [PATCH 1/2] update README.md and deeputils latest version --- README.md | 8 ++++++++ setup.py | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f651f18..8f7787c 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,9 @@ Here is an example of how to use `KwikAPI` to expose `Calc` as a service. We wil > To use KwikAPI with tornado install `sudo pip3 install kwikapi[tornado]` ```python + +# `calc.py` - A simple calculator as a kwikapi service + import tornado.ioloop import tornado.web @@ -51,6 +54,11 @@ if __name__ == "__main__": tornado.ioloop.IOLoop.current().start() ``` +#### Run Command +``` +$ python calc.py run +``` + Making an API request ```bash $ wget http://localhost:8888/api/v1/add?a=10&b=20 diff --git a/setup.py b/setup.py index df5ac0e..4478fe8 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ author_email="contact@deepcompute.com", install_requires=[ "msgpack-python==0.5.1", - "deeputil==0.2.7", + "deeputil==0.2.9", "numpy==1.15.1", "future==0.16.0", "requests>=2.18.4", From f227eae1afef7b21152e9b8ca41a17ae368c126e Mon Sep 17 00:00:00 2001 From: mohansriharsha Date: Wed, 29 Jan 2020 13:52:27 +0100 Subject: [PATCH 2/2] update setup.py and .travis.yml versions --- .travis.yml | 4 ++-- setup.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 29fefbc..cfd1dbb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,8 +9,8 @@ deploy: - LICENSE - kwikapi/api.py - kwikapi/__init__.py - name: kwikapi-0.5.12 - tag_name: 0.5.12 + name: kwikapi-0.5.13 + tag_name: 0.5.13 true: repo: deep-compute/kwikapi - provider: pypi diff --git a/setup.py b/setup.py index 4478fe8..574cb0d 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup, find_packages -version = "0.5.12" +version = "0.5.13" setup( name="kwikapi", version=version,