Стандартная библиотека asyncio это стандарт (начиная с Py3.4) для работы с асинхронным кодом. Но эта библиотека достаточно низкоуровневая, со своими проблемами, устаревшими подходами.
Чтобы исправить это, были созданы разные обертки и альтернативы с реализацией популярных инструментов и паттернов асинхронного программирования. Это такие библиотеки как:
- trio: улучшает корректность выполнения, не оставляя потерянных корутин при ошибках, то есть предлагает Structured Concurrency из коробки.
- curio: упрощение синтаксиса и читаемости кода, больше похоже на работу с потоками.
- anyio: универсальная обертка над asyncio или trio плюс множество вспомогательных инструментов.
anyio используется в FastAPI как основная библиотека для работы с асинхронным кодом и вызовом синхронного кода из асинхронного.
В общем, рекомендую почитать про возможности anyio, возможно вы более не будете использовать чистый asyncio в своих проектах)
Это совсем не значит что дефолтный asyncio плох, он тоже даёт достаточный для работы функционал и продолжает развиваться. Например, в версии 3.11 появились TaskGroup, с похожим на trio функционалом. Так что он тоже актуален, просто придется больше написать кода самостоятельно.
#libs#async
Gov. Ron DeSantis of Florida signed legislation on Monday to rename the largest airport in Palm Beach County as President Donald J. Trump International Airport, the latest effort to affix the Trump name to a civic institution. ✈️
The new state law will rebrand Palm Beach International Airport, which the president flies in and out of on his way to and from his nearby Mar-a-Lago estate. The name change, effective July 1, is subject to approval from the Federal Aviation Administration, according to the legislation.
The F.A.A. said in a statement late on Monday that it “does not approve airport name changes,” which it described as a local issue. Instead, the statement said that the agency “must complete some administrative tasks to include updating navigational charts and databases.” 📊
Mr. DeSantis signed the law in private, with little fanfare — an unusual move for the governor, who typically holds public events to sign high-profile bills. A spokeswoman for the governor said a ceremonial signing would be held at a future date.
#Trump#Avia
👂More on Trump's Ear ⚠️
ICE officers will be on hand to prevent chaos at the world’s busiest airport, the city’s mayor confirmed Sunday.
Atlanta’s Hartsfield-Jackson Atlanta International Airport was identified Sunday as one of the airports where ICE officers will be stationed on Monday, in an effort to ease passenger disruptions caused by a reduction in Transportation Security Administration staff.
#Avia#ICE
👂More on Trump's Ear ⚠️
An internal watchdog report in the Department of Homeland Security identified serious vulnerabilities in TSA's screenings at airports nationwide, among them, one created by a change in the shoes-off policy — and the agency has yet to respond five months later, according to internal communications provided to House Homeland Security Committee staff and reviewed by CBS News. ⚠️
Airports nationwide are in disarray amid Congress' failure to approve DHS funding, with TSA agents having gone without pay for 40 days. ✈️
#Avia#Security
👂More on Trump's Ear ⚠️
🛩Airlines canceled 1,200 flights on Tuesday as air traffic control staffing improved significantly ahead of an expected end to a record-setting government shutdown as soon as Wednesday.
After airlines canceled 2,400 flights and delayed 9,600 on Monday, airlines delayed just 1,700 on Tuesday, the best performance for the industry in recent days.
#Shutdown#Avia
👂More on Trump's Ear
Thousands of air traffic controllers did not receive Trump's bonuses for their work during the shutdown 🚀✈️
President Donald Trump appointed a payment of 10 thousand dollars to those air traffic controllers who did not miss a single shift during the longest shutdown in history, writes Axios. 📌💰
м
But, in fact, only 776 people out of about 11 thousand will receive the money. 😟
The union says that thousands of employees also worked without pay, but they had to skip individual shifts due to part-time work, childcare or debts. 👫👨👩👧👦💼
These people supported the system, but the administration excluded them from the program. ❗️
The FAA acknowledged that staff shortages had hit flight schedules and cut thousands of flights at 40 airports. ✈️⛏️
Trump wrote on Truth Social at the time that he was "NOT HAPPY" with those who did not come out on a daily basis. 😡
The head of the Ministry of Transport, Sean Duffy, said that the award was a thank you to those who "kept the sky safe" for 44 days. 🎯✅
The FAA promises to pay the money by December 9th. 🔥
NATCA said that it seeks recognition for all those who worked in the shutdown. 🙌
#Trump#Avia#Shutdown
👂More on Trump's Ear
💬"All Air Traffic Controllers must get back to work, NOW!!! Anyone who doesn’t will be substantially 'docked,'" Trump wrote on social media. "REPORT TO WORK IMMEDIATELY."
#Trump#Shutdown#Avia
👂More on Trump's Ear
President Donald Trump’s Transportation Secretary said that he “can’t guarantee” flights wouldn’t be delayed or canceled as the Federal Aviation Administration struggles with staffing shortages amid the ongoing government shutdown.
Thousands of flights have been delayed across the U.S. this week, while three major airports issued ground stops Thursday, which was attributed to staffing issues due to the shutdown as it entered day 23.
Transportation Secretary Sean Duffy said that the shutdown was impacting air traffic control, and urged controllers to “come to work even if you don’t get a paycheck.”
#Trump#Shutdown#Avia
👂More on Trump's Ear ⚠️
Зимний сезон ’25/’26: как зарабатывать больше на продаже авиабилетов?
Узнайте инструменты, которые приносят прибыль агентствам уже сегодня!
27 ноября в 12:00 (МСК) пройдёт вебинар, который нельзя пропустить, если вы работаете с авиа-продажами.Зима — пик спроса, а значит время максимальных заработков. На вебинаре эксперты разберут, как использовать сезон по максимуму!
На вебинаре вы узнаете:
✦ Главные тренды зимнего сезона ’25/’26
✦ Как увеличить прибыль на авиаперевозках
✦ Аналитика, прогнозы, рекомендации
✦ Полезные инструменты и функции Мой Агент
✦ Ответы на вопросы в прямом эфире
Спикеры:
🔵Мария Мичурина — Руководитель группы аналитики авиаконтента «Мой Агент»
🔵Артур Привин — Основатель Madison Consult
🔵Анна Филиппова — Директор по продвижению «Мой Агент»
Если вы хотите повысить доходы в высокий сезон и работать эффективнее — этот вебинар для вас. Конкретные цифры, аналитика, инструменты — всё, что поможет вам заработать больше.
Регистрация тут⏪️
Присоединяйтесь — ваши продажи зимой будут другими!
#вебинар#онлайнвебинар#туробучение#авиабилеты#авиапродажи#avia#traveltech#турбизнес#агентам#МойАгент