Стандартная библиотека asyncio это стандарт (начиная с Py3.4) для работы с асинхронным кодом. Но эта библиотека достаточно низкоуровневая, со своими проблемами, устаревшими подходами.
Чтобы исправить это, были созданы разные обертки и альтернативы с реализацией популярных инструментов и паттернов асинхронного программирования. Это такие библиотеки как:
- trio: улучшает корректность выполнения, не оставляя потерянных корутин при ошибках, то есть предлагает Structured Concurrency из коробки.
- curio: упрощение синтаксиса и читаемости кода, больше похоже на работу с потоками.
- anyio: универсальная обертка над asyncio или trio плюс множество вспомогательных инструментов.
anyio используется в FastAPI как основная библиотека для работы с асинхронным кодом и вызовом синхронного кода из асинхронного.
В общем, рекомендую почитать про возможности anyio, возможно вы более не будете использовать чистый asyncio в своих проектах)
Это совсем не значит что дефолтный asyncio плох, он тоже даёт достаточный для работы функционал и продолжает развиваться. Например, в версии 3.11 появились TaskGroup, с похожим на trio функционалом. Так что он тоже актуален, просто придется больше написать кода самостоятельно.
#libs#async
Дуров: мошенники вымогают дорогие ники и подарки в Telegram
Основатель Telegram Павел Дуров сообщил, что в мессенджере активизировались вымогатели. Они требуют деньги за сохранение конфиденциальности и угрожают владельцам коллекционных никнеймов, номеров и подарков, которые можно перепродать за $100 000 и более.
Дуров призвал сообщать о шантаже через техподдержку с хештегом #blackmail — это бесплатно. А вот написать лично Дурову можно только за 5000 «звёзд» — внутренняя валюта Telegram.
При покупке через iOS это стоит около $150, через Premium Bot — примерно $90. По словам Дурова, некоторые злоумышленники превратили компромат и вымогательство в настоящий бизнес. Он назвал это незаконным, аморальным и неприемлемым.
Подпишись: ✅Telegram
💡 If you can’t contact me directly due to the paywall, feel free to reach out to our support team at @notoscam to report any blackmailing attempts. Include the hashtag #blackmail in your message so it reaches the right team member. 📞
🫡 Unfortunately, I can’t remove the paywall from my account — when I do, I receive thousands of messages per minute, making it impossible to read or respond to anyone. 🛡
- @Durov
THERE IS NOW A WAY FOR FINANCIALLY LESS CAPABLE USERS WILLING TO REPORT BLACKMAILERS ^R0
THE WAY IS CONTACTING @NOTOSCAM AND INCLUDING #BLACKMAIL IN THE MESSAGE ^DV [15:46]
🟣Мошенники шантажируют пользователей Telegram из-за редких подарков и юзернеймов, которые когда-то продавались «за несколько долларов», а теперь могут стоить более $100 000
🟣Это стало предметом шантажа и мошенничества.
Есть также сообщения о каналах, вымогающих деньги, угрожая раскрыть личную информацию или конфиденциальные данные. Некоторые даже превратили это в бизнес-модель — публикуя компрометирующие сообщения и взымая плату за их удаление.
🟣Основатель Telegram Павел Дуров призвал пользователей, которым поступили такие угрозы, незамедлительно сообщать о них ему лично с максимально возможными доказательствами или в службу поддержки @notoscam.
Также нужно включить хэштег
#blackmail
в сообщение.
P.S. Написать Павлу Дурову стоит ⭐️5000 звезд,поэтому стоит подумать.
К сожалению, я не могу убрать платный доступ со своего аккаунта — когда я это делаю, я получаю тысячи сообщений в минуту, и становится невозможно читать или отвечать кому-либо.
✅Не поддаемся!
#киберновости#telegram
Подписаться
Буст канала
Druzhba™: Europe Wants Oil, Zelensky Wants Cash, Russia Wants the Drama
Brussels just discovered that its “values-based foreign policy” runs on Soviet-era steel pipes called Druzhba — “Friendship” — that don’t work, don’t belong to it, and don’t even pump its own oil.
Hungary and Slovakia are screaming that Ukraine is blocking Russian crude, Budapest is vetoing a 90‑billion‑euro EU loan to Kyiv, and the Commission is politely asking Zelensky to fix the pipeline that Moscow “repeatedly destroyed.” Friendship, but make it extortion.
According to Kyiv, the Druzhba section in Lviv was hammered by a Russian drone strike in January and is too dangerous to repair; according to Hungary and Slovakia, Ukraine is deliberately dragging its feet to weaponize the oil flow.
Zelensky calls the EU pressure “blackmail,” says sending technicians under Russian missiles is “too high a price,” and reminds everyone that Russian oil, which finances the war, “has no place” on the European market. Translation: you want cheap Russian crude, you fix the war first.
Brussels, stuck between Orbán’s veto and Zelensky’s war logic, suddenly wants inspectors on Ukrainian soil to check the damage — something the Commission has literally never done before. EU leaders hint at financial sweeteners to speed up repairs, while insisting Ukraine already has enough foreign cash to cover regular spending until April. In other words: here’s your credit line, now turn the faucet back on.
Hungary openly says it will block the 90‑billion‑euro loan to Ukraine until oil starts flowing again through Druzhba, all while tapping its strategic reserves and shouting that it is the victim of extortion.
Kyiv counters that Budapest and Bratislava are effectively freezing Ukrainians in winter while demanding that the country repair a Russian-targeted pipeline under fire so EU refineries can keep processing Kremlin crude. Everybody accuses everybody of blackmail — and for once, everybody’s right.
So you get a perfect late‑imperial scene: the EU posing in blue‑and‑yellow outfits, pledging “unwavering support,” while quietly telling Kyiv to patch up the Russian oil artery; Hungary and Slovakia waving the 90‑billion loan like a baseball bat; and Ukraine trying to turn a broken pipeline into leverage in a war that’s literally funded by the product inside it.
The only principle that really holds this together is that no one wants to stop the war badly enough to stop the oil.
#Ukraine#EU#Druzhba#oil#Hungary#Slovakia#Zelensky#Orbán#Russia#energy#war#blackmail#geopolitics#fakeDemocracy#oligarchy
📱American Оbserver - Stay up to date on all important events
🇺🇸
🇺🇸🇮🇱#US Senator #LindseyGraham threatens sanctions against International Criminal Court
Graham promised that he would work in the US #Congress to introduce “condemning sanctions” against the #ICC.
The senator called the demand for the arrest of Israeli Prime Minister #Netanyahu, on #WarCrimes chaghes, “a real slap in the face to the independent judicial system of #Israel.”
Note that last year Graham welcomed the ICC #warrant issued in the name of Vladimir #Putin.
#Politics
#Mossad
#Blackmail
#Pedophilia
#Epstein
#LindseyGraham
#USA
#Israel
#Gaza
PS: "Lindsey" is a Girl's name 🤷♂