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

Резултати

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

Пребарај: #ont

当前筛选 #ont清除筛选
Coin Sonar

@CoinSonar · Post #243936 · 18.04.2026 г., 02:52

#ONT | Volume spike (USDT PAIR) 9 times the average volume 1.17M USDT traded in 15 min └Buying vol: 692.98K USDT 🟢 Boost score: 2/10 24h Vol: 11.63M USDT (Binance) Price: 0.0929 (-14.1% in 24h)

Hashtags

Pro Analysis

@proanalysistrader · Post #28367 · 05.01.2025 г., 13:18

#ONT/USDT analysis : #ONT has successfully broken out and is currently testing a previously respected resistance zone. The price has rebounded from this zone, and it is expected to resume its upward momentum, aiming to test previous highs. TF : 1D Entry : $0.2595 Target : $0.3900 SL : $0.2050

Hashtags

Pro Analysis

@proanalysistrader · Post #27770 · 28.07.2024 г., 16:54

#ONT/USDT analysis - #ONT be in downtrend trading below 200ema. After a corrective pullback, price retraced to 200ema and getting rejected. It is expected to drop from current level and test previous lows. TF : 4H Entry : $0.2013 Target : $0.1597 SL : $0.2125

Hashtags

American Crypto©

@americancryptotrading · Post #27278 · 12.06.2025 г., 10:04

🇺🇸#ONT/USDT is trading below the descendingresistance on the daily timeframe👀 A breakout is on the way🚀 American Crypto©

Hashtags

Crypto GALAXY

@crypto_galaxy_signals · Post #1283 · 13.04.2024 г., 12:06

Coin: #ONT/USDT Direction: Long Leverage: 20x - Cross ----------------------------------- TAKE-PROFIT: 1 - 0,32298 ✔️ 2 - 0,32697 ✔️ 3 - 0,33495 ✔️ 4 - 0,35090 ✔️ 5 - 0,38280 ✔️ 6 - 0,41470 ✔️ 7 - 0,44660 ✔️ 8 - 0,47850 ✔️ ✨ All TP Targets achieved 🔥Profit: 1000.00%🔥 💬Contact & VIP Support

Hashtags

12
ПретходнаСтраница 1 од 2Следна