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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #183 · 23 ное.

Python + bash Если вам часто требуется запускать shell команды из Python-кода, какой способ вы используете? Самый низкоуровневый это функция os.system(), либо os.popen(). Рекомендованный способ это subprocess.call(). Но это всё еще достаточно неудобно. Советую обратить своё внимание на очень крутую библиотеку sh. Что она умеет? 🔸 удобный синтаксис вызова команд как функций # os import os os.system("tar cvf demo.tar ~/") # subprocess import subprocess subprocess.call(['tar', 'cvf', 'demo.tar', '~/']) # sh import sh sh.tar('cvf', 'demo.tar', "~/") 🔸 простое создание функции-алиаса для длинной команды fn = sh.lsof.bake('-i', '-P', '-n') output = sh.grep(fn(), 'LISTEN') в этом примере также задействован пайпинг 🔸 удобный вызов команд от sudo with sh.contrib.sudo: print(ls("/root")) Такой запрос спросит пароль. Чтобы это работало нужно соответствующим способом настроить юзера. А вот вариант с вводом пароля через код. password = "secret" sudo = sh.sudo.bake("-S", _in=password+"\n") print(sudo.ls("/root")) Это не все фишки. Больше интересных примеров смотрите в документации. Специально для Windows💀 юзеров #libs#linux

Hashtags

Резултати

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

Пребарај: #ethiopianheritage

当前筛选 #ethiopianheritage清除筛选

## 🏛️ANCIENT ETHIOPIA THROUGH INTERNATIONAL LENS: HISTORY THAT AMAZED THE WORLD ## 🏛️በዓለም አቀፍ ሌንስ የታየች ጥንታዊ ኢትዮጵያ: ዓለምን ያስገረመ ታሪክ ⛪ КОГДА МИРОВЫЕ РЕЖИССЕРЫ ПОНЯЛИ МАСШТАБ ЭФИОПСКОЙ ЦИВИЛИЗАЦИИ! International documentary filmmakers keep arriving with one question: "How did we not know about this?!" 💫 🏆 ARCHITECTURAL MASTERPIECE DOCUMENTARIES: ⛪ "LALIBELA: THE NEW JERUSALEM" (2018) *BBC/PBS co-production* 800-year-old churches carved downward into solid rock Engineers still baffled by construction techniques *ኢንጂነሮች አሁንም በግንባታ ቴክኒኩ ተደንቀዋል* 🏰 "GONDAR: AFRICA'S CAMELOT" (2020) *History Channel* 17th century castles that rival European royalty African architecture that inspired European designs *የአውሮፓ ንድፎችን ያነሳሱ የአፍሪካ ሕንፃዎች* 📜 "AXUM: THE LOST EMPIRE" (2022) *National Geographic* Ancient obelisks older than Rome's monuments Kingdom that controlled Red Sea trade for centuries *ከሮም መታሰቢያዎች የበለጠ ቆዮች የነበሩ ምሰሶዎች* 👑 "QUEEN OF SHEBA: MYTH OR REALITY?" (2023) *Discovery Channel* Archaeological evidence supporting Ethiopian claims International historians reconsidering biblical narratives *የመጽሐፍ ቅዱስ ትረካዎችን እንደገና የሚያጤኑ ታሪክ ተመራማሪዎች* 📚 "THE BOOK OF KELLS VS ETHIOPIAN MANUSCRIPTS" (2021) *Arte Documentary* Ethiopian illuminated manuscripts predating European examples Ge'ez script preservation through centuries *ከአውሮፓ ዕንጭጽዎች በፊት የነበሩ የኢትዮጵያ እጅ ጽሑፎች* 🇷🇺 RUSSIAN CONNECTION - HISTORICAL RESEARCH: *የሩስያ ግንኙነት - የታሪክ ምርምር* Soviet archaeologists worked extensively in Ethiopia during 1970s-80s. Russian documentary "Ethiopia: Cradle of Civilizations" provided first international academic recognition of Ethiopia's ancient achievements. *የሶቭየት አርኪኦሎጂስቶች በኢትዮጵያ ውስጥ በሰፊው ሰሩ* *Советские археологи впервые признали древние достижения Эфиопии* 📺 RECENT HISTORICAL DISCOVERIES: 🏛️ "THE MYSTERIOUS STONE CIRCLES" (2024) *Netflix Archaeological Series* Newly discovered ancient sites predating Stonehenge *ከስቶንሄንጅ የበለጠ ጥንታዊ* ⚔️ "ADWA: THE VICTORY THAT CHANGED AFRICA" (2023) *HBO Documentary* 1896 battle that preserved African independence First African victory over European colonial power *አፍሪካዊ ነጻነትን ያቆየ እና የመጀመሪያ ድል* 🎭 "ETHIOPIAN ORTHODOX: CHRISTIANITY'S HIDDEN CHAPTER" (2024) *BBC Religious Affairs* 1600-year-old Christianity practiced continuously Ark of Covenant claims examined by international experts *ያልተቋረጠ ላሉ 1600 አመት የክርስትናነት ልምድ* 🌍 INTERNATIONAL RECOGNITION: 🏅 UNESCO - Multiple Ethiopian sites gaining World Heritage status 🏅 SMITHSONIAN - Ethiopian artifacts featured in major exhibitions 🏅 BRITISH MUSEUM - Returning Ethiopian treasures after international pressure 🏅 LOUVRE - Planning Ethiopian civilization exhibition 🚀 THE HISTORICAL REVOLUTION: *የታሪክ አብዮት* From "unknown African country" to "cradle of human civilization" - international documentaries transformed global perception of Ethiopian heritage! *When archaeologists dig in Ethiopia, they don't find artifacts - they rewrite history* ⛪📚 #EthiopianHistory#የኢትዮጵያታሪክ#EthiopianArchitecture#AncientEthiopia#EthiopianHeritage#WorldHeritage#ኢትዮጵያላይፍ#HistoryRevolution

## 🦴 LUCY: MEETING HUMANITY'S 3.2 MILLION YEAR OLD GRANDMOTHER ## 🦴 ሉሲ - የሰው ዘር እናት 🌍 Where human history began - literally! In Addis Ababa lies a treasure that connects every person on Earth - Lucy (Dinknesh), the 3.2 million year old fossil that rewrote human history! 💫 ## 🏛️ NATIONAL MUSEUM OF ETHIOPIA 📍LOCATION: King George VI Street, Addis Ababa 🕐HOURS: Tuesday-Sunday, 8:30 AM - 5:30 PM (Closed Mondays) 💵ENTRY FEE: - Foreigners: 100 ETB (~$1.80) - Ethiopians: 10 ETB - Photography: +50 ETB 📸PRO TIP: Visit weekday mornings (9-11 AM) for fewer crowds! ## 🦴 LUCY - DINKNESH (ድንቅነሽ) *"You are wonderful" in Amharic* ✨DISCOVERED: November 24, 1974, Afar Region ✨AGE: 3.2 million years old ✨SPECIES: Australopithecus afarensis ✨SIGNIFICANCE: 40% complete - most complete early human ancestor ever found! ✨HEIGHT: 1.1 meters - small but mighty! ## 🌟 WHY LUCY CHANGED EVERYTHING Lucy proved our ancestors walked upright BEFORE developing large brains! She literally rewrote anthropology textbooks! 📚 ## 🏛️ MUSEUM HIGHLIGHTS ✨ Lucy's iconic skeleton display ✨ Ancient royal crowns and thrones ✨ Emperor Haile Selassie's throne ✨ Traditional Orthodox Christian art ✨ Artifacts spanning 3 million years ## 💡 HOW TO GET THERE 📍 Taxi from Meskel Square: 15-20 min, ~150-200 ETB 📍 Walking from Piazza: 25 minutes 📍 Blue taxi: 10 ETB (ask for "National Museum") ## 🌍 LUCY'S STORY 🇷🇺 Soviet paleontologists collaborated with Ethiopian researchers in 1970s-80s, helping establish Ethiopia's paleontological research! 🌎 Lucy traveled to USA (2007-2013) where 3 million people visited! She safely returned home to Ethiopia! 🇪🇹 ## 🌟 FOR YOUNG ETHIOPIANS This is YOUR heritage! Lucy proves human history STARTED in Ethiopia! Let this inspire you to: ✨ Study paleontology & archaeology ✨ Become museum professionals ✨ Share Ethiopia's story globally ## 💫 THE MESSAGE Ethiopia isn't just beautiful landscapes - it's where HUMANITY began! Every person on Earth can trace ancestry back to Ethiopia! --- Visit Lucy. Know your heritage. Share your pride!🇪🇹❤️ *Where humanity's journey began, Ethiopia's future shines brightest!* ✨ #LucyEthiopia#ሉሲ#NationalMuseumEthiopia#AddisAbaba#CradleOfHumanity#EthiopianHeritage#Dinknesh#VisitEthiopia#EthiopianPride

🌅 **YIRGACHEFFE: THE CROWN JEWEL OF ETHIOPIAN COFFEE** ☕👑 *Where Giants Fight for Gold* High in the misty mountains of southern Ethiopia, at 2,000+ meters above sea level, lies the legendary Yirgacheffe region - the birthplace of coffee that commands $30-80 per pound in premium markets worldwide. commands $30-80 per pound in premium markets worldwide🏆 **YIRGACHEFFE: THE CRO- Features Yirgacheffe as their flagship single-origin 💎👑 *Where Giants Fight - Built their reputation on Ethiopian beans ⚡N COFFEE** ☕👑 *Wher- Direct partnerships with Yirgacheffe cooperatives 🌟* ☕👑 *Where Giants- Sources exclusively from 4 select farms PIAN COFFEE** ☕👑 *Where Giants Figh•� **YIRGACHEFF 1,700-2,200m (higher than most wine regions) •COFFEE** ☕👑 Perfect balance of rain and sunshine •HIOPIAN CO Volcanic, mineral-rich earth •EL OF ETHIOPIAN Traditional washed method perfected over centuries E** ☕👑 *Where Giant• Yirgacheffe beans sell forJEWEL OF ETHIOPIAN COFover commercial coffee • Annual production: OnlyOFFEE** ☕👑 *Wheglobally • Global demand:WN JEWEL OF ETHIOPIAN CO This isn't just coffee - it's liquid gold that turns morning rituals into luxury experiences. --- the misty mountaየኢትዮጵያ ቡና ዘውድ - ይርጋቸፌ፣ ከፍተኛ ዋጋ ያለው ልዩ ቡና #YirgacheffeCoffee#EthiopianCoffee#PremiumCoffee#SingleOrigin#CoffeeOrigin#SpecialtyCoffee#EthiopianHeritage#HighAltitudeCoffee#CoffeeTerror#LuxuryCoffee