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 слични објави

Пребарај: #openinterest

当前筛选 #openinterest清除筛选
Crypto M - Crypto News

@CryptoM · Post #64765 · 09.04.2026 г., 20:19

🚀 Bitcoin and Ethereum Futures Open Interest Surge Amid Improved Macro Sentiment Bitcoin and Ethereum perpetual futures have seen a significant increase in open interest, rising by $2.1 billion and $2.2 billion respectively over the past 24 hours. According to NS3.AI, CoinGlass data indicates that Bitcoin's open interest has reached its highest level in over two months, while Ethereum's open interest is at its peak for approximately three weeks. CryptoQuant attributes this positioning build to an improved macroeconomic sentiment following a conditional ceasefire agreement between the U.S. and Iran. #Bitcoin#Ethereum#Futures#OpenInterest#Crypto#MacroSentiment#USIran#CryptoTrading#BTC#ETH

Venture Village Wall 🦄

@venturevillagewall · Post #4316 · 05.03.2025 г., 22:00

U.S. Releases Seized Crypto Mining Machines U.S. authorities begin releasing seized Chinese-made cryptocurrency mining machines, totaling up to 10,000 units at various ports. Synteq Digital's CEO notes resistance from some CBP officials towards Bitcoin mining, hindering the industry's growth. 🔗Read more In related news, BioNexus Gene Lab approves Ethereum as its treasury asset; Bitcoin open interest reaches lowest since August; and Bitwise files for Aptos ETF. 🔗BioNexus News 🔗Bitcoin Open Interest 🔗Bitwise Filing #Crypto#Bitcoin#Ethereum#Mining#BioNexus#Aptos#ETF#VC#Blockchain#Finance#Investment#DeFi#Securities#Regulation#Innovation#MarketTrends#OpenInterest#USeconomy

Crypto M - Crypto News

@CryptoM · Post #64702 · 09.04.2026 г., 15:05

🚀 Bitcoin Call Options Surge with $80,000 Strike Price Bitcoin call options with an $80,000 exercise price for the end-of-June expiry have reached over $1.6 billion in notional open interest, marking the largest concentration among strike prices. According to NS3.AI, this development reflects traders' anticipation of significant price movements, as evidenced by the rise in implied volatility. #Bitcoin#CallOptions#StrikePrice#OpenInterest#Volatility#Cryptocurrency#Trading#BitcoinOptions#BTC

Crypto M - Crypto News

@CryptoM · Post #65139 · 11.04.2026 г., 11:24

🚀 Bitcoin Futures Open Interest Hits 14-Month Low Amid Institutional Strategy Shift On April 11, the open interest in Chicago Mercantile Exchange (CME) Bitcoin futures fell to $8.41 billion, marking its lowest level in 14 months. According to BlockBeats, Glassnode analysts attribute this decline primarily to the unwinding of basis trades. Previously, this strategy involved establishing long positions through spot ETFs and hedging with short futures to earn the spread. However, the annualized returns have recently dropped from 15%-20% to around 5%, prompting institutions to take profits. Additionally, the daily trading volume of CME Bitcoin futures has decreased to below $3 billion. Analysts suggest that as institutional demand shifts towards directly holding spot assets, the leverage in the futures market is significantly decreasing. #BitcoinFutures#OpenInterest#CME#BasisTrades#InstitutionalStrategy#SpotETFs#FuturesMarket#Leverage#TradingVolume#BlockBeats#Glassnode#CryptoMarket#BTC