Стандартная библиотека asyncio это стандарт (начиная с Py3.4) для работы с асинхронным кодом. Но эта библиотека достаточно низкоуровневая, со своими проблемами, устаревшими подходами.
Чтобы исправить это, были созданы разные обертки и альтернативы с реализацией популярных инструментов и паттернов асинхронного программирования. Это такие библиотеки как:
- trio: улучшает корректность выполнения, не оставляя потерянных корутин при ошибках, то есть предлагает Structured Concurrency из коробки.
- curio: упрощение синтаксиса и читаемости кода, больше похоже на работу с потоками.
- anyio: универсальная обертка над asyncio или trio плюс множество вспомогательных инструментов.
anyio используется в FastAPI как основная библиотека для работы с асинхронным кодом и вызовом синхронного кода из асинхронного.
В общем, рекомендую почитать про возможности anyio, возможно вы более не будете использовать чистый asyncio в своих проектах)
Это совсем не значит что дефолтный asyncio плох, он тоже даёт достаточный для работы функционал и продолжает развиваться. Например, в версии 3.11 появились TaskGroup, с похожим на trio функционалом. Так что он тоже актуален, просто придется больше написать кода самостоятельно.
#libs#async
🌎 Towering in the Siberian wilderness, the Patomskiy Crater is a giant mound of fractured limestone shrouded in mystery. Its cause—volcano, meteorite, or something else—remains unsolved, making it a captivating geological enigma. ✨
#mystery⚡#geology⚡#Siberia
👉subscribe Interesting Planet
🌎 Looming over southern Siberia, the Shoria Megaliths are massive granite formations, some stacked in a way that resembles giant stone blocks. While studies confirm these are mostly natural, some stones reach over 40 meters long—among the largest known granite formations in the world. ✨
#megaliths⚡#geology⚡#Siberia
👉subscribe Interesting Planet
👉more Channels
🌍 Siberia’s Lake Baikal freezes in winter, forming ice so clear that cracks and bubbles can be seen meters deep. In spring, melting ice creates musical sounds as it shifts and breaks apart. ✨
#lakes⚡#rivers⚡#Siberia⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography
👉more Channels
Discover Krasnoyarsk: The Heart of Siberia
🔻Krasnoyarsk is a major industrial and cultural hub, located in Siberia on the banks of the Yenisei River.
☆ It's home to the "Pearl of Siberia."The Stolby Nature Sanctuary is famous for its giant, unique rock formations, a paradise for rock climbers and hikers.
☆ A symbol on 10 rubles. The iconic Krasnoyarsk Communal Bridge over the Yenisei is featured on the back of the Russian 10-ruble banknote.
☆ Home to a mighty dam. The Krasnoyarsk Dam was one of the largest in the world when it was built and remains a monumental feat of engineering.
☆ A city of contrasts. It's a place where you can see classic Siberian wooden houses standing in the shadow of modern skyscrapers.
A true Siberian giant worth exploring!
📍Geoposition: East Siberia, Russia
Video: debutantesbal
#Krasnoyarsk
#Siberia
#around_Russia
😎RCR | Support | Boost
Do you know what ‘take on the moustache’ means? And why are fishermen not afraid to fall through the ice when a nuclear-powered ship cuts it next to it? And why is there only one woman on some icebreakers?
Watch our premiere Iceline. Lifeline. It is about the ‘Siberia’, Russia’s newest icebreaker. At the beginning of this year, it went straight from the shipyard to the Arctic to escort convoys.
Maksim Zhitnyak serves as the first mate on the icebreaker. We talked about him in 2014 in documentary Seven Seas of Ice when he first joined the fleet. Maksim recalls that at that time, he was greatly tormented by seasickness. ‘For three weeks, I could not get used to pitching’, he said. Today he’s an experienced sailor, and his ‘Siberia’ solves the most difficult tasks in the Arctic. Which you can know from the post.
#premiere#Siberia#Iceline
Follow: https://t.me/rtdocumentary
🌎 Deep in Siberia, the Lena Pillars rise as towering stone columns along the Lena River. Shaped by extreme cold and wind, these ancient rock formations record nearly half a billion years of Earth’s history in their dramatic layers. ✨
#geology⚡#siberia⚡#landscape
👉subscribe Interesting Planet
Два дня выходных, 1000 км автомобильной дороги, 32 км скитура — почти 17 часов, 2500 набору высоты.
День 2. Ергаки, гора «Лысая». (Первый фрирайд след)
03.03.2025 г. (из не изданного)
Утро следующего дня, и мы отправляемся в природный парк «Ергаки».
Сегодня решили сходить на г. Лысая. Названия ее вы можете и не знать, но уж точно вы ее начинаете видеть за километров 20 до полки, и когда уезжаете с Ергак в сторону Абакана, она вас провожает.
Так вот, после серпантина паркуемся на первой же парковке, одеваемся и в 10:20 стартуем на скитуре на небольшой холм, откуда и начнем старт, 20 минут и 1 пройденный километр, навигатор показывает 1294 н.у.м., затем падаем в ручей Кебеж до отметки 763 н.у.м. Можно было и сразу начать спуск с дороги, но чуть в другой водораздел придется падать, правда при этом начало будет пологое, поэтому мы решили немного пройтись и катнуть с хорошим углом. Лес оказался очень проездной, вторая часть спуска была уже по ручью, который довольно-таки хороший, широкий.
После того как упали, встретили многочисленные следы животных, мы немного насторожились! Вдруг медведь, начали просматривать их, но они были все узкие, было видно на снегу копыта, расслабились и пошли дальше. Перешли реку и сразу начали постепенный подъем в сторону пика. Шли то по цирку, то по хребту, лес то хороший, проездной, то иногда густой, встречались небольшие поля, а иногда прям неплохие небольшие локации с хорошим таким углом.
Спустя время мы стоим на отметке 1850 н.у.м., открываются небольшие панорамные виды, и отличное место для катки, да и еще с таким хорошим снегом, так как он не на подветренной стороне и почти весь день находится в тени.
До вершины остается примерно 150–200 метров набора высоты и чуть меньше 1 км по горизонтали, а контрольное время, которое мы сами себе установили, истекает через пару минут. И мы решаем все-таки дойти до верха, так как светового запаса по времени у нас еще есть почти три часа, а самое главное — это спуститься по светлу, а выходить уже на скитуре можно и в темноте, ну и в принципе мы так и планировали, что выход будет уже с фонариками. Маршрут был изучен наизусть, причем в запасе было пару вариантов как на спуск, так и на выход, даже без гаджетов вышли бы спокойно, но у нас их хватало сполна, еды тоже хватает, одежды хватает, силы есть, поэтому риски минимальны, и мы решаем идти дальше. Процентов 85 пути была сотовая связь (Теле2).
Продолжение в комментариях...
(@) @Andrei_Obedin
#Freeride_Ergaki#Ергаки#SkiTour#Siberia#Фрирайд_Ергаки#Гора_Лысая
🌎 Nestled in the Siberian taiga, the Russian town of Verkhoyansk is one of the coldest inhabited places on Earth. Winter temperatures can drop below –50°C, and the town recorded a range of over 105°C between its lowest and highest temperatures—a world record for temperature variation in a single settlement. ✨
#cities⚡#Siberia⚡#extremes
👉subscribe Interesting Planet
👉more Channels
🌎 In Siberia, the woolly mammoth roamed the tundra until about 4,000 years ago. Some frozen mammoth carcasses still contain preserved hair, skin, and even stomach contents. Recent DNA studies show mammoths were closely related to modern Asian elephants. ✨
#mammoth⚡#extinction⚡#Siberia
👉subscribe Interesting Planet
👉more Channels
Ancient Indonesian woman reshapes views on spread of early humans
Genetic traces in the body of an ancient young woman furnish the first clue that mixing between early humans in Indonesia and those from faraway Siberia took place much earlier than previously thought.
#Indonesia#Siberia#Archeology#Migration#News#Reuters
Subscribe: http://smarturl.it/reuterssubscribe
Reuters brings you the latest business, finance and breaking news video from around the globe. Our reputation for accuracy and impartiality is unparalleled.
Get the latest news on: http://reuters.com/
Follow Reuters on Facebook: https://www.facebook.com/Reuters
Follow Reuters on Twitter: https://twitter.com/Reuters
Follow Reuters on Instagram: https://www.instagram.com/reuters/?hl=en
➖@reutersworldchannel➖
🌎 Wedged deep into northern Siberia, Oymyakon is the world’s coldest inhabited town. Winter temperatures plunge below −50°C, yet people thrive here with heated homes, warm clothing, and diets rich in meat and fish adapted for this harsh, frozen environment. ✨
#Oymyakon⚡#Siberia⚡#cold
👉subscribe Interesting Planet
Последний месяц в Сибири я катался в новом термобелье от компании «Следопыт».
Честно — понравилось: оно действительно работает и согревает даже в самые сильные морозы (заявлено до −35). Не стесняет движения, приятно сидит и стильно выглядит — в общем, рекомендую 🙌🏻
Честно признаться, такое ощущение, что в последнее время я живу свою лучшую жизнь: все идеи реализуются в кратчайшие сроки.
Путешествия, друзья, сноубординг и вертолёты — это просто мечта! 😍
Артикул WB: WW267064
Больше ассортимента на сайте: https://clck.ru/3RCmsk
#snowboarding#heliboarding#freeride#siberia#сноубординг