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

Пребарај: #aavepro

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

@CryptoM · Post #65346 · 13.04.2026 г., 01:44

🚀 Aave's Strategic Shift Following AWW Proposal Approval Aave founder Stani recently shared insights on X regarding the strategic direction following the approval of the AWW proposal. According to ChainCatcher, Stani emphasized that Aave will adopt a model centered entirely around the $AAVE token. This approach grants holders not only economic rights within the protocol but also influence over the brand, user base, and integrated ecosystem. Revenue from all applications and products, including Aave Pro, Aave App, Horizon, and Aave Kit, will be redirected to the DAO treasury. Additionally, the exchange functions of Aave.com and Aave Pro have generated an extra $10 to $20 million in new income. On the product front, the Aave App aims to deliver a fintech-grade experience to attract millions of users, offering each a $1 million account guarantee and plans to introduce a bank card. Aave Pro targets advanced users, while Horizon expands support for real-world assets (RWA). Stani highlighted the goal of growing Aave from a $40 billion protocol to over $1 trillion, positioning it as the foundational credit and repo market for the entire $400 trillion traditional financial asset sector. #Aave#Stani#AAVEtoken#DAO#AavePro#AaveApp#Horizon#RWA#fintech#cryptomarket#financialecosystem#tokenomics#blockchain#crypto#DeFi