Open Kilo59 opened 3 years ago
any news?
The Hazelcast documentation suggests that await can be used, however when I try it I just get TypeError: object Future can't be used in 'await' expression
:
https://hazelcast.com/blog/getting-started-with-the-hazelcast-python-client/
Rather than using
future.result()
it would be nice if the python client could be used with async & await methods. https://docs.python.org/3.7/library/asyncio-task.htmlThis makes it much easier to integrate Hazelcast into a high throughput ASGI based web framework. https://asgi.readthedocs.io/en/latest/implementations.html
This would be much easier if support for anything before python 3.5 was dropped as many important async components were added in 3.5 (although arguably 3.7 is a better cutoff).
350
IMO a good model for this is
pymongo
andmotor
.motor
is another package that depends onpymongo
but adds async support.A new
aio_hazelcast
package that requirespython3.7
/ (or 3.5 at a minimum) would be much easier to develop and maintain than trying to add to this codebase.I wouldn't include Tornado support.