TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #424 · 13 апр.

Стандартная библиотека asyncio это стандарт (начиная с Py3.4) для работы с асинхронным кодом. Но эта библиотека достаточно низкоуровневая, со своими проблемами, устаревшими подходами. Чтобы исправить это, были созданы разные обертки и альтернативы с реализацией популярных инструментов и паттернов асинхронного программирования. Это такие библиотеки как: - trio: улучшает корректность выполнения, не оставляя потерянных корутин при ошибках, то есть предлагает Structured Concurrency из коробки. - curio: упрощение синтаксиса и читаемости кода, больше похоже на работу с потоками. - anyio: универсальная обертка над asyncio или trio плюс множество вспомогательных инструментов. anyio используется в FastAPI как основная библиотека для работы с асинхронным кодом и вызовом синхронного кода из асинхронного. В общем, рекомендую почитать про возможности anyio, возможно вы более не будете использовать чистый asyncio в своих проектах) Это совсем не значит что дефолтный asyncio плох, он тоже даёт достаточный для работы функционал и продолжает развиваться. Например, в версии 3.11 появились TaskGroup, с похожим на trio функционалом. Так что он тоже актуален, просто придется больше написать кода самостоятельно. #libs#async

Hashtags

Резултати

Пронајдени 1 слични објави

Пребарај: #manifa

当前筛选 #manifa清除筛选
Crypto M - Crypto News

@CryptoM · Post #64791 · 10.04.2026 г., 00:05

🚀 Saudi Energy Infrastructure Attacks Impact Oil Production and Exports Recent attacks on Saudi Arabia's energy infrastructure have significantly disrupted the country's oil production and export systems. According to BlockBeats, sources from the Saudi National News Agency and the Ministry of Energy revealed that the Khurais and Manifa oil fields were targeted, resulting in a daily production decrease of approximately 300,000 barrels each. Additionally, a critical pumping station on the East-West pipeline was damaged, reducing daily oil transport by about 700,000 barrels. The refining sector has also been affected, with major facilities such as the Jubail Satorp Refinery, Ras Tanura Refinery, Yanbu Samref Refinery, and Riyadh Refinery experiencing disruptions. This has directly impacted the export capacity of refined products to the global market. Furthermore, a fire at the Juaymah processing facility has disrupted the export of liquefied petroleum gas (LPG) and liquefied natural gas (LNG). The Saudi Ministry of Energy confirmed that the attacks resulted in the death of an industrial security officer and forced the suspension of operations at some energy facilities. #SaudiEnergy#OilProduction#SaudiArabia#EnergyInfrastructure#OilExports#Khurais#Manifa#EastWestPipeline#RefiningSector#LPG#LNG#JuaymahFacility#EnergyAttacks