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

Резултати

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

Пребарај: #cryptolongs

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

@CryptoM · Post #64554 · 09.04.2026 г., 07:45

🚀 Abraxas Capital's Oil Short Positions Recover Following Ceasefire Announcement On April 9, Hyperinsight reported significant financial recovery for Abraxas Capital, a major oil short institution on the Hyperliquid platform. According to BlockBeats, the recovery occurred within a week following the announcement of a ceasefire, with funds rebounding by over $12 million. The combination of oil shorts and crypto longs, which previously faced a floating loss of $9.7 million, has now turned profitable. As of the latest update, the two addresses continue to synchronize profit-taking and position reduction, maintaining a floating profit of $8.7 million. Following the recent reduction in positions, the total holding size remains at $152 million. This includes approximately $126 million in short positions on U.S. and Brent crude oil, and $26.1 million in long positions in the crypto market. Details of the oil short positions are as follows: Brent Oil shorts (5x leverage) have decreased from $92 million to $78 million, with an average price of around $96. WTI Crude shorts (5x leverage) have reduced from $51 million to $48.5 million, with an average price of approximately $95. Addresses involved are 0x5b5d51203a0f9079f8aeb098a6523a13F298C060 and 0xb83de012dba672c76a7dbbbf3e459cb59d7d6e36. #AbraxasCapital#OilShortPositions#CeasefireAnnouncement#FinancialRecovery#Hyperinsight#BlockBeats#CryptoLongs#ProfitTaking#WTICrude#BrentOil#OilMarket#LeverageTrading#PositionReduction#FloatingProfit#CryptoMarket#U.S.Crude