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

Резултати

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

Пребарај: #reputation

当前筛选 #reputation清除筛选
Nomis | Onchain Reputation Protocol

@nomis_protocol · Post #524 · 06.11.2024 г., 13:06

​​ALL NOMIS SUPPORTERS IN #GG22 — THANK YOU FOR YOUR LOVE 💜 🚨 Only 15 hours left in Gitcoin #Grant, and we're close to the top because of your support: If you're still with us, we welcome your tweets, donations, and any support you can offer for #GG22 We build for you, post for you, and exist to make your #reputation matter! Thank you for making us matter 💜

Nomis | Onchain Reputation Protocol

@nomis_protocol · Post #495 · 23.10.2024 г., 18:42

HOW TO #CRYPTO: Safe, Smooth, and Smart? We're here to teach you! How exactly? Let's break it down, fam 🧵👇 1️⃣ By letting you leverage your #onchain reputation without doxxing and sharing your personal data. You're fine w/ just your wallet, anon. 2️⃣ By being clear in public: answering your questions, assisting you, supporting you 👥 That’s why we vibe with you on Twitter Spaces! 💜 BTW, check the latest one to get our full point on safety tools and onchain #reputation in crypto 👇 https://twitter.com/i/spaces/1djGXrZDqmNxZ 3️⃣ Educating users on onchain reputation and privacy! Making sure your decentralized identity stays safe while keepin’ it simple We don’t gatekeep and give YOU full transparency into our algorithms so you can actually see how your onchain rep works 🔎https://nomis.cc/blog/what-nomis-scores-knows-about-you👈 4️⃣And simply by letting the TON #Blockchain do their job 🤠 Education is key. We believe our allies could move this narrative towards mass adoption. And Nomis (that's us!) will be alongside 🥰 Start your onchain journey! Check your reputation -> nomis.cc/ton👈 💠Nomis tApp | X | Discord | YouTube | Check Scores⚖️

MPA GLOBAL

@mpa_creative · Post #317 · 11.12.2022 г., 00:00

MPA creative media agency📽Production "Ayol va biznes - o'sishga qodirmiz!" forum kunida namoyish qilingan qisqa metrajli film. Xar hil yo’nalishdagi tadbirlar, loyihalar va uchrashuvlarni nufuzli tarzda o’tkazishiga siz ham guvoh bo’lishingiz mumkin. Biz hamisha yangi hamkorlikka tayyormiz🤝 #media#pr#reputation#production #creative#content#forum