@WarSaWitness · Post #41800 · 05.05.2026 г., 14:45
🇮🇷💥⚡️Images received from the #fire of the "Purple Passage" in phase 4 of Andishe city, Shahryar city, Tehran. @WarSaWitness
Hashtags
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
Пребарај: #fire
@WarSaWitness · Post #41800 · 05.05.2026 г., 14:45
🇮🇷💥⚡️Images received from the #fire of the "Purple Passage" in phase 4 of Andishe city, Shahryar city, Tehran. @WarSaWitness
Hashtags
@djangoproject · Post #540 · 28.12.2017 г., 12:26
https://github.com/google/python-fire #Python#Fire is a library for automatically generating command line interfaces (CLIs) from absolutely any Python object. Python Fire is a simple way to create a CLI in Python. Python Fire is a helpful tool for developing and debugging Python code. Python Fire helps with exploring existing code or turning other people's code into a CLI. Python Fire makes transitioning between Bash and Python easier. Python Fire makes using a Python REPL easier by setting up the REPL with the modules and variables you'll need already imported and created.
@badvolfnews · Post #1202 · 01.11.2023 г., 17:25
🔥 Fire at oil refinery in Kremenchuk, Ukraine. Drone attack blamed. Largest refinery in Ukraine. Plant shut down. Air alarm in multiple regions. Russian military continues strikes on Ukrainian infrastructure. Oil remains dominant global energy source. #Ukraine#Russia#Fire https://www.gazeta.ru/army/news/2023/11/01/21618103.shtml Subscribe to @BadVolfNews
@Dulirenorg · Post #984 · 24.09.2023 г., 09:21
multi-function wood stove ©GoodCreativeIdeaDmkt https://youtu.be/e-iaZx0mV5Q #DIY#fire
@Dulirenorg · Post #721 · 23.06.2020 г., 12:03
👉来源:https://weblife.org/capturing_heat/pdf/capturing_heat.pdf #DIY#fire
@IOSTelegramThemes · Post #132 · 25.09.2019 г., 17:19
Fire Theme #Night#Black#Orange#Fire 🆔@IOSTelegramThemes
@Dulirenorg · Post #380 · 09.07.2019 г., 16:11
#shelter🏕🏡#fire🔥 题图:📺 Doomsday Preppers Season 1
@Dulirenorg · Post #468 · 03.08.2019 г., 09:06
#cooking#fire🔥 ✏️ ⓵ 自工业革命以后,尽管科技长足发展,但人类烹饪的过程依旧惊人地低效。 ⓶ 改良的生物质燃炉可以达到两倍,甚至三倍于现代厨房新式炉灶的热效率。 ⓷ 究其本质,任何形式的电热炉不过是某种热力学的隔热层而已。 ⓸ 新式炉灶与管理得当的石堆土灶,其二者的污染水平等量齐观。 https://telegra.ph/thermal-efficiency-cooking-stoves-08-03
@bestwallpapes · Post #3811 · 29.12.2025 г., 05:19
@Bestwallpapes #Fire#Smoke
@TFGames · Post #2087 · 03.02.2024 г., 18:16
#MATR1X#FIRE https://testflight.apple.com/join/sbcgVDSl
@knaufuzbekistan · Post #969 · 22.09.2025 г., 04:00
QARANG, FVVda qanday rolik ko‘rdik! Har kuni yangiliklarda yong‘inlar haqida eshitamiz. Lekin, bilasizmi, eng dahshatlisi nimada? O‘t-olovning o‘zi emas, balki odamlar ko‘p hollarda qanday qutulishni bilmasligidadir. FVV ogohlantirmoqda: yong‘inlar siz o‘ylagandan ko‘ra ko‘proq ro‘y beryapti. Bunday vaziyatlarda nafaqat yong‘inni o‘chirish, balki o‘t o‘chog‘idan tez evakuatsiya qilish ham juda muhim. HAR BIR daqiqa siz va yaqinlaringiz hayotini hal qiladi. Yong‘inni oldini olish va yong‘in sodir bo‘lganda qanday harakat qilish kerakligini bilish uchun FVVning videosini tomosha qiling. Bu ma’lumot hayotingizni saqlab qolishi mumkin. O‘zingizni asrang. Xavfsizlikni tanlang. - - - - - Текст на русском @fvvmchs @FVV.Uzbekiston #knaufuzbekistan #saveyourlife #fire #KNAUF_YongingaChidamlilik
@bestwallpapes · Post #3069 · 25.11.2024 г., 06:50
@Bestwallpapes #Fire#Snow#Forest