Comments (6)
Have a look at this pull request: #78
Would this be fine?
from asyncio-redis.
I've added comments to the PR; it looks fine to me. 👍
from asyncio-redis.
Cool. Everything has been merged into master. Can you test one more time, then I'll do a Pypi release.
from asyncio-redis.
I've tested it and it works well.
#! /usr/bin/env python3
import asyncio
import asyncio_redis as aioredis
@asyncio.coroutine
def go():
print('asyncio_redis at {}'.format(aioredis.__file__)) # Installed using "setup.py develop"
print('connecting')
conn = yield from aioredis.Pool.create(host='192.168.59.103', port=6379)
print('begin')
cur = yield from conn.scan('*')
cur.count = 1
fet_count = 0
while True:
cur.count += 0 # <-- I have changed this value from 0 to 5
v = yield from cur.fetchone() # Inside, I printed "----" before calling _fetch_more()
# and the number of items fetched per iteration is
# approximately same to the given count.
# Please note that the count is just a hint, and
# the actual number of fetched items may differ.
if v is None: break
print(v)
fet_count += 1
print('end, fetched {} items'.format(fet_count)) # the result is consistent
conn.close()
if __name__ == '__main__':
loop = asyncio.get_event_loop()
loop.run_until_complete(go())
loop.run_until_complete(asyncio.sleep(0))
loop.close()
from asyncio-redis.
I am waiting for the PyPI release. How is it going? :)
from asyncio-redis.
I just did a release. Now also both sdist and wheel. Enjoy.
from asyncio-redis.
Related Issues (20)
- ZRangeReply do not have aslist method
- Using context managers HOT 1
- How to release connection from subscribe HOT 1
- Broken on python 3.7.0 HOT 4
- The right way to share the returned connection.
- Unable to turn off auto_reconnect
- Deprecation warning for formatargspec in Python3.7 HOT 1
- Function `asyncio_redis.Connection.create()` hangs if connection can't be established HOT 2
- Python 3.8 DeprecationWarnings; drop support for legacy Python HOT 3
- Future and roadmap of asyncio-redis HOT 5
- Difference between aioredis?
- Release new version? HOT 4
- Update documentation HOT 1
- SPOP [count] argument.
- intersphinx looks for implementation modules
- asyncio_redis should wait for server restart
- Adding python types HOT 1
- Missing ignore_subscribe_messages equivalent HOT 1
- Proposing a PR to fix a few small typos
- Async Class Constructors HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asyncio-redis.