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/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..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, @@ -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",