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

Резултати

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

Пребарај: #cet

当前筛选 #cet清除筛选
CoinEx_Announcement

@coinex_announcement · Post #9435 · 06.02.2026 г., 08:27

🔥 CoinEx continues to deliver on its promise! 🔥 💵$CET's 1st Monthly Repurchase & Burn 🔥 of 2026 is complete: 🔥🔥🔥🔥🔥🔥🔥🔥 🪙 Repurchased & Burned $CET: 13.4 M $CET 💰 Remaining $CET: 2.53 B $CET (25.3%~) 🔥🔥🔥🔥🔥🔥🔥🔥 In line with our commitment, we continue daily #CET repurchases & monthly token burns to maintain the #CoinEx deflationary mechanism.🌐 🖐 Find the details HERE 🎯 Why Hold $CET? $CET isn’t just a token — it’s your key to the CoinEx ecosystem! ✅ Trading fee discounts ✅ VIP privileges & exclusive promos ✅ Daily interest rate discount in Margin borrow ✅ Daily buybacks & monthly burns ✅ Referral ratio upgraded, with up to 40% rewards ✅ Exclusive promotional privileges: ✅ CET Staking ✅ CoinEx Mining As CoinEx grows, so does CET’s utility and value. Find CoinEx: 🌐Web ❌𝕏 ✉️Telegram ✈Announcement 🛜Discord

Hashtags

CoinEx_Announcement

@coinex_announcement · Post #9245 · 03.12.2025 г., 09:05

🔥 CoinEx continues to deliver on its promise! 🔥 💵$CET's 11th Monthly Repurchase & Burn 🔥 of 2025 is complete: 🔥🔥🔥🔥🔥🔥🔥🔥 🪙 Repurchased & Burned $CET: 16.9 M $CET 💰 Remaining $CET: 2.56 B $CET (25.6%~) 🔥🔥🔥🔥🔥🔥🔥🔥 In line with our commitment, we continue daily #CET repurchases & monthly token burns to maintain the #CoinEx deflationary mechanism.🌐 🖐 Find the details HERE 🎯 Why Hold $CET? $CET isn’t just a token — it’s your key to the CoinEx ecosystem! ✅ Trading fee discounts ✅ VIP privileges & exclusive promos ✅ Daily interest rate discount in Margin borrow ✅ Daily buybacks & monthly burns ✅ Referral ratio upgraded, with up to 40% rewards ✅ Exclusive promotional privileges: ✅ CET Staking ✅ CoinEx Mining As CoinEx grows, so does CET’s utility and value. Find CoinEx: 🌐Web ❌𝕏 ✉️Telegram ✈Announcement 🛜Discord

Hashtags

CoinEx_Announcement

@coinex_announcement · Post #9133 · 03.11.2025 г., 09:59

🔥 CoinEx continues to deliver on its promise! 🔥 💵$CET's 10th Monthly Repurchase & Burn 🔥 of 2025 is complete: 🔥🔥🔥🔥🔥🔥🔥🔥 🪙 Repurchased & Burned $CET: 16.9 M $CET 💰 Remaining $CET: 2.57 B $CET (25.7%~) 🔥🔥🔥🔥🔥🔥🔥🔥 In line with our commitment, we continue daily #CET repurchases & monthly token burns to maintain the #CoinEx deflationary mechanism.🌐 🖐 Find the details HERE 🎯 Why Hold $CET? $CET isn’t just a token — it’s your key to the CoinEx ecosystem! ✅ Trading fee discounts ✅ VIP privileges & exclusive promos ✅ Daily interest rate discount in Margin borrow ✅ Daily buybacks & monthly burns ✅ Referral ratio upgraded, with up to 40% rewards ✅ Exclusive promotional privileges: ✅ CET Staking ✅ CoinEx Mining As CoinEx grows, so does CET’s utility and value. Find CoinEx: 🌐Web ❌𝕏 ✉️Telegram ✈Announcement 🛜Discord

Hashtags

CoinEx_Announcement

@coinex_announcement · Post #8834 · 02.09.2025 г., 13:05

🔥 CoinEx continues to deliver on its promise! 🔥 💵$CET's 8th Monthly Repurchase & Burn 🔥 of 2025 is complete: 🔥🔥🔥🔥🔥🔥🔥🔥 🪙 Repurchased & Burned $CET: 22.2 M $CET 💰 Remaining $CET: 2.61 B $CET (26.1%~) 🔥🔥🔥🔥🔥🔥🔥🔥 In line with our commitment, we continue daily #CET repurchases & monthly token burns to maintain the #CoinEx deflationary mechanism.🌐 🖐 Find the details HERE 🎯 Why Hold $CET? $CET isn’t just a token — it’s your key to the CoinEx ecosystem! ✅ Trading fee discounts ✅ VIP privileges & exclusive promos ✅ Daily interest rate discount in Margin borrow ✅ Daily buybacks & monthly burns ✅ Referral ratio upgraded, with up to 40% rewards ✅ Exclusive promotional privileges: ✅ CET Staking ✅ CoinEx Mining As CoinEx grows, so does CET’s utility and value. Find CoinEx: 🌐Web ❌𝕏 ✉️Telegram ✈Announcement 🛜Discord

Hashtags

CoinEx_Announcement

@coinex_announcement · Post #8692 · 03.08.2025 г., 20:23

🔥 CoinEx continues to deliver on its promise! 🔥 💵$CET's 7th Monthly Repurchase & Burn 🔥 of 2025 is complete: 🔥🔥🔥🔥🔥🔥🔥🔥 🪙 Repurchased & Burned $CET: 17.45 M $CET 💰 Remaining $CET: 2.632 B $CET (26.3%~) 🔥🔥🔥🔥🔥🔥🔥🔥 In line with our commitment, we continue daily #CET repurchases & monthly token burns to maintain the #CoinEx deflationary mechanism.🌐 🖐 Find the details HERE 🎯 Why Hold $CET? $CET isn’t just a token — it’s your key to the CoinEx ecosystem! ✅ Trading fee discounts ✅ VIP privileges & exclusive promos ✅ Daily interest rate discount in Margin borrow ✅ Daily buybacks & monthly burns ✅ Referral ratio upgraded, with up to 40% rewards ✅ Exclusive promotional privileges: ✅ CET Staking ✅ CoinEx Mining As CoinEx grows, so does CET’s utility and value. Find CoinEx: 🌐Web ❌𝕏 ✉️Telegram ✈Announcement 🛜Discord

Hashtags

CoinEx_Announcement

@coinex_announcement · Post #8523 · 02.07.2025 г., 10:49

🔥 CoinEx continues to deliver on its promise! 🔥 💵$CET's 6th Monthly Repurchase & Burn 🔥 of 2025 is complete: 🔥🔥🔥🔥🔥🔥🔥🔥 🪙 Repurchased & Burned $CET: 9.89 M $CET 💰 Remaining $CET: 2.649 B $CET (26.5%~) 🔥🔥🔥🔥🔥🔥🔥🔥 In line with our commitment, we continue daily #CET repurchases & monthly token burns to maintain the #CoinEx deflationary mechanism.🌐 🖐 Find the details HERE 🎯 Why Hold $CET? $CET isn’t just a token — it’s your key to the CoinEx ecosystem! ✅ Trading fee discounts ✅ VIP privileges & exclusive promos ✅ Daily interest rate discount in Margin borrow ✅ Daily buybacks & monthly burns ✅ Referral ratio upgraded, with up to 40% rewards ✅ Exclusive promotional privileges: ✅ CET Staking ✅ CoinEx Mining As CoinEx grows, so does CET’s utility and value. Find CoinEx: 🌐Web ❌𝕏 ✉️Telegram ✈Announcement 🛜Discord

Hashtags

Crypto Profit Coach™

@cryptoprofitcoach · Post #9118 · 10.02.2025 г., 16:10

🔈 EPIC Listing Bonus: Deposit Events – Share 15,000 EPIC! 🎉 📣CoinEx is thrilled to announce the listing of EPIC! To celebrate, we’re launching an exclusive deposit event, giving you a chance to grab a share of 15,000 EPIC! 🔥 ▶️ Deposit & Earn Up to 10% Cashback 📅 Duration: 8:00 Feb 6 – 8:00 Feb 13, 2025 (UTC) 🛡 Who’s eligible? New users registered after Feb 5, 2025 (UTC) 🎉Rewards: 🏆 Top 100: 10% cashback (Max 40 EPIC per user) 🎖 Next 400: 5% cashback (Max 15 EPIC per user) 📌 Limited to the first 500 qualified users! 📣 Join now and claim your rewards ▶️: https://www.coinex.com/en/announcements/detail/34572280466580 ✨✨✨✨✨✨✨✨ Use My Referral link to Sign Up: https://www.coinex.com/register?rc=9qggk 🌹🌹🌹🌹🌹🌹🌹✨ #CoinExMining#CET#Launchpool#CryptoRewards#BullRun

Crypto Profit Coach™

@cryptoprofitcoach · Post #9099 · 11.12.2024 г., 14:31

🔼 🥰 😇 🥰 🥰 hits an Impressive 202.57% APY! 👀 📣CoinEx’s latest empowerment program is setting new records—this is the highest APY in 2 years! ▶️ Don’t miss CoinEx’s 6th Launchpool Event: 🎆Start with just 100 $CET 🟥Dive into a massive 13,000,000 $HOLD pool 💰 ✅Estimated APY could soar as high as 103%! 😱 ▶️Claim your $CET now: https://www.coinex.com/en/mining/6?pool=CET Full details: https://www.coinex.com/en/announcements/detail/32916644706964 💥Ride the $CET wave : Earn rewards & benefit from its rising value! CoinEx’s buyback strategy uses 20% of daily trading fees to repurchase $CET, which is burned monthly until there’s no $CET left in circulation—creating a deflationary model. 🔥 Current burn rate: 72.15%! 🔥 ✨✨✨✨✨✨✨✨ Use My Referral link to Sign Up: https://www.coinex.com/register?rc=9qggk 🌹🌹🌹🌹🌹🌹🌹✨ #CoinExMining#CET#Launchpool#CryptoRewards#BullRun

Crypto Profit Coach™

@cryptoprofitcoach · Post #9094 · 07.12.2024 г., 05:26

🚀 CET Hits 197.73% APY! CoinEx's empowerment program is crushing it—this is the highest APY in 2 years! 💥 Don’t miss CoinEx’s 5th Launchpool Event: - Start with just 100 $CET - Dive into a 10,000 $LKY pool 💰 - Estimated APY can reach as high as 224%! 😱 Snag your $CET now: https://www.coinex.com/en/mining/5?pool=CET Full details: https://www.coinex.com/en/announcements/detail/32630651860500 Ride the $CET wave: Earn rewards and enjoy its rising value! CoinEx employs a buyback strategy that utilizes 20% of daily trading fee income to repurchase CET, which is then burned monthly till there's no CET circulating in the market, creating a deflationary model. At present, the burning rate has reached 71%. ✨✨✨✨✨✨✨✨ Use My Referral link to Sign Up: https://www.coinex.com/register?rc=9qggk 🌹🌹🌹🌹🌹🌹🌹✨ #CoinExMining#CET#Launchpool#CryptoRewards#BullRun