@keyframepro · Post #38 · 10.06.2025 г., 12:45
Kasperskiy - Threat management and defense #3d#cg#commercial#coproduction#it#kasperskiy
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
Пребарај: #kasperskiy
@keyframepro · Post #38 · 10.06.2025 г., 12:45
Kasperskiy - Threat management and defense #3d#cg#commercial#coproduction#it#kasperskiy
@keyframepro · Post #21 · 10.06.2025 г., 11:55
Kasperskiy - Endpoint Security #3d#cg#commercial#coproduction#it#kasperskiy
@keyframepro · Post #19 · 10.06.2025 г., 11:55
Kasperskiy - Threat Intelligence #3d#cg#commercial#coproduction#it#kasperskiy
@keyframepro · Post #18 · 10.06.2025 г., 11:54
Kasperskiy - GREAT #3d#cg#commercial#coproduction#it#kasperskiy
@keyframepro · Post #22 · 10.06.2025 г., 11:57
Kasperskiy - Cloud Security #3d#2d#cg#commercial#coproduction#it#kasperskiy
@keyframepro · Post #23 · 10.06.2025 г., 11:58
Kasperskiy - Internet of things #2d#cg#commercial#coproduction#humor#it#kasperskiy
@keyframepro · Post #20 · 10.06.2025 г., 11:55
Kasperskiy - Fraud Prevention Series #3d#2d#cg#commercial#coproduction#humor#it#kasperskiy
@keyframepro · Post #35 · 10.06.2025 г., 12:26
👓 Привет! Hello! Меня зовут Максим Слюсарев. My name is Maxim Sliussarev. 😠Я режиссёр, продюсер и сценарист. А это мой креативный бутик Keyframe Production. Представленные ролики все придуманы мною и реализованы либо мной лично, либо в сотрудничестве с другими студиями. На всех из них я выступал сценаристом и режиссёром, а на многих продюсером, монтажером и даже художником графики. За годы работы я стал обладателем множества призов, как за музыкальные клипы, так и за рекламу и кино, а в 25 году и за ии-кино. 🐈⬛ I’m a director, producer, and screenwriter. This is my creative boutique — Keyframe Production. All the featured videos were conceived by me and brought to life either personally or in collaboration with other studios. I worked as the screenwriter and director on all of them, and on many — also as producer, editor, and even graphic artist. Over the years, I have won many prizes, both for music videos, as well as for advertising and cinema, and in 2025 for AI-films. 😂Пишите в телегу @maximixam или [email protected] 😱Contact me via telegram @maximixam or [email protected] По хештегам вы можете найти работы во всех сферах видеопроизводства от съемки до ии: You can find projects from all areas of video production by following the hashtags: #ai#bank#cars#cg#commercial#documentary#deepfake#drama#exhibition#fashion#film#humor#interactive#it#kasperskiy#kids#mecha#microsoft#musicvideo#social#shortfilm#show#sounddesing#showreel#space#sport#tvseries#videoproduction#2d#3d