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

Резултати

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

Пребарај: #shibarmy

当前筛选 #shibarmy清除筛选
🚀🚀The intelligent investors💯💯

@the_intelligent_investors · Post #1177 · 01.02.2024 г., 15:32

$WOOFS #SHIBARMY! 👉 $WOOFS is building a utility Platform “Woof Tools” Web3 Crypto freelance marketplace and ecosystem, it’ll facilitate rewards, including the Woofserral Program and the Dogshouse Staking Program. Max Supply: 7,900,000,000 Platform taxes in $WOOFS will have 0% fees • $WOOFS is an ERC-20 token • $WOOFS liquidity locked • $WOOFS will transition to Shibarium network (L2) with token swap WOOFS LP IS LIVE 👉https://legacy.gempad.app/presale/0xCde126D98f6bEb7e948B0e1E5755d879a83EeC3c?chainId=1 WOOFS PARTNERS 👉 $XFUND, $WOOFS, Shibarium, Unification, UNoDes, OoO, ShibaSwap, KyberSwap, Goplusecurity TG : https://t.me/woof_tools Web : https://wooftools.io/

Hashtags

🚀🚀The intelligent investors💯💯

@the_intelligent_investors · Post #1064 · 04.09.2023 г., 13:20

🐾 Hey, #SHIBARMY, listen up! 📢 🚀🪐 Level up your crypto game with WOOFTools: the ultimate trading solution❣️ 📈 Real-time crypto prices? ✅ 💼 Easy DEFI portfolio management? 💥 🔔 Customizable price alerts? ✅ 💰 Exclusive rewards with $WOOFS? 🌐🇨🇳 Say goodbye to complicated platforms - WOOFTools has your back! 😎 🌐 Seamless integration, all in one place! No more jumping around. Trade like a pro with ease. Ready to rock the cryptocurrency world? 🔥🔥 Join the WOOFTools community now! The First DEX for #Shibarium in real time! 🌐 Website: https://wooftools.io 📢 Telegram: https://t.me/Woof_Tools 🇨🇳Chinese 💬: https://t.me/wooftoolsChinese $WOOFS will be released on IDO this Q3, early access on Telegram group ! Unleash your trading potential and stay ahead of the curve! 📈💥 #WOOFTools#Crypto#DeFi#TradingRevolution#ShibArmy #Shibarium Nfa DYOR

Ganar Dinero Seguro

@ganardineroseguro · Post #740 · 07.10.2021 г., 23:28

The Crypto Prophet (@ShibaProphet) Tweeted: The 2nd Parabolic is Starting Buckle up. It's going higher than before #Shiba#SHIB#ShibaCoin#SHIBARMY#shibainu#shibainu#ShibaSwap#SHIBDELETEAZERO#shibarium#ShibaProphethttps://t.co/uxWOszyTh5https://twitter.com/ShibaProphet/status/1446214042071277572?s=20