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

Резултати

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

Пребарај: #rootdata

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

@CryptoM · Post #65124 · 11.04.2026 г., 06:15

🚀 Immutable X to Unlock 9.62 Million Tokens on April 18 Immutable X (IMX) is set to unlock approximately 9.62 million tokens on April 18 at 8 a.m. UTC+8. According to ChainCatcher, this information comes from Web3 asset data platform RootData's token unlocking data. #ImmutableX#IMX#TokenUnlock#Web3#Crypto#Blockchain#RootData#ChainCatcher

Crypto M - Crypto News

@CryptoM · Post #65381 · 13.04.2026 г., 03:24

🚀 Kaito Token Unlock Scheduled for April 20 Kaito is set to unlock approximately 12.11 million tokens on April 20 at 12:00 PM UTC+8. According to ChainCatcher, this token release is part of the Web3 asset data platform RootData's schedule. The unlocked tokens are valued at around $4.86 million. #Kaito#TokenUnlock#Web3#RootData#Crypto#Blockchain#TokenRelease#April20#KAITO

Crypto M - Crypto News

@CryptoM · Post #64494 · 09.04.2026 г., 03:15

🚀 VANA Token Unlock Scheduled for April 16 VANA is set to unlock approximately 2.57 million tokens on April 16 at 19:00 UTC+8. According to ChainCatcher, this token release is valued at around $3.36 million, based on data from the Web3 asset data platform RootData. #VANA#Token#Unlock#April16#Crypto#Blockchain#Web3#RootData#ChainCatcher

Crypto M - Crypto News

@CryptoM · Post #64835 · 10.04.2026 г., 03:16

🚀 Infrared to Unlock 27.64 Million Tokens on April 17 Infrared (IR) is set to unlock approximately 27.64 million tokens on April 17 at 0:00 UTC+8. According to ChainCatcher, this information comes from the Web3 asset data platform RootData's token unlocking data. The unlocked tokens are valued at around $1.01 million. #Infrared#tokenunlocking#Web3#ChainCatcher#RootData#cryptocurrency#April17#digitalassets

Crypto M - Crypto News

@CryptoM · Post #65234 · 12.04.2026 г., 07:05

🚀 Sign Partner Sarah to Attend Hong Kong Forum on Crypto and Smart Economy Sign partner Sarah is set to participate in the 'Crypto 2026: From Cryptocurrency to Smart Economy' forum in Hong Kong on April 19. According to ChainCatcher, she will join a roundtable discussion at this event, which is organized by ChainCatcher in collaboration with RootData and is part of the Hong Kong Web3 Carnival. Sign is developing a global distribution platform for premium services and assets. Its first product, EthSign, enables users to sign legally binding agreements using public keys, creating verifiable contract consent records on the blockchain. The second product, TokenTable, assists Web3 projects in efficiently executing, tracking, and managing token distribution processes. The forum will focus on the paradigm shift resulting from the deep integration of AI technology and crypto networks, with in-depth discussions on AI Agent economy, smart payments, RWA, and crypto infrastructure. Positioned at the intersection of technological transition and economic restructuring, this forum aims to provide insights into the current state of the industry and offer forward-thinking perspectives on the future of smart economic systems. #Crypto2026#SmartEconomy#Web3#AI#Blockchain#Cryptocurrency#SmartPayments#TokenDistribution#EthSign#TokenTable#CryptoInfrastructure#HongKongForum#AIAgentEconomy#RWA#TechnologicalTransition#EconomicRestructuring#ChainCatcher#RootData#Web3Carnival

Crypto M - Crypto News

@CryptoM · Post #65295 · 12.04.2026 г., 15:15

🚀 Crypto Analyst Manya Releases Research Tool Rankings Crypto analyst manya has released a ranking of personal research tools. According to ChainCatcher, the rankings categorize tools into different levels based on their effectiveness. The S-tier includes Dune and frontrun.pro, while the A-tier features Coinglass, RootData, Drop, MetaSleuth, and DefiLlama. B-tier tools comprise Arkham, Bubblemaps, Dexscreener, Surf, Nansen, and CoinMarketCap. C-tier tools include Cryptorank and others. #CryptoAnalyst#ResearchTools#CryptoRanking#Dune#frontrunpro#Coinglass#RootData#Drop#MetaSleuth#DefiLlama#Arkham#Bubblemaps#Dexscreener#Surf#Nansen#CoinMarketCap#Cryptorank