On Mon, Jan 25, 2016 at 4:45 PM, Victor Stinner <[email protected]>
wrote:
> Hi,
>
> Short story: I don't want to maintain Trollius anymore. If anyone is
> using it, please say it. Otherwise, I will simply make it clear that
> Trollius must not be used anymore.
>
> Since almost no library support Trollius, I'm not sure that it's
> possible to build an application on top of it. For example, there is
> no HTTP client for Trollius!
>
The Tornado bridge allows you to use any tornado-based library (and
indirectly, twisted ones) on trollius:
```
from tornado.platform.asyncio import AsyncIOMainLoop, to_asyncio_future
from tornado.httpclient import AsyncHTTPClient
from trollius import coroutine, get_event_loop, From
@coroutine
def main():
client = AsyncHTTPClient()
resp = yield From(to_asyncio_future(client.fetch('http://www.google.com
')))
print(resp)
if __name__ == '__main__':
AsyncIOMainLoop().install()
get_event_loop().run_until_complete(main())
```
However, this only really makes sense to fill in the gaps between "native"
trollius libraries. Since there are hardly any of those, I don't see any
reason for anyone to use this mode (and I'm not aware of anyone using
Tornado's support for trollius).
> In short, very few libraries support trollius, and I don't think that
> it's going to change.
>
I agree with this and think it makes sense to end support for trollius.
-Ben