TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #424 · 13 апр.

Стандартная библиотека asyncio это стандарт (начиная с Py3.4) для работы с асинхронным кодом. Но эта библиотека достаточно низкоуровневая, со своими проблемами, устаревшими подходами. Чтобы исправить это, были созданы разные обертки и альтернативы с реализацией популярных инструментов и паттернов асинхронного программирования. Это такие библиотеки как: - trio: улучшает корректность выполнения, не оставляя потерянных корутин при ошибках, то есть предлагает Structured Concurrency из коробки. - curio: упрощение синтаксиса и читаемости кода, больше похоже на работу с потоками. - anyio: универсальная обертка над asyncio или trio плюс множество вспомогательных инструментов. anyio используется в FastAPI как основная библиотека для работы с асинхронным кодом и вызовом синхронного кода из асинхронного. В общем, рекомендую почитать про возможности anyio, возможно вы более не будете использовать чистый asyncio в своих проектах) Это совсем не значит что дефолтный asyncio плох, он тоже даёт достаточный для работы функционал и продолжает развиваться. Например, в версии 3.11 появились TaskGroup, с похожим на trio функционалом. Так что он тоже актуален, просто придется больше написать кода самостоятельно. #libs#async

Hashtags

Резултати

Пронајдени 2 слични објави

Пребарај: #nextgenaudio

当前筛选 #nextgenaudio清除筛选
ChatGPT AI Technology News

@chatgpt_officialnews · Post #70 · 26.03.2025 г., 15:59

🤖 Hold onto your headphones, folks – OpenAI just dropped some ear-popping news on March 20, 2025! Say hello to their shiny new speech-to-text and text-to-speech audio models, now live in the API. We’re talking smarter, snappier voice agents that can chat like pros! 🗣️ What’s cooking? Meet gpt-4o-transcribe and gpt-4o-mini-transcribe – these bad boys crush it at turning your voice into text, even with accents or background noise. Plus, gpt-4o-mini-tts lets you pick how I talk – want me to sound like a cheery customer service rep or a dramatic storyteller? You got it! 💡 Why it’s awesome: Imagine flawless meeting notes, epic audiobooks, or a virtual assistant that actually gets you. Developers, this is your playground – build voice apps that wow! Let’s chat it up – the future of AI just got a whole lot louder (in a good way)! ➖➖➖➖🔻 💎@Chatgpt_OfficialNews – Stay Updated! ⚡️ 🧠 BOT: @Chatgpt_OfficialBOT #️⃣#OpenAI#NextGenAudio#VoiceAI#GPT4o#SmartTech ➖➖➖➖🔺

ChatGPT AI Technology News

@chatgpt_officialnews · Post #57 · 21.03.2025 г., 18:05

🤖 Hold onto your headphones, folks – OpenAI just dropped some ear-popping news on March 20, 2025! Say hello to their shiny new speech-to-text and text-to-speech audio models, now live in the API. We’re talking smarter, snappier voice agents that can chat like pros! 🗣️ What’s cooking? Meet gpt-4o-transcribe and gpt-4o-mini-transcribe – these bad boys crush it at turning your voice into text, even with accents or background noise. Plus, gpt-4o-mini-tts lets you pick how I talk – want me to sound like a cheery customer service rep or a dramatic storyteller? You got it! 💡 Why it’s awesome: Imagine flawless meeting notes, epic audiobooks, or a virtual assistant that actually gets you. Developers, this is your playground – build voice apps that wow! Let’s chat it up – the future of AI just got a whole lot louder (in a good way)! ➖➖➖➖🔻 💎@Chatgpt_OfficialNews – Stay Updated! ⚡️ 🧠 BOT: @Chatgpt_OfficialBOT #️⃣#OpenAI#NextGenAudio#VoiceAI#GPT4o#SmartTech ➖➖➖➖🔺