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

Резултати

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

Пребарај: #ukdataprotection

当前筛选 #ukdataprotection清除筛选
AI & Law

@ai_and_law · Post #183 · 07.12.2023 г., 08:04

UK Information Commissioner Appeals Clearview AI Judgment Hi everyone! The UK Information Commissioner is seeking permission to appeal a recent judgment by the First Tier Tribunal (Information Rights) regarding Clearview AI Inc, a US-based company specializing in facial recognition technology. The Tribunal supported the Information Commissioner's Office (ICO) stance that Clearview's processing of personal information, involving the monitoring of individuals through the collection of billions of facial images for access and analysis using AI, falls under UK data protection legislation. While the ICO welcomes the clarity the judgment brings to UK data protection legislation, it contends that the Tribunal incorrectly interpreted the law regarding Clearview's activities. The Commissioner argues that the Tribunal's decision to consider Clearview's processing as falling outside the scope of UK data protection law due to its services for foreign law enforcement agencies is a misinterpretation. John Edwards, the UK Information Commissioner, emphasizes the importance of protecting the data rights of UK citizens, particularly in the context of Clearview's extensive scraping of personal information. He expresses concern about the scale and intrusiveness of Clearview's operations and underscores the need to ensure that commercial enterprises processing digital images of UK residents cannot claim exemption from UK law on the grounds of "law enforcement" purposes. As AI technologies continue to evolve, the case with Clearview highlights the ongoing challenge of striking a balance between fostering innovation in AI solutions and safeguarding individuals' privacy rights. The ICO's appeal seeks to address these nuanced issues and establish clearer boundaries for AI companies operating in the UK. #ClearviewAI#UKDataProtection#AIandPrivacy