Skip to content

Commit 8bf01b7

Browse files
author
RamanjaneyuluIdavalapati
committed
Streaming the data without loading into RAM
1 parent 3405be7 commit 8bf01b7

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ deploy:
1010
skip_cleanup: true
1111
api_key:
1212
secure: 3wIm6vrNmdIP50NIUtig33S34FonRqxGnRRY55oiMN4BD5xeo2iQb8TmWMswwqVTuO09C3Cd7kBxP5JxBR+dCuVZZRqpL/8E6JUTaGyZcQ/9HgB8FwYXRCj2ASPDHfmjmZ8F3GIX19akJLKiTThB1WU3XidcZ9tZgwvOmf10Jy7IXiddRKwucVVVy608H9hUXPpIVMzqcFfeU2KeXcotU0J2eZyqso/RCPNw4qDZKFvkiKT2MM4B6FgY7WYorNUW1JXdh8dcAV7vb0oNB0iUNLMCpNHFqoyfOHcxKUgP81wMS8TY5wWLuQxUESg1eyo7Q9gwegOseySU1NBjlPyltVVWtulltM2sge0KgVoLgQRia/LeKnCynSi2r8aic1VoMUDEH5ZfWuJJrFHOJyKCNapp3MKK42UXDo28NpdjjUUgJOOukWpXsaVmPhPXpWWQlZM9YMeMPxTUpm3ZACs2WmHssVwO7EaTaJ45ctAf4m0csb7Ri5IyR5iLy9YEX6fuNMoNVCI6lE7ax38pf1mkgamZTJtvEFr+ekKMXq3heVk598rA2P7hzI5Z6Zx7S8GyQz4vveSTk/pY3StX1ScU3ULnLQaEjP1LVI3pu6R5w7PdQ+Ew6fPmU7RpD8rZPKfFoBcby1mf2Mb/HNk8jXPTHTmyTKBB+othHHg4BWM3Kuw=
13-
name: kwikapi.tornado-0.3
14-
tag_name: 0.3
13+
name: kwikapi.tornado-0.3.1
14+
tag_name: 0.3.1
1515
on:
1616
repo: deep-compute/kwikapi.tornado
1717
- provider: pypi

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Quickly build API services to expose functionality in Python. `kwikapi.tornado`
44
## Installation
55

66
```bash
7-
$ pip install kwikapi[tornado]
7+
$ pip3 install kwikapi[tornado]
88
```
99

1010
## Usage

kwikapi/tornado/kwikapi_tornado.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,12 @@ def fn():
106106

107107
if not res._stream:
108108
self.write(res._data)
109+
self.flush()
109110
else:
110111
for x in res._data:
111112
self.write(x)
113+
await self.flush()
112114

113-
self.flush()
114115
self.finish()
115116

116117
get = post = _handle

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from setuptools import setup, find_packages
22

33
# https://docs.djangoproject.com/en/1.11/intro/reusable-apps/
4-
version = '0.3'
4+
version = '0.3.1'
55
setup(
66
name="kwikapi-tornado",
77
version=version,

0 commit comments

Comments
 (0)