Стандартная библиотека asyncio это стандарт (начиная с Py3.4) для работы с асинхронным кодом. Но эта библиотека достаточно низкоуровневая, со своими проблемами, устаревшими подходами.
Чтобы исправить это, были созданы разные обертки и альтернативы с реализацией популярных инструментов и паттернов асинхронного программирования. Это такие библиотеки как:
- trio: улучшает корректность выполнения, не оставляя потерянных корутин при ошибках, то есть предлагает Structured Concurrency из коробки.
- curio: упрощение синтаксиса и читаемости кода, больше похоже на работу с потоками.
- anyio: универсальная обертка над asyncio или trio плюс множество вспомогательных инструментов.
anyio используется в FastAPI как основная библиотека для работы с асинхронным кодом и вызовом синхронного кода из асинхронного.
В общем, рекомендую почитать про возможности anyio, возможно вы более не будете использовать чистый asyncio в своих проектах)
Это совсем не значит что дефолтный asyncio плох, он тоже даёт достаточный для работы функционал и продолжает развиваться. Например, в версии 3.11 появились TaskGroup, с похожим на trio функционалом. Так что он тоже актуален, просто придется больше написать кода самостоятельно.
#libs#async
The Divine Meaning Of Dussehra (Part 1)
Many interesting and famous mythological stories of Dussehra or Vijayadashami (October 2nd), that celebrates the victory of righteousness over evil, are present in the world. These stories have deep spiritual meaning and significance.
According to the spiritual knowledge shared at the Brahma Kumaris, the soul originally was a sparkling star-like point of living energy, full of peace, purity and bliss; spiritually charged and staying in the soul world. This world is commonly called Shantidham or Muktidham, a world beyond this physical world of five elements. When this spiritually powerful soul first came onto the earth to play its role on earth, its purity was naturally seen through the physical body, in the form of divine qualities and actions filled with these qualities.
Slowly as it came down in the cycle of birth and rebirth, it started falsely identifying itself with its physical body and forgot its eternal identity of that of a soul. It started getting attracted to the five senses and other physical human beings and sense objects that it came across in its journey. The golden deer which had attracted Sita in the Ramayan is a symbolic representation of these attractions and the internal stage of soul-consciousness is shown in the form of the Lakshman Rekha which Sita had crossed. This led to her getting kidnapped by Ravan and getting separated from Ram. The episode of kidnapping of Sita by Ravan refers to the kidnapping of the soul by the forces of Evil or the five vices namely lust, anger, greed, attachment and ego. It is believed that Ravan, was also called Dashanan, which means the one who has ten heads. It is physically impossible for such a human being to exist. So, these ten heads surely have a symbolic and deep spiritual importance, which we seem to have forgotten. The ten heads symbolize the five vices in men and five vices in the women of today.
(To be continued ….)
#festivals
👨💻Unreal Fest 2025 to be held in Bali: two days for developers from around the world
📆 June 25-26
ℹ️ This is the official event for professionals working with Unreal Engine in the fields of games, film, animation, architectural visualization and broadcast.
🎉 Participants will enjoy more than 50 themed sessions, consultations with Epic Games developers in the Dev Hub area, and an evening meetup for informal networking.
📲 Registration is now open.
#events#festivals@BaliNews
🧞♂️BaliSpirit Festival will return to Ubud
🎉 From the 1st – 5th May this magnificent celebration of yoga, dance, music, healing, and life is one of the world’s leading yoga festivals, and festival lovers are advised to book their tickets now.
🎟️ One day tickets start from $25, but 4-day passes (all access) completely sold-out already.
@BaliNews
#events#festivals
📸Colorful carnival was held in Nusa Dua
💧The most colorful event of the Water Forum and the only one available to everyone, tourists and expats missed out. There were fewer spectators at the carnival than participants.
🐲 The carnival was conceived as a kind of live exposition with Balinese cultural attractions. Dancing, theatrical skits, music, costumes - all elements of national identity, epic, art. It was noisy, energetic and very spectacular.
🎤 Among the honored spectators were spotted, for example, Indonesia's Minister of Tourism and Creative Economy Sandiaga Uno - pictured in the center with a Balinese headdress. The man on his right hand is Dewa Made Indra, Bali's provincial regional secretary.
@BaliNews
#festivals#Kuta
📸The first ever electric MINI JCW E will be unveiled on 11 July at the 'Festival of Speed' at Goodwood
🤫 Details on the powertrain are not yet available. The electric MINI Cooper SE offers a choice of a 184bhp motor with a 40.7kWh battery and a 218bhp motor with a 54.2kWh battery. Obviously, the JCW version will prove more powerful.
📆 Nevertheless, while it will be presented in motion, proving that it can cope with the occasional thrashing, the new MINI JCW E PROtotype won't be fully uncovered at the event. Instead, the car manufacturer says it will debut later this year and reminds its fans that the JCW lineup will include both battery-electric and gasoline-fed models.
@CarsNews
#MINI#festivals
🔜The Goodwood Festival of Speed is yet tomorrow
🎉The Goodwood Festival of Speed is one of the biggest highlights in the motoring calendar, offering the chance to see legendary cars and drivers in action alongside the industry’s hottest new metal.
📆 This year’s Festival of Speed runs from Thursday 11 July to Sunday 14 July, and it’s shaping up to be a memorable weekend. Tickets for Friday, Saturday and Sunday have already sold out, and the Thursday is said to be “limited”.
Here’s a list of new car set to be at this year’s Goodwood Festival of Speed:
• Alfa Romeo 33 Stradale
• Alfa Romeo Junior
• Alpine A290
• Alpine Alpenglow Hy4
• Aston Martin Valiant
• Bentley Continental GT
• BMW i5 Flow Nostokana
• BMW 1 Series facelift
• BMW M2 update
• Mini Cooper John Cooper Works
• and others via the link.
@CarsNews
#festivals#goodnews
🌎 In Thailand, the annual Monkey Buffet Festival in Lopburi sees locals serve up to 4,000 kilograms of fresh fruit and desserts to local macaques. This event is believed to bring good fortune and encourages harmony between humans and monkeys, who roam freely around the city. ✨
#traditions⚡#festivals⚡#culture
👉subscribe Interesting Planet
👉more Channels
🍚The Jatiluwih festival will be held on the rice terraces and will conclude with a concert as early as tomorrow
Jatiluwih tourist attraction manager Ketut Purna said this year's cultural festival will be held modestly due to budget constraints. Yet, the program, he promises, will be intense.
A lot of attention will be paid to agrarian affairs. After all, this festival seeks to attract not so much international tourists as domestic ones. The main task is to interest young people, to awaken their desire to join agricultural activities.
It will also be possible to get acquainted with the products of local farmers at the festival. For example, you can buy red rice, crackers made of it, traditional snacks and products typical of Jatiluwih village.
We are involving the entire community of Jatiluwih village, from children from kindergarten, elementary school, junior high school and youth organizations.
Purna said.
@BaliNews
#wheretogo#events#festivals
💋Omed-Omedan or Bali Kissing Festival
📍 Banjar Kaja Sesetan, Denpasar
In Bali, it's not customary to express feelings openly, especially in public. But there's one day a year when that changes and it's right after the Day of Silence.
ℹ️ Single guys and girls gather for the traditional Omed-Omedan festival, which has been held in the village of Sesetan for over 100 years. Young people from 17 to 30 years old take part in a mass kissing ceremony with applause and... dousing with water!
👩❤️💋👨 The festival begins with the participants being divided into two groups - men and women. At the signal of an elder, they come together, hug and kiss while the audience happily pours water on them - a symbol of purification and blessing.
📸 Although tourists are allowed to watch the action, it's a sacred tradition for local youth.
@BaliNews
#culture#events#festivals
🚘 has announced a mysterious new product announcement
📆On July 11, at the annual Festival of Speed in Goodwood, the new BMW X3 will have its world premiere, along with another significant premiere from the BMW Group. Perhaps it will be the BMW M5 Touring.
🤔 Considering that the mysterious novelty will be revealed on Thursday, July 11, it's certainly not the next-generation BMW M5. "Charged" sedan will debut on June 26, so it is most likely that the BMW M5 Touring station wagon can be shown at Goodwood. However, this has not been officially confirmed.
@CarsNews
#BMW#festivals#premiere
#Headliners#Music#Festivals
Join the Headliners - Music Festivals beta on ✈️#TestFlight
🔗 Link: https://testflight.apple.com/join/EJkJRc1y
Shared by Dimitri
🎆Suara Festival to be held in Nuanu on July 26-28
📍 Nuanu, Beraban
🥳 Suara Festival under the slogan "In Culture we trust" will be held in Bali on July 26-28.
Music, culture, healthy lifestyle, art performances, discussions and workshops will be held all three days.
🏘 This year's festival is timed to coincide with the official opening of Nuanu City, a major development project. Four thousand visitors are expected.
🎫 You can buy a ticket here.
@BaliNews
#wheretogo#festivals#Beraban