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

Резултати

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

Пребарај: #axionos

当前筛选 #axionos清除筛选
Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #695 · 25.11.2025 г., 08:09

AxionOS - Unofficial | Android 16 | Nothing Phone (2) 📝 Details: - Version: v2.2.1 - Device: #Pong - Released: 25/11/25 ⬇️ Downloads: Link 1 | Link 2 | Link 3 ⚙️ Installation: Here 📖 Changelogs: Here 📸 Screenshots: Here 🏷 Tags: #ROM#AOSP#UnOfficial#AxionOS ✍️Notes: - Gapps is included, do not flash again - Clean Flash Recommended - Use latest NOS 3 firmware - NTcamera, Dolby & SukiSU-Ultra support available 🏆Credits: - Ghost & Chandu for DT - Fabian & HELLBOY for Glyph - HELLBOY for Meteoric Kernel 👤 Maintainer: @pankaj96 💬 Chat: @NothingPhone2 🔔 Updates: @NothingPhone2Updates

Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #730 · 14.04.2026 г., 06:42

AxionOS - Official | Android 16 | Nothing Phone (2) 📝 Details: - Version: v2.5 - Device: #Pong - Released: 14/04/26 ⬇️ Download: Gapps | Vanilla 🛟 Recovery: Here 📖 Changelogs: Here 🆘 Support: ROM | Device 💰 Donate: Here 🏷 Tags: #AOSP#ROM#AxionOS#Official#QPR2 ✍️Notes: - Firmware is included! (NOS 4.0) - Full Gapps is included for Gapps build - Dolby is included 🏆Credits: - Ghost and Chandu for DT - Fabian & Ghost & HELLBOY for Glyph 👤 Developer: @Superuser1958 💬 Chat: @NothingPhone2 🔔 Updates: @NothingPhone2Updates

Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #689 · 13.11.2025 г., 11:11

AxionOS - Unofficial | Android 16 | Nothing Phone (2) 📝 Details: - Version: v2.2 - Device: #Pong - Type #Gapps - Released: 13/11/25 ⬇️ Downloads: Link 1 | Link 2 | Link 3 ⚙️ Installation: Here 📖 Changelogs: Here 📸 Screenshots: Here 🏷 Tags: #ROM#AOSP#UnOfficial#AxionOS ✍️Notes: - Gapps is included, do not flash again - Passes Basic Integrity by default - Use latest NOS 3 firmware - NTcamera, Dolby & KernelSU-Next support available 🏆Credits: - Ghost & Chandu for DT - Fabian & HELLBOY for Glyph - HELLBOY for Meteoric Kernel 👤 Maintainer: @pankaj96 💬 Chat: @NothingPhone2 🔔 Updates: @NothingPhone2Updates

Oneplus 13 Updates

@OnePlus13Series · Post #384 · 10.04.2026 г., 08:57

AxionOS - Unofficial | Android 16 | Oneplus 13 ✍️ Details: - Version: 16 - Codename: #dodge - Variant: #Gapps - Released: 10/04/26 🔽 Download : ROM 🔖 Tags: #AxionOS#Unofficial#Baklava#ROM#dodge ⚙️Flashing Instructions: - Using SuperHybrid Flasher (recommended) - It also can be flashed through Ofox recovery. ✍️Notes: - Core GApps Included, do not flash again - April Security Patch (QPR2) - Lineage Upstream - Upstreamed kernel - FW 16.0.5.701 ARB !!! - Don't report without proper logs! 🏆Credits: - Chandu_078 - bgcngm - jonassalo93 - danielspringer - jakobBokaj1 - Testers 👤 Maintaner: @einargednochsson 🔔 Updates: @OnePlus13Series 💬 Discussion: @OnePlus13SeriesChatRoom

Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #706 · 13.01.2026 г., 12:39

AxionOS - UnOfficial | Android 16 QPR1| Nothing Phone (2) 📝 Details: - Version: v2.3 - Device: #Pong - Released: 13/01/26 ⬇️ Downloads: Link 1 | Link 2 ⚙️ Installation: Here 📖 Changelogs: Here 📸 Screenshots: Here 🏷 Tags: #ROM#AOSP#A16#QPR1#UnOfficial#AxionOS ✍️Notes: - Gapps is included, do not flash again - Clean Flash Recommended - Use latest NOS 4 firmware - NTcamera & Dolby support available - No KSU Support 🏆Credits: - Ghost & Chandu for DT - Fabian & HELLBOY for Glyph - HELLBOY for Meteoric Kernel - Adarsh219 & @Squidguy for Testing Rom 👤 Maintainer: @pankaj96 💬 Chat: @NothingPhone2 🔔 Updates: @NothingPhone2Updates