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

Резултати

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

Пребарај: #disease

当前筛选 #disease清除筛选
Психология аутоагрессии

@psychologyofautoaggression · Post #38 · 14.12.2021 г., 18:50

Non Suicidal Self Inljury у подростков Самоповреждение является сильным предиктором самоубийства среди подростков, а также связано с депрессией и пограничным расстройством личности. Распространенность несуицидального самоповреждения составляет примерно 17% среди подростков, но биологические и когнитивные механизмы, лежащие в основе этого поведения, остаются неясными. 142 девочки в возрасте 12-17 лет прошли экспериментальную процедуру, известную как социальный стресс-тест Триера (Trier Social Stress Test). Участницы произносили короткую речь и выполняли устные арифметические вычисления в присутствии двух экзаменаторов, которые должны были выглядеть предельно нейтрально (белые халаты,все такое). В разные моменты теста исследователи брали образцы слюны для измерения уровня кортизола. Исследователи обнаружили, что девушки с тяжелой историей несуицидальных самоповреждений (Non Suicidal Self Injury, NSSI) сообщили о более высоком уровне стресса во время теста по сравнению с девушками с умеренной, легкой или отсутствующей историей NSSI. Однако у участниц с тяжелой формой NSSI реактивность кортизола была в среднем ниже, чем в других группах. (NSSI считался тяжелым, если в прошлом было четыре или более эпизодов NSSI с частотой более одного раза в месяц и со значительным повреждением тканей). Участницы также прошли функциональную магнитно-резонансную томографию (фМРТ), которая использовалась для оценки объема миндалины и функциональной связи в состоянии покоя между миндалиной и медиальной префронтальной корой. Во время сканирования мозга участницы также выполняли задание на определение угрозы, в котором им показывали человеческие лица, изображающие гнев и страх. Аномалии, обычно обнаруживаемые в функциональной связи между миндалиной и лобной корой, наиболее очевидны у подростков с тяжелым NSSI по сравнению с умеренным и легким NSSI. В то время как подростки с умеренным NSSI демонстрируют повышенную активацию миндалины на стрессовые стимулы (испуганные или сердитые лица), подростки с тяжелым NSSI не показывают такой повышенной активации миндалины. И то, и другое можно считать дисфункцией, но проявляющейся по-разному. Само собой напрашивается лонгитюдное исследование того, как со временем будет изменяться реакция "системы угрозы" (threat system), одними из параметров оценки функционирования которой являются реакция миндалины и уровни кортизола. И эти исследования не за горами - данная работа является частью крупного проекта Brain Imaging Development of Girls’ Emotion and Self (BRIDGES), который как раз и занимается сбором лонгитюдных данных. https://bit.ly/3pFmTdS #disease

Hashtags

VET's HUB ®

@vets_hub · Post #29716 · 16.08.2025 г., 14:10

#disease🤢 #Glanders: A Zoonotic Disease Affecting Equines and Humans 🟢1. Cause of Disease: Glanders is a contagious and often fatal disease caused by the bacterium Burkholderia mallei. This bacterium primarily affects equines (horses, donkeys, mules) but can also infect other animals and humans. 🟢2. Ways of Conflict and Disease Transmission: • Direct Contact: The most common route of transmission is through direct contact with infected animals, such as through bodily fluids (nasal discharge, saliva, urine, milk), or contaminated equipment. • Inhalation: Inhaling contaminated dust or aerosols can lead to infection. • Ingestion: Consuming contaminated food or water can also cause infection. 🟢3. Disease Symptoms: Glanders can manifest in both acute and chronic forms, with symptoms varying depending on the severity and location of the infection. Acute Form: • High Fever: Sudden onset of high fever. • Nasal Discharge: Thick, purulent nasal discharge that often has a foul odor. • Coughing: Severe coughing with potential respiratory distress. • Skin Lesions: Nodules and ulcers on the skin, often on the head, neck, and limbs. • General Weakness: Loss of appetite, lethargy, and muscle weakness. Chronic Form: • Chronic Nasal Discharge: Persistent nasal discharge, often with a more localized involvement of the nasal passages. • Nodules: Subcutaneous nodules, especially around the head and neck. • Joint Pain: Lameness and swelling in joints. • Lung Lesions: Pneumonia and respiratory complications. 🟢4. Disease Diagnosis Methods: • Bacteriological Culture: Samples from nasal discharge, skin lesions, or blood can be cultured to identify the Burkholderia mallei bacterium. • Serological Tests: Tests to detect antibodies against the bacterium. • Polymerase Chain Reaction (PCR): A molecular test that detects specific DNA sequences of Burkholderia mallei. 🟢5. Disease Treatment and Appropriate Drugs: • Antibiotics: Treatment typically involves long-term administration of specific antibiotics like tetracyclines or aminoglycosides. • Anti-inflammatory Medications: To manage inflammation and pain. • Supportive Care: Hydration, nutrition, and symptomatic treatment. Glanders is often difficult to treat, and long-term follow-up is necessary to prevent relapses. 🟢6. Disease Prevention: • Quarantine: Strict quarantine measures for infected animals and potential contact animals are essential. • Vaccination: A vaccine for horses is available in some countries, offering limited protection. • Biosecurity: Implementing strict hygiene practices to prevent the spread of the bacterium, including disinfecting equipment and minimizing direct contact with potentially infected animals. • Early Detection: Promptly identifying and isolating animals exhibiting signs of Glanders is crucial for preventing further spread. 🟢7. Quarantine & Human Involvement: • Quarantine: Quarantine of infected animals and animals that may have been in contact is crucial to prevent further transmission. • Human Involvement: Glanders is a zoonotic disease, meaning it can be transmitted to humans. The most common route of infection in humans is through contact with infected animals or their bodily fluids. Human symptoms are similar to those seen in horses, and treatment often involves antibiotics. 🟢8. Immunity and Recovery: • Immunity: Recovery from Glanders does not guarantee immunity, and reinfection is possible. • Recovery: The disease can be fatal, even with treatment. Recovery can be prolonged, and long-term complications are possible. 🔴Important Note: Glanders is a highly contagious and potentially fatal disease. It's crucial to consult with a veterinarian immediately if you suspect your horse or another animal may be infected. https://t.me/vets_hub

Interesting Planet 🌍

@interesting_planet_facts · Post #1316 · 25.02.2026 г., 22:11

🌎 Freshwater snails rank among the world’s most dangerous animals because they spread parasites causing schistosomiasis, a disease infecting over 200 million people each year. These tiny snails release larval worms into water, which then penetrate human skin and can lead to serious organ damage if untreated. ✨ #animals⚡#parasites⚡#disease 👉subscribe Interesting Planet 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #1277 · 06.02.2026 г., 12:11

🌎 Mosquitoes are considered the most dangerous animals on Earth because they transmit deadly diseases like malaria, dengue, and Zika virus. Malaria alone causes more than 600,000 deaths annually, making mosquitoes responsible for more human deaths than any other animal. ✨ #mosquitoes⚡#disease⚡#animals 👉subscribe Interesting Planet 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #851 · 03.10.2025 г., 12:11

🌎 Freshwater snails, especially those of the genus Biomphalaria, help spread schistosomiasis—a disease that kills up to 200,000 people yearly. Schistosomiasis is a parasitic infection caused by worms that develop inside these snails and infect humans through contaminated water. ✨ #animals⚡#parasites⚡#disease 👉subscribe Interesting Planet 👉more Channels ​

Addis Standard

@addisstandardeng · Post #21241 · 29.01.2026 г., 15:32

News: Conflict, flooding, fuel shortages strained humanitarian logistics in #Ethiopia in late 2025, report says Ethiopia’s humanitarian logistics network faced mounting pressure in the final quarter of 2025 as #conflict, #climate_shocks, and #disease outbreaks continued to drive displacement and restrict aid delivery across several regions, according to a new Logistics Cluster fact sheet. The report says sustained insecurity and infrastructure damage in the #Amhara, #Oromia, #Somali, and #Tigray regions compounded operational challenges for humanitarian partners, who relied heavily on coordinated logistics support to deliver life-saving assistance to hard-to-reach communities. During the October–December period, access along key transport corridors remained fragile, with repeated security incidents delaying convoy movements and disrupting cargo delivery. Seasonal flooding further worsened the situation by damaging roads and bridges, cutting off critical.... Read more: https://addisstandard.com/?p=54827

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40142 · 20.11.2025 г., 19:00

The biconcave shape of red blood cells maximizes surface area for efficient oxygen exchange and allows flexibility to squeeze through tiny capillaries, crucial for health. Diseases can distort this shape, but new microfluidic tech helps detect these changes for better diagnosis. 🔬💉🩸 [Read more] @googlefactss #RedBloodCells#Biology#Health#Disease#Biomechanics#MedicalInnovation#ScienceFacts