Стандартная библиотека asyncio это стандарт (начиная с Py3.4) для работы с асинхронным кодом. Но эта библиотека достаточно низкоуровневая, со своими проблемами, устаревшими подходами.
Чтобы исправить это, были созданы разные обертки и альтернативы с реализацией популярных инструментов и паттернов асинхронного программирования. Это такие библиотеки как:
- trio: улучшает корректность выполнения, не оставляя потерянных корутин при ошибках, то есть предлагает Structured Concurrency из коробки.
- curio: упрощение синтаксиса и читаемости кода, больше похоже на работу с потоками.
- anyio: универсальная обертка над asyncio или trio плюс множество вспомогательных инструментов.
anyio используется в FastAPI как основная библиотека для работы с асинхронным кодом и вызовом синхронного кода из асинхронного.
В общем, рекомендую почитать про возможности anyio, возможно вы более не будете использовать чистый asyncio в своих проектах)
Это совсем не значит что дефолтный asyncio плох, он тоже даёт достаточный для работы функционал и продолжает развиваться. Например, в версии 3.11 появились TaskGroup, с похожим на trio функционалом. Так что он тоже актуален, просто придется больше написать кода самостоятельно.
#libs#async
News: Over Birr 2.2 million seized in #Shire as authorities warn against illegal lending amid cash shortages
Authorities in Shire Endaselassie city in the Northwestern Zone of #Tigray have seized more than Birr 2.2 million allegedly used for illegal money lending, amid warnings that usury is increasingly exploiting communities affected by persistent cash shortages.
In a press statement issued on 27 January 2026, Deputy Inspector Gebre-Anenya Teklay, representing the Shire Endaselassie city police commander, said an individual was apprehended on 25 January in Kebele 04 after being caught in the act of distributing cash while charging interest rates of between three and five percent. The suspect was taken into custody along with the seized cash, he said.
Deputy Inspector Gebre-Anenya described usury as a criminal offense under the law and a practice condemned by religious and cultural....
https://www.facebook.com/AddisstandardEng/posts/pfbid02A5LPW2jGC4PugMchMnHxqydpS4jq3qgXECZFWnKqUoK3hgrzwgWMFMuHWgQ9tTe4l
News: #Ethiopian Airlines suspends flights to #Tigray airports
Ethiopian Airlines has suspended flights scheduled for today to airports in Tigray, including #Mekelle, #Axum, #Shire, and #Humera, according to information obtained by Addis Standard.
An Addis Standard reporter on the ground in Mekelle confirmed airport staff were informed to take a break for the day. However, Ethiopian Airlines’ ticket office in Mekelle continued providing services, excluding flights scheduled for today.
“The system is working. We are giving services. We sell tickets scheduled from tomorrow onwards. We reschedule flights and provide other services,” one ticket office staff member told Addis Standard. “But none of us know why flights were suspended today.”
Passengers who had booked flights for today received text messages notifying them of the cancellation. One message sent to customers read:
“Your flight ET0102 from ADD on 29 Jan 2026, at 08:10 AM has been cancelled….
Read more: https://addisstandard.com/?p=54824
News: #Ethiopian Airlines resumes flights to #Tigray after five day suspension
Ethiopian Airlines has resumed flights to Ethiopia’s northern Tigray region after a five day suspension, with the first flight departing from Addis Abeba arriving at #Mekelle#Alula Abanega International Airport at 7:50 a.m., an Addis Standard reporter in Mekelle confirmed.
The national carrier suspended flights to Tigray last Thursday, affecting airports in Mekelle, #Axum, #Shire, and #Humera, as tensions escalated in parts of the region. The suspension disrupted both passenger travel and cargo services, further constraining transportation links between Tigray and the rest of the country.
An officer at the Ethiopian Airlines ticket office in Mekelle confirmed to Addis Standard on Monday that flights had resumed. Speaking on condition of anonymity, the official said services were expected to restart early...
https://web.facebook.com/AddisstandardEng/posts/pfbid034oz7ko4wv6Pk4Uv3HhL6JZccVHUMcLUEZ7KLDT9LkHpPfDajkgvRPT5dxsXqoMRVl
News: Flights to #Tigray remain suspended, affecting even Interim Administration president’s scheduled Addis visit
The continued suspension of #Ethiopian Airlines flights to Tigray has disrupted official travel, with Tigray Interim Administration President Tadesse Worede confirming that his planned visit to #Addis_Abeba did not take place due to the flight cancellations.
Asked by Addis Standard whether his visit was hindered by the suspension of flights, President Tadesse responded, “Yes.”
Flights to airports in Tigray, including #Mekelle, #Axum, #Shire, and #Humera, remained suspended on Friday, with Ethiopian Airlines yet to provide an official explanation for the disruption.
An Addis Standard reporter on the ground confirmed airline ticket office, however, remained open...
Meanwhile, road transportation in parts of Southern Tigray has also been disrupted. Transport movement along the #Woldiya–#Kobo–#Alamata corridor remains limited, while displacement
Read more: https://addisstandard.com/?p=54856
News: Federal police charge suspected trafficking kingpin linked to deaths, abuse of migrants
Addis Abeba —#Ethiopian Federal Police said it has referred to prosecutors the case of human trafficking kingpin #Yitbarek_Dawit (Kibrom) and nine accomplices, accused of orchestrating a cross-border network that trafficked more than 3,000 people and was linked to over 100 deaths and the rape of more than 50 women.
In a statement, police said the suspect, described as an internationally wanted fugitive, was arrested in #Shire town in the #Tigray region following a coordinated operation conducted with the Regional Operational Centre in support of the #Khartoum Process. Authorities said the investigation involved extensive intelligence-sharing across multiple countries.
Police said the suspect used multiple identities to evade capture, including names such as #Yitbarek Dawit Alemu, #Paulos Dawit Wolday, and aliases including #Adhanom, #Ahmed, #Munir, and
Read more: https://web.facebook.com/share/p/1Arn3MFntC/