Skip to content

Commit

Permalink
Streaming the data without loading into RAM
Browse files Browse the repository at this point in the history
  • Loading branch information
RamanjaneyuluIdavalapati committed Sep 3, 2018
1 parent 3405be7 commit 8bf01b7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ deploy:
skip_cleanup: true
api_key:
secure: 3wIm6vrNmdIP50NIUtig33S34FonRqxGnRRY55oiMN4BD5xeo2iQb8TmWMswwqVTuO09C3Cd7kBxP5JxBR+dCuVZZRqpL/8E6JUTaGyZcQ/9HgB8FwYXRCj2ASPDHfmjmZ8F3GIX19akJLKiTThB1WU3XidcZ9tZgwvOmf10Jy7IXiddRKwucVVVy608H9hUXPpIVMzqcFfeU2KeXcotU0J2eZyqso/RCPNw4qDZKFvkiKT2MM4B6FgY7WYorNUW1JXdh8dcAV7vb0oNB0iUNLMCpNHFqoyfOHcxKUgP81wMS8TY5wWLuQxUESg1eyo7Q9gwegOseySU1NBjlPyltVVWtulltM2sge0KgVoLgQRia/LeKnCynSi2r8aic1VoMUDEH5ZfWuJJrFHOJyKCNapp3MKK42UXDo28NpdjjUUgJOOukWpXsaVmPhPXpWWQlZM9YMeMPxTUpm3ZACs2WmHssVwO7EaTaJ45ctAf4m0csb7Ri5IyR5iLy9YEX6fuNMoNVCI6lE7ax38pf1mkgamZTJtvEFr+ekKMXq3heVk598rA2P7hzI5Z6Zx7S8GyQz4vveSTk/pY3StX1ScU3ULnLQaEjP1LVI3pu6R5w7PdQ+Ew6fPmU7RpD8rZPKfFoBcby1mf2Mb/HNk8jXPTHTmyTKBB+othHHg4BWM3Kuw=
name: kwikapi.tornado-0.3
tag_name: 0.3
name: kwikapi.tornado-0.3.1
tag_name: 0.3.1
on:
repo: deep-compute/kwikapi.tornado
- provider: pypi
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Quickly build API services to expose functionality in Python. `kwikapi.tornado`
## Installation

```bash
$ pip install kwikapi[tornado]
$ pip3 install kwikapi[tornado]
```

## Usage
Expand Down
3 changes: 2 additions & 1 deletion kwikapi/tornado/kwikapi_tornado.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,12 @@ def fn():

if not res._stream:
self.write(res._data)
self.flush()
else:
for x in res._data:
self.write(x)
await self.flush()

self.flush()
self.finish()

get = post = _handle
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages

# https://docs.djangoproject.com/en/1.11/intro/reusable-apps/
version = '0.3'
version = '0.3.1'
setup(
name="kwikapi-tornado",
version=version,
Expand Down

0 comments on commit 8bf01b7

Please sign in to comment.