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

Резултати

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

Пребарај: #bearish

当前筛选 #bearish清除筛选
Venture Village Wall 🦄

@venturevillagewall · Post #4109 · 09.02.2025 г., 22:00

Bitcoin Market Sentiment Divided Bitcoin hovers at $95,000, creating uncertainty in the market. Opinions diverge on whether the bullish cycle has ended or will continue. A livestream discussion on February 10 will explore market conditions, investment opportunities, and potential alt seasons. For more details, join us at Impact • crypto alpha. Additionally, TON token market experiencing volatility. A new project, TWAPs, offers automated trading strategies to help manage transactions effectively. Learn more at twaps.tonde.fi. #Bitcoin#Crypto#Market#Investment#Trading#TWAP#TON#AltSeason#Blockchain#Fintech#Volatility#CryptoMarket#Senate#Texas#Legislation#Automation#SmartContracts#Investing#Finance#Bullish#Bearish

Venture Village Wall 🦄

@venturevillagewall · Post #4156 · 15.02.2025 г., 04:00

Milei Denies Connection to LIBRA Token Javier Milei claims he has no ties to the $LIBRA token, indicating he was unaware of it. Reports emerge of insider trading linked to LIBRA, amounting to over $20 million in profits before and after a key tweet. Meanwhile, the Wisconsin Pension Fund raises its Bitcoin holdings to $321 million, while the National Bank of Canada adopts a bearish stance, exercising a sell option on Bitcoin ETF shares worth over $1.3 million. 🔗 More details: - Milei denied connections - Senate investigates Pantera Capital - Insider trading profits from LIBRA - LIBRA price drop and withdrawals - Wisconsin Pension Fund's Bitcoin increase - National Bank of Canada's Bitcoin sell option #Milei#LIBRA#Crypto#Bitcoin#Pantera#Investigation#CEX#TaxLaws#Wisconsin#NationalBank#SEC#Bearish#ETF#ArkInvest#CapitalGains#MarketTrends#Profit#Trading#USDC#SOL

Venture Village Wall 🦄

@venturevillagewall · Post #3760 · 31.12.2024 г., 13:00

XRP Market Insights and Predictions 📉 Current XRP Price: $2.16 with a $123B market cap. Trading volume: $2.21B. 📊Consolidation Phase: Support at $2.1, resistance at $2.5. RSI: 49.81 | Stochastic: 26.35 | CCI: -95.21. Mixed signals overall, MACD suggests bearish sentiment. 🔄Short-term Downtrend: Testing support at $2.115; resistance at $2.22 - $2.25. EMAs indicate sell signals for 10- and 20-periods. 📈Bullish/ Bearish Scenarios: Break above $2.25 targets $2.5; break below $2.1 targets $1.9. Traders should implement tight stop-losses. Full analysis details can be read here. #XRP#Crypto#MarketAnalysis#TradingStrategy#Investing#TechnicalAnalysis#PricePrediction#Bullish#Bearish#Support#Resistance#EMAs#MACD#RSI#Stochastic#CCI#Volume#Traders#Bulls#Bears#Consolidation

Elf Crypto VIP

@elfcryptovip · Post #12659 · 11.05.2026 г., 10:34

📍 List of abbreviations commonly used in cryptocurrency trading: #ALTCOIN = Alternate cryptocurrency except bitcoin #SHITCOIN = A coin with no potential value or use #BEAR | #BEARISH = Negative price movement #BULL | #BULLISH = Positive price movement #LONG = Margin buy position #SHORT = Margin sell position #BTFD = Buy The Fucking Dip #DILDO = Long green or red candles 😆 #DYOR = Do Your Own Research #FA = Fundamental Analysis #TA = Technical Analysis #FOMO = Fear Of Missing Out #JOMO = Joy Of Missing Out #FUD = Fear Uncertainty & Doubt #HODL = Hold a position #MCAP = Market Capitalization #MOON = Continuous upward movement of price #OTC = Over The Counter #PUMP = Upward price movement #DUMP = To sell off a coin #REKT = When you have a bad loss #WHALE = Very wealthy trader/Market mover #AMA = Ask me anything #ATH = All Time High #ATL = All Time Low #DLT = Distributed ledger technology #IMO = In My Opinion #LAMBO = Lambo is symbol that becomes an elusive goal for most investors #NOOB = A person who is inexperienced #SAFU = Secure Asset Funds for Users #SHILL = Holder of altcoin who just wants to promote it for his own benefit ✅@ElfCryptoVIP