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

Резултати

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

Пребарај: #accounts

当前筛选 #accounts清除筛选
Graph Messenger

@graphmessenger · Post #510 · 25.03.2026 г., 12:11

👤Hidden Accounts: Your Private Space Securely hide your sensitive accounts within the app. Access them anytime with a password for ultimate privacy and control. A pin, password, or pattern can be used to lock it, and a fingerprint can also be used to unlock it. 💡How to enable it? 00:00 ✍️How can I hide an account? 00:22 ⁉️What is the process for accessing hidden accounts? 00:30 ❤️Redesigned In version 12.5.1.0 on March 20, 2026. 🗓Was added in version 6.7 on November 29, 2018. #features#accounts#hidden_accounts#hidden#graph_messenger#telegram @GraphMessenger @GraphMessengerTips

Daily Channels

@dailychannels · Post #6560 · 21.12.2025 г., 13:00

Channel: Instagram Accounts & Services Members: ~3.49K 💢 Username: @buyinstaaccounts Description: We Sell Instagram Accounts, Followers, Likes, Views, Commmets Or Any Other Service Regarding Instagram. With 8 Years Of Experience. 🏷 Tags: #games_apps #instagram#accounts#social_media#followers#engagement https://telegramchannels.me/channels/buyinstaaccounts

djangoproject

@djangoproject · Post #441 · 13.09.2017 г., 14:56

User authentication in #Django Django comes with a user authentication system. It handles user #accounts, #groups, #permissions and #cookie-based user #sessions. This section of the documentation explains how the default implementation works out of the box, as well as how to extend and customize it to suit your project’s needs. https://docs.djangoproject.com/es/1.11/topics/auth/

Graph Messenger

@graphmessenger · Post #516 · 17.04.2026 г., 09:04

Effortless Navigation: Access Accounts & Quick Links with a Simple Swipe Up This swipe-up functionality is designed for maximum convenience, putting your most important options right at your fingertips. ❤️Graph Messenger 12.5.1.2 🗓Added from: April 4, 2026 #features#menu#quick_links#accounts#swipe#graph_messenger#telegram @GraphMessenger @GraphMessengerTips