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

Резултати

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

Пребарај: #coti

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

@proanalysistrader · Post #28427 · 26.01.2025 г., 14:53

#COTI/USDT analysis : #COTI is currently forming higher highs (HHs) and higher lows (HLs) along the trendline. The price is consolidating above this trendline, suggesting a potential bounce back and a test of higher levels. TF : 1W Entry : $0.10200 Target : $0.18200 SL : $0.07670

Hashtags

Pro Analysis

@proanalysistrader · Post #28282 · 29.11.2024 г., 11:03

#COTI/USDT analysis : #COTI is in an uptrend, forming a structure of higher highs (HHs) and higher lows (HLs). The price has broken out and successfully retested the trendline, continuing its bullish trajectory. Currently, the price is trading above a minor resistance zone, which has now become a buy zone. It is anticipated that the price will rise further and test higher levels. TF : 1H Entry : $0.14450 Target : $0.16145 SL : $0.13292

Hashtags

American Crypto©

@americancryptotrading · Post #27541 · 21.02.2026 г., 10:43

🇺🇸#COTI/USDT has found support at the lowerboundary of the descendingchannel pattern on the weekly timeframe💁‍♂️ Time to bounce and rally✈️ American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27488 · 01.01.2026 г., 11:17

🇺🇸#COTI/USDT is attempting to rebound from the lowerborder of the descendingchannel formation on the weekly chart🧐 More upside is likely🐃 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27374 · 13.09.2025 г., 09:29

🇺🇸#COTI/USDT is on the verge of a breakout from the descendingchannel formation on the daily timeframe👨‍💻 The rally is coming📈 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27317 · 20.07.2025 г., 08:45

🇺🇸#COTI/USDT is holding above the lowerboundary of the descendingtriangle on the weekly chart👨‍💻 Up we go🐃 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27185 · 15.03.2025 г., 14:32

🇺🇸#COTI/USDT is maintaining position above the lowerborder of the symmetricaltriangle formation on the weekly timeframe🔍 Strong upside potential on a bounce✈️ American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27181 · 11.03.2025 г., 14:22

🇺🇸#COTI/USDT is consolidating near the s/r zone on the weekly chart🧐 Bullish case if we bounce off the one🚀 American Crypto©

Hashtags

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