Demystifying Python's Async and Await Keywords

  Рет қаралды 97,993

JetBrains

JetBrains

Күн бұрын

Python's async and parallel programming support is highly underrated. In this webinar, we introduce the entire spectrum of Python's parallel APIs. Then we focus in on the most promising, most useful, and modern feature of Python's async capabilities: the async and await keywords.
Repo used in this webinar: github.com/mikeckennedy/async...
During the webinar, we build a small application that interacts with web APIs using async and await. We close it out by covering a library and technique that allows us to join Python's disparate parallel APIs into one super API that is easier to work with.
About the Presenter:
Michael Kennedy is the host of Python Bytes and Talk Python to Me. He is also the founder of Talk Python training and a Python Software Foundation fellow. Michael has been working in the developer field for more than 20 years and has spoken at numerous conferences.

Пікірлер: 71
@fredrikjonsen6222
@fredrikjonsen6222 3 жыл бұрын
10:09 for anyone who already knows the general concept of async and multiprocessing and just wants to watch the Python part
5 жыл бұрын
Thanks Michael, great tutorial. And your PyCharm skills are 10/10. Also your podcast!
@mikeckennedy
@mikeckennedy 5 жыл бұрын
Hi Laurentiu, thanks so much! :)
@maverickv3517
@maverickv3517 3 жыл бұрын
Thank you! I'm blown away by this webcast. Great work. Great examples and explanations. I will definitely check out your podcasts.
@JetBrainsTV
@JetBrainsTV 3 жыл бұрын
Glad it was helpful!
@rakshithkumarl1089
@rakshithkumarl1089 4 жыл бұрын
Great! Not just an 'hello world' intro but much more than that. Would definitely recommend for someone who is looking to implement asyncio in real-world application. Thanks!!
@gregorvonbergen
@gregorvonbergen 5 жыл бұрын
Thanks. Well done intro. Will definitely download your async training course!
@anikaitmakkar989
@anikaitmakkar989 4 жыл бұрын
Where can we find the course?
@piby1802
@piby1802 5 жыл бұрын
Thank you so much Michael!
@AerroReyna
@AerroReyna 3 жыл бұрын
Best video I founded on KZfaq about this topic, I find asyn attempts on python rather weird, coming from Javascript. But this really help me. Thank you
@omfchg
@omfchg 3 жыл бұрын
This is great tutorial! It really helped me to understand asyncio better. I would like to have some kind of example for protocols and transporting data (as this is the use case I would like to use asyncio for), so I would be greatful if you could add some additional video or share some other training materials in the topic.
@utsavdahiya3729
@utsavdahiya3729 4 жыл бұрын
Really great tutorial! Learnt about unsync!!
@harshavardhan9991
@harshavardhan9991 4 жыл бұрын
Thank You Michael !! You are awesome
@PaulHrimiuc
@PaulHrimiuc Жыл бұрын
Great stuff inside! For anyone who wants to learn about how async works in python this is the best starting point!
@jewpcabra666
@jewpcabra666 3 жыл бұрын
This was a wonderful tutorial - just found this and will most likely be checking out all your content at talk python! Thanks so much for this!
@JetBrainsTV
@JetBrainsTV 3 жыл бұрын
Awesome, thank you!
@Vijay-Yarramsetty
@Vijay-Yarramsetty 3 жыл бұрын
great and in-depth with good examples. Thank you.
@JetBrainsTV
@JetBrainsTV 3 жыл бұрын
You're very welcome!
@cschandragiri
@cschandragiri 4 жыл бұрын
Thanks! Coming in from java, can relate to some stuff. Loved unsync
@uoyebuttnuocca
@uoyebuttnuocca 4 жыл бұрын
Really well explained. Thank you.
@JetBrainsTV
@JetBrainsTV 4 жыл бұрын
Glad it was helpful!
@df6148
@df6148 Жыл бұрын
Thanks for the great video! I’m a big fan of your podcast content. I’m looking to use asyncio as a way of testing for my discord bot using pytest-asyncio so that my bot can stay running during testing while running some of its functions. I don’t want it to shut down or get hung up on a single function but would rather it run concurrently (a new term I learned 😁) so that I can attempt to test lets say maybe 4 or 5 functions all at the same time while the bot is “live”. That’s my use case so that I can push out more features without having to turn the bot on and off for each and every feature. I just want the bot to stay ON and run tests.
@cryptojeff3993
@cryptojeff3993 3 жыл бұрын
What is the difference between asynio.gather(task1, task2, task3) and loop.create_task?
@esmanlitebriz
@esmanlitebriz 4 жыл бұрын
It was best source about this context that i get.
@bansonedo7417
@bansonedo7417 3 жыл бұрын
this is great help to understand asyncio.
@arturomuller4816
@arturomuller4816 4 жыл бұрын
Great Tutorial!
@pedrocorreia5857
@pedrocorreia5857 Жыл бұрын
Incredible, thank you 👍👍👍
@AndJusTIceForRob
@AndJusTIceForRob 4 жыл бұрын
I have never seen an arrow character in python code or in any coding language for that matter. Can you explain how you even got it to show up in the text as well as what function it is performing here?
@bart9522
@bart9522 3 жыл бұрын
It's ->, a return type annotation. See mypy and PEP 484.
@Saitama-ur3lq
@Saitama-ur3lq 4 жыл бұрын
aiopg vs asyncpg? which one do you think is good?
@kshitijkarthick6449
@kshitijkarthick6449 Жыл бұрын
Great talk! Thanks a lot.
@rogueriver
@rogueriver 3 жыл бұрын
So Good, Thanks!
@borkarfaiz
@borkarfaiz 4 жыл бұрын
learned about typing thanks...
@rpiitkgpian
@rpiitkgpian 4 жыл бұрын
Very nice intro to python-async. One question, is unsync production ready or is it more experimental ?
@mikeckennedy
@mikeckennedy 4 жыл бұрын
Hi, I think unsync is production ready. If you look at what it does, it's just a wrapper / cleanup on top of asyncio's event loops. Seems solid enough.
@norcal6181
@norcal6181 3 жыл бұрын
I recognize that voice.... Talk Python to Me!!! Yay!
@mikeckennedy
@mikeckennedy Жыл бұрын
Thanks man. :)
@santoshgokul3053
@santoshgokul3053 3 жыл бұрын
Very informative
@BabyBalla3score
@BabyBalla3score 5 жыл бұрын
Great intro. Maybe I can use this and go back to py instead of node now
@mikeckennedy
@mikeckennedy 4 жыл бұрын
Yes! :)
@eldarmammadov7872
@eldarmammadov7872 Жыл бұрын
a liitle bit difficult to comprehend on async aiohttp session(), due using two context managers but overall put everything in plain text. Learnt much than any other resources about asyncio
@smiley2827
@smiley2827 Жыл бұрын
It was really nice, but why we skipped Try/Except part?
@zhenghaohuang1533
@zhenghaohuang1533 2 жыл бұрын
This was just brilliant! Thank you @mkennedy!
@karen-7057
@karen-7057 3 жыл бұрын
58:41 unsync to speed up requests
@shreepads
@shreepads 3 жыл бұрын
Realised it was a very familiar voice almost 10 mins in! Shouldn't 'multiprocessing' come under 'Do more at once' rather than 'Do things faster'?
@williantuness
@williantuness 5 жыл бұрын
Really good workshop! Thank you! #Python #Asyncio
@mikeckennedy
@mikeckennedy 5 жыл бұрын
You're welcome Willian.
@Bishonen88
@Bishonen88 5 жыл бұрын
Great tutorial! Perhaps multithreading/-processing would make a good idea for a future one :)
@mikeckennedy
@mikeckennedy 5 жыл бұрын
Thanks, and that's a good idea.
@nopens
@nopens 3 жыл бұрын
Unsync is pure magic.
@user-ey1pi6md8k
@user-ey1pi6md8k 2 жыл бұрын
really good tutorial!
@jacobsamson834
@jacobsamson834 3 жыл бұрын
thank u👏
@kithenry
@kithenry 2 жыл бұрын
At last i understand this topic
@renancatan
@renancatan Жыл бұрын
this is still up to date?
@undisclosedmusic4969
@undisclosedmusic4969 4 жыл бұрын
I love the redesign of macos on your macbook pro with 6 cores, looks just like windows!
@doaltplusf4448
@doaltplusf4448 4 жыл бұрын
You can install Windows 10 super easily on MacBooks, its honestly very surprising.
@utsavdahiya3729
@utsavdahiya3729 4 жыл бұрын
♥️♥️♥️
@nccamsc
@nccamsc Жыл бұрын
You are mixing in terms like parallel and serial into the discussion about concurrent/asynchronous. That's confusing, because parallel is not the same as concurrent.
@TheOPtmal
@TheOPtmal 4 жыл бұрын
I used VS Code to follow along.
@ilyam1425
@ilyam1425 5 жыл бұрын
its not programming, its collective farm.
@jonasbernard
@jonasbernard 3 жыл бұрын
Never saw a KZfaq video title with so many Y's in it...
@JetBrainsTV
@JetBrainsTV 3 жыл бұрын
Didn't notice but thanks for the laugh. ;)
@Spiritusp
@Spiritusp 5 жыл бұрын
Stop answering questions!!! Just talk.
@tourdesource
@tourdesource 2 жыл бұрын
Wow, that's 50 times easier to do in Javascript. Just saying.
@HitBoxMaster
@HitBoxMaster Жыл бұрын
Not really well explained at all
@AndreCarneiro666
@AndreCarneiro666 4 ай бұрын
Anync programing is not parallel!
@nixon36dbd
@nixon36dbd 5 жыл бұрын
too much of "idk" and "maybe" for an expert in async programming also this "try except" failure... i think its just an anti ad for his courses overall it looks like that somebody didnt practice the topic enough so still waiting for a little better explanation than "async is good for io and you grab loop and you know, launch tasks" just another tutorial that scratches the surface, there are tons of that in the internet p.s. sorry, but it just so frustrating
@piby1802
@piby1802 5 жыл бұрын
What do you need to learn more besides that? And why? Especially when he introduced unsync. Sorry but that's all you need to know unless you need to do something bizarre
@mikeckennedy
@mikeckennedy 4 жыл бұрын
@@piby1802 Thanks Piby. ;)
@MR-jj5dn
@MR-jj5dn 4 жыл бұрын
Dima Bogdanov, can you provide a link to a video that explains it better? Or perhaps you've made one of you own?
Шокирующая Речь Выпускника 😳📽️@CarrolltonTexas
00:43
Глеб Рандалайнен
Рет қаралды 11 МЛН
Они убрались очень быстро!
00:40
Аришнев
Рет қаралды 2,9 МЛН
Balloon Stepping Challenge: Barry Policeman Vs  Herobrine and His Friends
00:28
Updated Ep. 14 Empowering MVNO Growth with Ewa Campbell
28:22
The Boon of Wireless
Рет қаралды 91
Python Asynchronous Programming - AsyncIO & Async/Await
25:57
Tech With Tim
Рет қаралды 414 М.
Async for loops in Python
16:36
mCoding
Рет қаралды 57 М.
"What can't WebAssembly do?" - Katie Bell (PyCon AU 2023)
29:03
Next-Level Concurrent Programming In Python With Asyncio
19:19
ArjanCodes
Рет қаралды 164 М.
Understanding Python: Asyncio
19:43
Jake Callahan
Рет қаралды 2,3 М.
🚀  TDD, Where Did It All Go Wrong (Ian Cooper)
1:03:55
DevTernity Conference
Рет қаралды 549 М.
Lynn Root - Advanced asyncio: Solving Real-world Production Problems
40:02
EuroPython Conference
Рет қаралды 14 М.
Cadiz smart lock official account unlocks the aesthetics of returning home
0:30
Мечта Каждого Геймера
0:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 1,1 МЛН