✔️ توضیح قابلیت Async در جنگو ۳ و تفاوت آن با چنلز
وقتی که جنگو نسخه ۳ منتشر شد خیلی هامون فکر میکردیم قابلیت وبسوکت بهش اضافه شده اما متاسفانه یا خوشبختانه این اتفاق نیافتده و قابلیتی که اضافه شده درواقع بستری برای توسعه وبسوکت و رویدادهای Async هست. البته قابلیتهای بیشتری هم با این بستر به جنگو اومده که توی این قسمت باهم یاد میگیریم.
🌐 https://youtu.be/TBbXFD5ENz0
#python #django #channels #websocket #asynchronous #asgi
〰️〰️〰️〰️〰️〰️
© @DjangoEx
وقتی که جنگو نسخه ۳ منتشر شد خیلی هامون فکر میکردیم قابلیت وبسوکت بهش اضافه شده اما متاسفانه یا خوشبختانه این اتفاق نیافتده و قابلیتی که اضافه شده درواقع بستری برای توسعه وبسوکت و رویدادهای Async هست. البته قابلیتهای بیشتری هم با این بستر به جنگو اومده که توی این قسمت باهم یاد میگیریم.
🌐 https://youtu.be/TBbXFD5ENz0
#python #django #channels #websocket #asynchronous #asgi
〰️〰️〰️〰️〰️〰️
© @DjangoEx
✔️ Asynchronous vs Multithreading and Multiprocessing (The Main Difference)
🌐 https://youtu.be/0vFgKr5bjWI
#asynchronous #multithreading #multiprocessing
〰️〰️〰️〰️〰️〰️
© @DjangoEx
🌐 https://youtu.be/0vFgKr5bjWI
#asynchronous #multithreading #multiprocessing
〰️〰️〰️〰️〰️〰️
© @DjangoEx
#python #async #asyncio #perfomance #asynchronous
asynchronously create and manage subprocesses in python, from spawning to streaming
This document describes high-level async/await asyncio APIs to create and manage subprocesses.
https://docs.python.org/3/library/asyncio-subprocess.html
Streaming subprocess stdin and stdout with asyncio in Python
https://kevinmccarthy.org/2016/07/25/streaming-subprocess-stdin-and-stdout-with-asyncio-in-python/
〰️〰️〰️〰️〰️
©️ @DjangoEx
asynchronously create and manage subprocesses in python, from spawning to streaming
stdin
, stdout
and etc...This document describes high-level async/await asyncio APIs to create and manage subprocesses.
https://docs.python.org/3/library/asyncio-subprocess.html
Streaming subprocess stdin and stdout with asyncio in Python
https://kevinmccarthy.org/2016/07/25/streaming-subprocess-stdin-and-stdout-with-asyncio-in-python/
〰️〰️〰️〰️〰️
©️ @DjangoEx
pyee
supplies a EventEmitter
object that is similar to the EventEmitter
class from Node.js
. It also supplies a number of subclasses with added support for async and threaded programming in python, such as async/await as seen in python 3.5+.https://github.com/jfhbrook/pyee
https://pyee.readthedocs.io/en/latest/
#python #node #eventdriven #eventdrivenprogramming #asynchronous #async #asyncio
〰️〰️〰️〰️〰️〰️
©@DjangoEx
GitHub
GitHub - jfhbrook/pyee: A rough port of Node.js's EventEmitter to Python with a few tricks of its own
A rough port of Node.js's EventEmitter to Python with a few tricks of its own - jfhbrook/pyee
✔️ قابلیت async/await که از پایتون 3.4 به بعد ارائه میشه، پرفورمنس اپلیکیشنهارو بخصوص در عملیاتی از نوع I/O مثل برنامهنویسی شبکه و کار با فایل افزایش میده. در ادامه آدرس دو تا مخزن گیتهاب شامل فهرست کتابخانههای مفید که تحت async/wait و asyncio کار میکنن اومده:
https://github.com/aio-libs
https://github.com/timofurrer/awesome-asyncio
اگر با مفهوم و کاربرد asynchronous programming آشنا نیستید خوندن کتاب
Using Asyncio in Python: Understanding Python's Asynchronous Programming Features (2020)
و تماشا/شنیدن کنفرانسهای آقای David Beazley رو پیشنهاد میکنم.
#asynchronous #asyncio #python
〰️〰️〰️〰️〰️〰️
© @DjangoEx
https://github.com/aio-libs
https://github.com/timofurrer/awesome-asyncio
اگر با مفهوم و کاربرد asynchronous programming آشنا نیستید خوندن کتاب
Using Asyncio in Python: Understanding Python's Asynchronous Programming Features (2020)
و تماشا/شنیدن کنفرانسهای آقای David Beazley رو پیشنهاد میکنم.
#asynchronous #asyncio #python
〰️〰️〰️〰️〰️〰️
© @DjangoEx