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

Резултати

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

Пребарај: #alpha

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

@proanalysistrader · Post #28355 · 24.12.2024 г., 13:46

#ALPHA/USDT analysis : #ALPHA is currently in an uptrend, forming higher highs (HHs) and higher lows (HLs). The price has retraced to a support zone, and a bounce back is anticipated, with expectations to test previous highs. TF : 1D Entry : $0.0870 Target : $0.1340 SL : $0.0674

Hashtags

Pro Analysis

@proanalysistrader · Post #27943 · 18.09.2024 г., 14:26

#ALPHA/USDT analysis : #ALPHA is presently in a downtrend, trading below the 200 EMA. The price is establishing a pattern of lower lows and lower highs. Currently, it encounters resistance near the 200 EMA, indicating a possible continuation of its bearish trend and a retest of previous lows. TF : 4h Entry : $0.0558 Target : $0.0520 SL : $0.0584

Hashtags

American Crypto©

@americancryptotrading · Post #27104 · 01.01.2025 г., 17:54

🇺🇸#ALPHA/USDT is heading towards the descendingtriangle pattern on the weekly timeframe👀 Breakout - Retest - Go🐃 American Crypto©

Hashtags

Coinlegs Cryptocurrency Signals

@coinlegs · Post #9322 · 05.11.2023 г., 13:44

Custom Signal: Combination of 👉 Double Bottom 👉 Bollinger Breakout 👉 Trend Line Breakout We expect the price goes up after double bottom but we can’t trade by using only double bottom pattern. We look for another bullish moves like bollinger or trend line breakout. What if double bottom, Trend Line Breakout and Bollinger Breakout occur for any asset and it’s price hasn’t risen yet Bingo !! #ALPHA did 15% in just 3 hours 👌 Just check the chart, let’s create custom signal

Hashtags

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