Стандартная библиотека asyncio это стандарт (начиная с Py3.4) для работы с асинхронным кодом. Но эта библиотека достаточно низкоуровневая, со своими проблемами, устаревшими подходами.
Чтобы исправить это, были созданы разные обертки и альтернативы с реализацией популярных инструментов и паттернов асинхронного программирования. Это такие библиотеки как:
- trio: улучшает корректность выполнения, не оставляя потерянных корутин при ошибках, то есть предлагает Structured Concurrency из коробки.
- curio: упрощение синтаксиса и читаемости кода, больше похоже на работу с потоками.
- anyio: универсальная обертка над asyncio или trio плюс множество вспомогательных инструментов.
anyio используется в FastAPI как основная библиотека для работы с асинхронным кодом и вызовом синхронного кода из асинхронного.
В общем, рекомендую почитать про возможности anyio, возможно вы более не будете использовать чистый asyncio в своих проектах)
Это совсем не значит что дефолтный asyncio плох, он тоже даёт достаточный для работы функционал и продолжает развиваться. Например, в версии 3.11 появились TaskGroup, с похожим на trio функционалом. Так что он тоже актуален, просто придется больше написать кода самостоятельно.
#libs#async
#Sudan province governor accuses #Ethiopia of backing RSF offensive near border
A Sudanese governor aligned with the country’s military has accused Ethiopia of supporting a recent offensive by the Rapid Support Forces (#RSF) and allied fighters near the Sudan–Ethiopia border, according to a report by AFP.
Abdelatty al-Faki, governor of #Kurmuk province in Sudan’s Blue Nile state, claimed that forces behind the attack on the strategic town of Kurmuk “set out from inside Ethiopian territory and are supported by Ethiopia,” describing the situation as an “invasion.”
Read more: https://addisstandard.com/?p=56074
#Sudan’s Blue Nile displacement reaches 73,000 after #Kurmuk attack
Activists said on Thursday that approximately 73,000 people have fled Al-Kurmuk in Sudan’s Blue Nile region following attacks by the Rapid Support Forces (#RSF).
The RSF and the Sudan People’s Liberation Movement-North (#SPLM-N) led by Abdelaziz al-Hilu seized the border town on March 24. The offensive has sparked accusations that Ethiopia facilitated the attack from its territory.
The Blue Nile Humanitarian Emergency Room stated that according to data from the United Nations Office for the Coordination of Humanitarian Affairs (OCHA), 73,406 displaced people have arrived in Ed Damazin and surrounding areas.
Most of those fleeing the violence are women and children. The group described the humanitarian situation as extremely harsh, reflecting a deep tragedy for the local population.
Displaced families are reportedly facing a fragile reality characterized by acute shortages of food and clean.......
https://sudantribune.com/article/312121
#Drone strike at #Sudan's border with #Ethiopia kills one: authorities
A drone attack blamed on paramilitary forces killed one person Thursday in the Sudanese town of Kurmuk, on the border with Ethiopia, authorities said.
"One person was killed, eight injured and 16 houses destroyed," a government source told #AFP by phone from #Kurmuk, a border town controlled by the army in Sudan's Blue Nile state.
In a statement, Kurmuk governor Abdelaty Mohamed al-Fiky blamed the strike on the paramilitary Rapid Support Forces (#RSF), at war with the army since April 2023, and their allies, a faction of the Sudan People's Liberation Movement-N orth (SPLM-N). Blue Nile state is the latest front in nearly three years of devastating war, now being fought mainly with deadly drone strikes. The fighting has left tens of thousands dead and around 11 million displaced, creating the world's largest hunger and displacement crises.
https://www.facebook.com/share/18JNprLucH/
#Sudanese army evacuates hundreds as drone strikes intensify near #Ethiopian border
Sudanese army trucks evacuated hundreds of civilians from the strategic border town of #Kurmuk on Saturday, as an escalation in drone strikes by paramilitary and rebel forces opened a volatile new front in the country’s internal conflict.
The displaced residents arrived in #Ed_Damazin, the capital of the #Blue_Nile region in Sudan’s far southeast, following two days of intensified aerial bombardment.
Local officials reported that a combined force of the Rapid Support Forces (#RSF) and the Sudan People’s Liberation Movement-North (#SPLM-N), led by Joseph Touka, has been targeting residential neighbourhoods and infrastructure.
“The attacks forced citizens to flee toward Ed Damazin once again,” said Kurmuk Commissioner Abdel Ati al-Faki. He noted that approximately 80 families, totalling some 300 people, reached the capital on Saturday, joining nearly 1,900 others who have arrived...
https://sudantribune.com/article/311214
News: RSF claims capture of #Kurmuk near #Ethiopia border amid escalating tensions
#Sudan’s paramilitary Rapid Support Forces (#RSF) has claimed it captured the strategic town of Kurmuk in #Blue_Nile State following intense fighting with the Sudanese Armed Forces (#SAF), according to a report by Xinhua.
In a statement, the RSF said its forces, alongside the Sudan People’s Liberation Movement-North (#SPLM-N), had taken control of Kurmuk and surrounding areas after what it described as “fierce” battles.
Kurmuk, located near the Ethiopian border, is considered a strategic corridor linking Blue Nile and #Sinnar states and providing access to key infrastructure, including the Al-Roseires Dam.
Analysts cited by Xinhua said control of the town could shift regional dynamics and affect cross-border movements.
As previously reported by Sudan Tribune, a Sudanese government official claimed that fighters linked to the RSF and SPLM-N entered Blue Nile through......
Read more: https://addisstandard.com/?p=56050
News: #Sudanese officials accuses #Ethiopia of aiding rebel assault on Kurmuk
Sudanese authorities have accused Ethiopia of facilitating a renewed offensive by allied rebel forces on the strategic border town of #Kurmuk in #Blue_Nile state, according to a report by Sudan Tribune.
A Sudanese government official, cited by the outlet, alleged that Ethiopia “sponsored” the assault by allowing fighters linked to the Rapid Support Forces (#RSF) and the Sudan People’s Liberation Movement-North (#SPLM-N) to operate through its territory.
The source claimed combat vehicles moved from #Assosa in Ethiopia toward border areas before launching the attack.
Fighting has intensified around Kurmuk, with clashes reported across multiple fronts.
The accusations come amid earlier claims reported by Reuters in February that Ethiopia is hosting a training camp for RSF-linked fighters in the #Benishangul-Gumuz region near the Sudan border.
Sudanese officials have.......
Read more: https://addisstandard.com/?p=56021
News: #Sudanese official alleges #Ethiopia facilitated RSF, SPLM-N attacks in Blue Nile
Ethiopia has been accused of facilitating the movement of attacking forces into Sudan’s #Blue_Nile region, according to a report by Sudan Tribune.
The Rapid Support Forces (#RSF) and the Sudan People’s Liberation Movement-North (#SPLM-N) reportedly launched coordinated attacks on multiple army positions on Tuesday, seizing the strategic town of #Deim Mansour in #Kurmuk County.
Video and social media posts from the SPLM-N claim that combat vehicles, tanks, and drones were captured during the assault.
A high-ranking Sudanese government official told Sudan Tribune that the RSF and SPLM-N forces entered Sudan from Ethiopian territory, specifically from the #Benishangul-Gumuz region,...
According to a report by AFP on Wednesday, Sudan’s paramilitary forces have advanced toward army positions near the country’s southeastern border with Ethiopia. The advance was reported....
Read more: https://addisstandard.com/?p=54985
News: #UN warns escalating hostilities along #Sudan’s borders, including with #Ethiopia, threaten civilians and disrupt aid operations
Escalating hostilities along Sudan’s borders, including with Ethiopia, are endangering civilians and disrupting humanitarian operations, the United Nations has warned.
According to a report by Xinhua, citing the UN Office for the Coordination of Humanitarian Affairs (#OCHA), recent clashes near Sudan’s frontiers with Ethiopia and #Chad have resulted in civilian casualties and forced displacement.
In #Blue_Nile State, violence near the Ethiopian border has restricted access to key regions including #Kurmuk, #Sali, and #Dindraw, south of the state capital, #Ed_Damazine. Civilians have reportedly fled toward Ed Damazine and across the border into Ethiopia in search of safety.
Sudanese officials have accused Ethiopia of facilitating operations by the paramilitary Rapid Support Forces (#RSF) and allied groups—an allegation.......
Read more: https://addisstandard.com/?p=56160