@bestwallpapes · Post #3332 · 01.04.2025 г., 13:36
@Bestwallpapes #Food#Yummy
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
Пребарај: #yummy
@bestwallpapes · Post #3332 · 01.04.2025 г., 13:36
@Bestwallpapes #Food#Yummy
@instavine · Post #1084 · 11.03.2017 г., 14:00
#food#yummy#hungry🍿🍬 ------------ @instavine
@TgDict · Post #212 · 08.11.2023 г., 15:44
#food#picture#yummy https://t.me/fporn https://t.me/restaurantfood https://t.me/onlyfood https://t.me/dailyfoodporn https://t.me/foodovik https://t.me/foodrumedia https://t.me/aiqing
@ThemesM8 · Post #293 · 04.05.2022 г., 17:50
https://t.me/addtheme/Cookies_ThemesM8 🍬@ThemesM8🍭 #light#android#desktop#cookie#cookies#cute#pastel#sweet#white#green#yummy#colors#colorful#theme#themes#telegram_theme
@cookingdish · Post #577 · 11.11.2024 г., 15:21
Caramelized Shallots Pumpkin Pasta 🎃🍝 Recipe for 2 servings Ingredients: - 1/2 Hokkaido pumpkin 🎃 - 250 g pasta 🍝 - 250 g shallots 🧅 - Vegan butter for frying 🧈 - 25 ml maple syrup 🍁 - 100 g vegan cream cheese 🌱 - 300 ml vegetable stock 🥕🍲 - Pinch of salt and pepper 🧂 Toppings - Parsley, chopped 🌿 Preparation: 1. Dice the pumpkin and blanch for 10 minutes 🍲 2. Cook the pasta 🍝 3. Fry the shallots in butter, add maple syrup for a caramelized touch 🍁🧅 4. Deglaze with vegetable stock, add the pumpkin, stir, and simmer briefly 🎃🍲 5. Stir in the cream cheese, then mix in the pasta 🌱🍝 6. Top with fresh parsley and enjoy! 🌿✨ #VeganPasta#PumpkinSeason#CaramelizedShallots#ComfortFood#FallRecipes#PlantBased#EasyMeals#Yummy#PastaNight @dishes
@the_intelligent_investors · Post #1194 · 14.02.2024 г., 04:23
💎hadyo com | JBEZOS029 🎉#reels#top#reelsinstagram#trends#best#fyp#trendingreels#reelsinsta#usa#newyorknewyork#repost#regrann#youtube#yoga#yummy#newyork#foryou#cryptocurrency#crypto