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

Резултати

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

Пребарај: #xlm

当前筛选 #xlm清除筛选
Pro Analysis

@proanalysistrader · Post #28537 · 13.03.2025 г., 03:30

#XLM/USDT analysis : #XLM is in an uptrend, trading above the 200-day EMA on the daily timeframe. The price has tested the support zone and 200-day EMA, and it is expected to rebound from the current level and move upside to test higher levels. For a long entry, wait for the price to break above the $0.2760 level. TF : 1D Entry : $0.2764 Target : $0.6374 SL : $0.2094

Hashtags

Pro Analysis

@proanalysistrader · Post #28490 · 21.02.2025 г., 15:22

#XLM/USDT analysis : #XLM is in an uptrend, forming higher highs (HHs) and higher lows (HLs) above the 200 EMA. The price has retested the 200 EMA and is anticipated to rebound, resuming its bullish momentum to test swing high levels. For a long entry, it is recommended to wait for a breakout above the $0.3751 level. TF : 1D Entry : $0.3751 Target : $0.6374 SL : $0.2764

Hashtags

Pro Analysis

@proanalysistrader · Post #27761 · 17.07.2024 г., 17:09

#XLM/USDT analysis - #XLM recently broke above the 200 EMA with strong momentum. The next move might be a retest of this level and a test of the support zone. Look for a pullback near the 200 EMA for a potential long entry. The previous resistance zone could serve as the target level. TF : 4h Entry : $0.0937 Target : $0.1198 SL : $0.0863

Hashtags

American Crypto©

@americancryptotrading · Post #27579 · 05.04.2026 г., 09:35

🇺🇸#XLM/USDT is currently forming the descendingchannel formation on the 3D timeframe🔍 Accumulate before the rocket takes off✈️ American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27489 · 02.01.2026 г., 10:30

🇺🇸#XLM/USDT is trading inside the descendingchannel on the 2D chart👨‍💻 Bullish on a breakout🚀 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27390 · 28.09.2025 г., 08:30

🇺🇸#XLM/USDT is holding above the broken s/rzone on the daily chart🔥 Bullish📈 American Crypto©

Hashtags

123•••56
ПретходнаСтраница 1 од 6Следна