import asyncio: Learn Python's AsyncIO #5 - Batteries Included
HTML-код
- Опубликовано: 13 сен 2024
- This series of videos introduces AsyncIO to Python programmers who haven't used it yet. Like the Song of Ice and Fire, we're at five released instalments. Yes, we plan to have more but until the author delivers, let's not get ahead of ourselves!
This time around we cover:
- async context managers and "async with";
- async iterators and "async for";
- async generators and why they are the best;
- making network connections;
- serving network requests;
- task coordination with queues;
- synchronisation primitives: locks, events, semaphores, and conditions.
Hands down, probably the best resource to learn Python async programming.
When is the next video?, they are super helpful
waiting for next video thank you for the videos
Thank you! Can't wait for the next one
Thanks! Looking forward to the next ones
excellent content, few people have explored and explained python asyncIo so concisely and thoroughly
Yay another episode. I am loving this series.
To print out hex values, you could do this:
*print(f"{ch:0>2X}", end="", flush=True)*
Also, why don't you need to call *writer.drain* in the latency example?
Anyway, great video series, you explain stuff very clearly, and I learned a lot. Thank you very much.
Same question.
A little late, but drain() just forces it. You can skip the drain in any of the examples (worth trying for yourself) and it will work most of the time. You get a similar situation when writing to disk.
Great series, thanks!
In reading about asyncio, the possibly easier to use or easier to ensure correct trio framework often comes up. It seems that in the past there was some interest in having asyncio act more like trio, but it doesn't seem to have happened. Can anyone comment about that status, or might you have any interest in doing a bonus video to discuss?
that's the best asyncio series
Good stuff. Waiting for more. Thanks Łukasz!
this is so good! i have been waiting for the next video for 6 months. when will you come back :(
nice polyend tracker in the background
Aaron Paul is amazing in this series
Love this, def going to try EdgeDB, I can't wait to see the example app!
Using the async code from blocking code is missing from this great series.
Best of the best!
you are amazing!!!, where can i find the content repository?
This is fantastic. And why is the library code so much cleaner than mine?
Nice series! I try to replicate your last version of the chat_client.py. When I type "quit" it stops the execution but it does not stop the program. I have to type or to make the chat_client.py completely stop. So, how did you achieve that? In my version it seems that the copy_handler still hangs on sys.stdin. Help would be greatly appreciated!
Very well.done.
Thanks!
Please, make more of these
This code was very impressive and explained lot to me, i will be revisiting it tomorrow as well
00:00 Введение
02:02
hello, are you going to follow the series?
Nice video as always, just a silly question, why use Starlette in the next episode and not Fastapi? Cause Fastapi is more user friendly for beginners and it's also based on Starlette.
When's the next part??
Hi guys, should we wait for part 6?
Could you explain the edgedb syntax? It doesn't seem like any SQL that I know of.
That's because it's EdgeQL, not SQL :-) Yury gave a talk last year at PyBay with good examples contrasting EdgeQL with SQL (ruclips.net/video/CmXB5xqEENs/видео.html). There is an interactive (beta) tutorial on EdgeQL (tutorial.edgedb.com/) a cheatsheet (edgedb.com/docs/cheatsheet/select)
@@ElvisPranskevichus Thank you for your reply. I'm considering which database for my stock trading data. How would you compare EdgeDB vs other popular database (SQL, Mongodb, etc) when it come to finanical and trading data that are used for algo trading?
noice
todo.add(asyncio.create_task(write(writer, message))) Looks like huge memory leak. This tasks will be never deleted.