Стандартная библиотека asyncio это стандарт (начиная с Py3.4) для работы с асинхронным кодом. Но эта библиотека достаточно низкоуровневая, со своими проблемами, устаревшими подходами.
Чтобы исправить это, были созданы разные обертки и альтернативы с реализацией популярных инструментов и паттернов асинхронного программирования. Это такие библиотеки как:
- trio: улучшает корректность выполнения, не оставляя потерянных корутин при ошибках, то есть предлагает Structured Concurrency из коробки.
- curio: упрощение синтаксиса и читаемости кода, больше похоже на работу с потоками.
- anyio: универсальная обертка над asyncio или trio плюс множество вспомогательных инструментов.
anyio используется в FastAPI как основная библиотека для работы с асинхронным кодом и вызовом синхронного кода из асинхронного.
В общем, рекомендую почитать про возможности anyio, возможно вы более не будете использовать чистый asyncio в своих проектах)
Это совсем не значит что дефолтный asyncio плох, он тоже даёт достаточный для работы функционал и продолжает развиваться. Например, в версии 3.11 появились TaskGroup, с похожим на trio функционалом. Так что он тоже актуален, просто придется больше написать кода самостоятельно.
#libs#async
In_Pictures: #Epiphany celebrations across #Ethiopia
Epiphany (Timket) celebrations are taking place across Ethiopia, as followers of the Ethiopian Orthodox Tewahedo Church mark the festival in accordance with long-standing religious traditions.
Observances began on the eve of the Katara ceremony yesterday, with clergy and congregants participating in the commemoration.
Photo: Social media
Epiphany (Timket) Celebrated Across Ethiopia. Read more.
https://borkena.com/2026/01/19/ethiopia-epiphany-timket-celebrated-across-ethiopia/#Ethiopia#News#Epiphany#OrthodoxChurch
January 6 is Epiphany or Theophany. Wise Men, or magi, visited baby Jesus with gifts: gold, frankincense, and myrrh. The Bible doesn’t say how many magi came or their names; tradition says three: Melchior, Caspar, and Balthazar. Some churches also celebrate Jesus’ baptism this day. Before December 25 was Christmas, January 6 was the main day to celebrate Jesus’ birth. It ends the 12 days of Christmas with food, parades, and gifts.
✝️🎁⭐
[Read more]
We wish you all a happy Epiphany day.
@googlefactss#Epiphany#Jesus#Christmas#ChristianTraditions#History
☦️Epiphany and the Cross-Diving Tradition
On the feast of the Epiphany, believers in a number of countries take part in a folk-religious tradition known as cross diving.
🔹 After the blessing of the water, a priest throws a cross into a body of water — a river, lake, or the sea.
🔹 Participants then swim to retrieve the cross from the water.
🔹 It is believed that the person who retrieves the cross first receives a special blessing for the year ahead.
🌍 This tradition is especially common in countries with a warmer climate than Russia, such as Greece, Bulgaria, Serbia, as well as in several other countries and regions.
🇷🇺🇿🇦 This tradition is also practiced within the Russian-speaking diaspora in South Africa.
📸Photo (Cape Town)
🔗Source: https://t.me/Capetown_SouthAfrica_chat/50655
#Epiphany#Orthodoxy#ChristianTraditions#Culture#Religion#FolkTraditions#SouthAfrica#CapeTown
In Pictures 2
#Ethiopians across the country celebrate Timket (#Epiphany)—recognized by #UNESCO as an intangible cultural heritage of humanity—one of the Ethiopian Orthodox Church’s most sacred festivals, marked by vibrant processions, prayers, and communal gatherings.
On the occasion of the festival, various embassies in Addis Abeba have extended congratulatory messages.
The embassies of #Russia and the #United_States, along with those of #Germany, the #Netherlands, the #United_Kingdom, #Switzerland, #Sweden, #Finland, #Israel, #Armenia, #Canada, #Iran, #Pakistan, and #Australia, wished Ethiopians a peaceful and joyful celebration. (Source: FBC, TigTV)