New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
create a sans-io docker client class and impliment Client with blocking requests #1171
Comments
This way someone can come and make an asyncio IOAdapter adapter to fix #327 |
This won't change too much of the implimentation of api classes, they will just need to add @defered.inlineCallbacks to their methods, and then instead of: resp = self._request(...); do: resp = yield self._request(...); |
@bfirsh is this something you'd like a PR on? |
@shin- this issue is completely unrelated |
Correct, sorry. |
@shin- is this something you guys would be interesting? It would take me a little bit of work up-front, so I'd like to know if this feature is something you would be interested in having. |
I made a small attempt here to get docker-py asynchronous: https://github.com/tenforce/docker-py-aiohttp This is actually a wrapper around docker-py. I suppose it's not really what you want, especially since it is strongly bound to aiohttp and I think you want something more generic right? |
use https://github.com/mikeal/deferred to create a sans-io version of Client (SansIOClient) that requires something like:
and then implement it with something like:
The text was updated successfully, but these errors were encountered: