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

Резултати

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

Пребарај: #fxs

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

@proanalysistrader · Post #28380 · 09.01.2025 г., 14:08

#FXS/USDT analysis : #FXS has broken below the 200 EMA and the support zone. It is advisable to wait for a price retest of this zone for a potential short entry, as the price is anticipated to decline further, targeting lower levels. TF : 4h Entry : $3.455 Target : $2.400 SL : $3.945

Hashtags

Pro Analysis

@proanalysistrader · Post #28320 · 07.12.2024 г., 02:39

#FXS/USDT analysis : #FXS has successfully broken out and retested the swing high resistance following the breakout of the trendline in an established uptrend. The price is expected to sustain its bullish momentum and aim for previous highs. TF : 30min Entry : $4.762 Target : $5.080 SL : $4.526

Hashtags

Pro Analysis

@proanalysistrader · Post #28107 · 02.11.2024 г., 12:08

#FXS/USDT analysis : #FXS is currently in a downtrend and is expected to maintain its bearish momentum. For a short entry, wait for the price to break the current support zone, entering on a break below the $1.814 level. The previous lows will serve as target levels. TF : 15min Entry : $1.814 Target : $1.797 SL : $1.826

Hashtags

Pro Analysis

@proanalysistrader · Post #27911 · 07.09.2024 г., 16:20

#FXS/USDT analysis : #FXS is in a downtrend, forming lower lows (LLs) and lower highs (LHs) structure. The price is currently trading in the resistance zone near the 200 EMS. It is expected to be rejected from that area and continue its bearish momentum. TF : 30min Entry : $1.734 Target : $1.651 SL : $1.792

Hashtags

American Crypto©

@americancryptotrading · Post #27455 · 30.11.2025 г., 11:39

🇺🇸#FXS/USDT is trading near the lowerborder of the fallingwedge formation on the weekly chart💁‍♂️ A great moment to accumulate📈 American Crypto©

Hashtags

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