Async Techniques and Examples in Python Transcripts
Chapter: Built on asyncio
Lecture: Introducing Trio

Login or purchase this course to watch this video and the rest of the course contents.
0:00 The next extra library that we're going to
0:03 look at that builds on asyncio and makes it better
0:06 and easier and simpler is Trio.
0:08 Trio's goal is to produce a production quality, permissively
0:11 licensed async and await native io library for Python.
0:15 So it has a bunch of things for work with networks
0:20 and so on, but it also has really great support for just
0:21 coordinating anything built on top of asyncio itself.
0:25 So where Trio really shines is it tries to focus
0:28 on making coordination around asyncio simpler.
0:32 They want to make it easy to do the best right thing
0:35 with asyncio, so what's interesting is this is a framework
0:38 built entirely from the ground up that integrates
0:40 with async and await, but does not directly use asyncio.
0:45 So like asyncio.get_event_loop, that is not part of this whole
0:51 framework, it's something similar and in parallel to that
0:54 and you actually have to use a bridging library.
0:57 Something called trio-asyncio in order to actually
1:00 use things built on the asyncio event loop.
1:04 I think you'll find Trio an interesting
1:06 library that could work for certain circumstances
1:09 and types of apps you're building.