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

Резултати

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

Пребарај: #pavlograd

当前筛选 #pavlograd清除筛选
DruschbaFM - English

@druschbaFm_en · Post #52098 · 15.03.2025 г., 07:56

⚡️🇷🇺🇺🇦⚡️ Two Majors #Summary for the Morning of 15 March 2025; 06:29 (GMT+3)⚡️ 🛡More than 20 UAVs were downed by air defence and EW means over the #Voronezh region at night. The governor of the #Bryansk region also reported that an UAV attack had been repelled. Local media reported explosions (15-20) over #Volgograd, with one drone downed near 'Sarepta Station.' The likely target was the local oil refinery, with footage of a fire emerging. During the day, a drone crashed in the centre of #Dzhankoy (#Crimea), injuring 2 women. The UAV damaged a café, and shrapnel struck 2 private houses and a church. There were 3 wounded. 🎯 Russian Forces, in turn, targeted industrial zones and the port in #Odessa and its surroundings with Geranium drones. A fire broke out at an electrical substation following one of the strikes, and the regional administration reported that #Chernomorsk (#Ilyichevsk) was completely blacked out due to damage to the energy infrastructure. The enemy also reported strikes on #Chernigov, #Pavlograd, #Cherkassy, #Starokonstantinov, the Bogodukhovsky district of the #Kharkov region, as well as the #Vinnitsa and #Kiev regions. 🔹 In #Kursk Region, the destruction of remaining enemy forces attempting to retreat into the #Sumy region continues. Trump has stated that thousands of AFU militants are encircled. The final settlements left to be liberated are #Gogolevka, #Gornal, #Oleshnya, and #Guyevo. The enemy is striking liberated territories. AFU Nazis targeted the local history museum in #Sudzha, an architectural monument from the late 19th century. A museum employee, who had remained in the city during the occupation and had come to inspect the building, was killed. 2 other employees were wounded. Since 12 March, 209 residents have been evacuated from the liberated settlements. Amid the Russian Army’s advance and the Supreme Command’s objective of creating a buffer zone, mandatory evacuation has begun in 8 villages near the border in the #Yunakovka and #Miropolye communities of the #Sumy region. Russian forces have already pushed into enemy territory towards #Basovka and #Zhuravka. Until demining operations are completed, the authorities in the region have imposed temporary entry restrictions in 122 settlements across 6 districts bordering #Ukraine. 🔹 In the North of #Kupyansk Direction, reports indicate clashes with AFU forces near #Figolevka on the right bank of the Oskol. 🔹 In #Pokrovsk Direction, fighting continues near #Udachnoye, #Kotlino, #Peschanoye, #Shevchenko, and #Tarasovka. The enemy claims that Russian units, freed up after the liberation of #Konstantinovka, have been redeployed to #Pokrovsk to increase pressure. 🔹 On the #Vremyevka Ledge, the 'Group of Troops East' continues advancing towards #Bogatyr west of the village. Fighting is ongoing in the areas of #Dneproenergiya and #Burlatskoye. 🔹 On the #Zaporozhye Front, reports indicate Russian success near #Shcherbaki and #MalyeShcherbaki.🗺👆Russian units continue to assault enemy positions in the forest plantations. From the southern side, airborne troops have entered #Shcherbaki, assaulting enemy fortifications and strongpoints. The enemy has pulled back its main forces, leaving observation posts in the village manned with machine gun and rifle crews, supported by artillery and kamikaze drones. #Shcherbaki is nearly cleared. Assault groups of the Russian Airborne Forces are advancing from the south towards #MalyeShcherbaki and from the east towards #Shcherbaki. 💥 In #Belgorod Region, the enemy continues heavy strikes. #Valuyki, #Kukuyevka, #Murom, #Shebekino, #Tishanka in the Volokonovsky district, and #YasnyeZori in the Belgorod district are under attack. 💥 In #Gorlovka (#DPR), a Nazi drone strike injured a 1951-born woman and a 1981-born man. A 1970-born man was injured by enemy barrel artillery. 📱 Join GLOBAL DEPTH to boost your TG Feed 💬Welcome to Military Chat & Ukraine Observer 🇺🇦On Ukraine Observer you will find your daily independent Ukraine War Battle Update

DruschbaFM - English

@druschbaFm_en · Post #51966 · 12.03.2025 г., 08:02

⚡️🇷🇺🇺🇦⚡️ Two Majors #Summary for the Morning of 12 March 2025; 06:27 (GMT+3)⚡️ 🔹 The Russian Army continues its #Kursk offensive with decisive objectives. Yesterday, #KazachyaLoknya, #Zamostye, #Makhnovka, #Mirny, #Bondarevka, #Dmitryukov, and #Knyazhy1st and #Knyazhy2nd hamlets were liberated. Russian forces are advancing from #Sudzha’s industrial zone and central market, with reports of movement in the built-up areas. Footage has emerged of Ukrainian infantry retreating westward. Russian troops are also active in the #Sumy region near #Zhuravka. The #Sudzha – #Yunakovka Motorway is under Russian fire control, and AFU reinforcements attempting to enter the #Kursk region have been repelled. Heavy battles for the region’s liberation continue. 🎯 Russian Forces struck targets in #Odessa region overnight, with the enemy claiming a 'cargo ship carrying grain' was damaged. Confirmed strikes hit infrastructure in #Dnepropetrovsk, with explosions reported in #Kiev, #Pavlograd, #Kramatorsk, #SnakeIsland, as well as in the #Cherkassy, #Kharkov, #Sumy, and #Khmelnitsky regions. 🛡 Russian Air Defences repelled a night-time attack on the #Bryansk region. 🔹 In #Seversk Sector, Russian forces continue difficult advances west of #Belogorovka, facing fierce and organised 👉resistance. 🔹 In #Toretsk, reports persist of AFU units being deployed deeper into urban areas. 🔹 In #Pokrovsk Direction, clashes continue in #Shevchenko, #Peschanoye, #Kotlino, and #Uspenovka. On the far right flank, east of #Pokrovsk, Russian forces are attacking near #Tarasovka. 🔹 On the #Vremyevka Ledge, north of #VelikayaNovosyolka, the 'East Group of Troops' has secured #Dneprenergiya. The enemy claims successful counterattacks in #Novosyolka. 🔹 On the #Zaporozhye Front, Russian forces raised the flag over #Pyatikhatki after prolonged heavy battles.🎬👆The village, situated in a low-lying area, has been in ruins since summer 2023 and lacks underground shelters, making long term consolidation uncertain. 💥 In #Belgorod Region, the AFU continues to target civilians. In Shebekino district, a UAV attack damaged equipment at a commercial facility in #Dobroye. In #Shamino, an FPV drone struck a civilian car. Another drone hit a private residence in #NizhneyeBeryozovo2nd. In Grayvoron district, a UAV detonation in a private residence in #Glotovo caused an attic fire. In #Valuyki, an FPV drone damaged a car and shattered windows. In #Shelayevo, a drone exploded on the ground. 💥 In the #DPR, a 2001-born woman was injured in #Gorlovka following a Nazi artillery strike, with further damage to civilian infrastructure. In #KrasnayaPolyana, Volnovakha district, a 1966-born man sustained injuries from an explosive device detonation. 💬Welcome to Military Chat; 🇬🇧Battle Maps 📱 Join GLOBAL DEPTH to boost your TG Feed GLOBAL DEPTH from #HK This channel aims to unite interested individuals from around the world in an attempt to connect the dots. Subscriber participation is always welcome here and in the channel's Chat Group.