TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #210 · 3 фев.

Что делать если нужно поставить какую-то Python-библиотеку а root-прав нет? То есть в систему библиотеку никак и ничего не поставить. Есть как минимум два способа это решить правильно! 🔸 Сделать виртуальное окружение и ставить там что угодно. Это позволит создать полностью независимое исполняемое окружение для ваших приложений. Все библиотеки будут храниться в домашней директории юзера а значит доступ на запись имеется. Создать очень просто: python3 -m venv ~/venvs/myenvname Теперь активируем окружение # Linux source ~/venvs/myenvname/bin/activate # Windows %userprofile%\venvs\myenvname\Scripts\activate.bat Можно ставить любые библиотеки и запускать приложение. Это стандартный метод работы с любым проектом. Если еще не используете его, то пора начинать. Даже при наличии root доступа! 🔸 Бывает, что нет возможности запустить приложение из своего виртуального окружения. Например, его запускает какой-то сервис от вашего юзера и вставить активацию окружения вы не можете. В этом случае можно установить библиотеки для Python не глобально в систему, а только для юзера. Выполните этот код в консоли: python3 -m site Вы получите что-то такое: sys.path = [ '/home/user', '/usr/lib/python37.zip', '/usr/lib/python3.7', '/usr/lib/python3.7/lib-dynload', '/home/user/.local/lib/python3.7/site-packages', ... ] USER_BASE: '/home/user/.local' USER_SITE: '/home/user/.local/lib/python3.7/site-packages' ENABLE_USER_SITE: True Нас интересует параметр USER_SITE. Это путь к пользовательским библиотекам, которые доступны по умолчанию, если они есть. Именно сюда будут устанавливаться модули если добавить флаг --user при установке чего-либо через pip pip install --user requests Для этой команды не нужны root-права. После неё можно запускать системный интерпретатор без виртуальных окружений и установленная библиотека будет доступна для текущего юзера. Параметр USER_BASE показывает корневую директорию для хранения user-библиотек. Её можно изменить с помощью переменной окружения PYTHONUSERBASE export PYTHONUSERBASE=~/pylibs python3 -m site ... USER_BASE: '/home/user/pylibs' USER_SITE: '/home/user/pylibs/lib/python3.7/site-packages' Получается некоторое подобие виртуального окружения для бедных 😁 которое можно менять через эту переменную (не делайте так!Лучше venv!) 🔸 Дописывание пути в PYTHONPATH Этот способ не входит в список "двух правильных", но тоже рабочий. Здесь придётся сделать всё несколько сложней. Сначала ставим библиотеку в любое место указывая путь установки pip3 install -t ~/mylibs modulename Библиотека установится без привязки к какому-либо интерпретатору. То есть по умолчанию не будет видна. Теперь в нужный момент добавляем этот путь в sys.path или в PYTHONPATH. Не буду советовать так делать. Единственный раз когда этот способ мне пригодился и решил поставленную задачу, это при создании общей библиотеки для кластера компьютеров. Модули лежат в сети и подгружаются для всех из одного и того же места. То есть обновлять файлы требуется только один раз а не на всех хосты отдельно. Минусы такого подхода: ▫️Нужно всем хостам пробить нужный путь в .bashrc или ещё куда-то чтобы он сетапился на старте. ▫️Чем больше хостов тем больше нагрузка на сеть. Иногда такой способ не подходит именно по этой причине. Тогда Ansible вам в помощь. ▫️Не очень подходит если хосты с разными операционками. Некоторые библиотеки различаются для Linux и Windows (там, где есть бинарники) и приходится мудрить более сложные схемы. #tricks#basic

Резултати

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

Пребарај: #fdroid

当前筛选 #fdroid清除筛选
Android Broadcast

@android_broadcast · Post #9537 · 01.10.2025 г., 12:50

🤯F-Droid выражает протест против обязательной верификации всех разработчиков Разработчики альтернативного магазина open-source приложений выражают обеспокоенность тем, что обязательная верификация для распространения приложений на устройствах, сертифицированных Google, негативно влияет на творчество. Но у меня сразу ряд вопросов: 👉 Какие проблемы это создает для распространения через F-Droid? 👉 Исходный код и все авторы приложения из F-Droid известны 👉 Авторы гарантируют что софт настоящий и без трекинга, то в чем суть подтверждения авторства? Официальное заявление можно найти тут #android#googleplay#fdroid

Libreware

@libreware · Post #1562 · 27.02.2026 г., 22:15

❌#Fdroid security problems ⁨https://privsec.dev/posts/android/f-droid-security-issues⁩⁩ ⁨⁨https://xcancel.com/GrapheneOS/status/1883895255142932816 https://xcancel.com/GrapheneOS/status/1497272529223917575 ⁨⁨https://gitlab.com/ironfox-oss/IronFox/-/issues/7⁩⁩ ⁨⁨https://github.com/obfusk/fdroid-fakesigner-poc⁩⁩ ⁨⁨https://github.com/CatimaLoyalty/Android/issues/2608⁩⁩ ⁨⁨https://gitlab.com/fdroid/admin/-/issues/593⁩⁩ ⁨⁨https://discuss.grapheneos.org/d/15490-f-droid-or-obtainium⁩⁩ ⁨⁨https://m.youtube.com/watch?v=IzpVI4zaso0⁩⁩ ⁨⁨https://m.youtube.com/watch?v=lAbgeJau3eE⁩⁩ ⁨⁨https://m.youtube.com/watch?v=FFz57zNR_M0⁩⁩ ⁨⁨https://m.youtube.com/watch?v=IAoCfrqx⁩⁩ #fd

Hashtags

Android Broadcast

@android_broadcast · Post #8658 · 08.02.2025 г., 09:20

🐱Buckwheat (на русском звучит "Гречка") - это приложение с открытым исходным кодом, которое помогает вам тратить деньги разумно. Запись каждой статьи расходов приводит вас в чувства и дает представление о том, сколько и как вы можете потратить. Стек технологий: Jetpack Compose, KotlinX Coroutines, Room, Dagger + Hilt, Coil 🛒 Вы можете установить приложение из Google Play #android#opensource#пример#fdroid#compose

Libreware

@libreware · Post #1429 · 06.03.2025 г., 22:42

A post from the developer of #WireGuard on the severe #security flaws and lack of trustworthiness of #FDroid: https://bsky.app/profile/grapheneos.org/post/3lgq7wqwzpk26 The Bluesky link has GrapheneOS posts explaining https://gitlab.com/fdroid/fdroiddata/-/issues/3110#note_1613430404 Stuff here but not to the point like the Bluesky link https://discuss.grapheneos.org/d/18731-f-droid-vulnerability-allows-bypassing-certificate-pinning/

Momogram

@momogram_update · Post #1183 · 21.02.2026 г., 09:25

Keep Android Open https://keepandroidopen.org https://f-droid.org/2026/02/20/twif.html During out talks with F-Droid users at FOSDEM26 we were baffled to learn most were relieved that #Google has canceled their plans to lock-down #Android. Why baffled? Because no such thing actually happened, the plans announced last August are still scheduled to take place. We see a battle of PR campaigns and whomever has the last post out remains in the media memory as the truth, and having journalists just copy/paste Google posts serves no one. But Google said… Said what? That there’s a magical “advanced flow”? Did you see it? Did anyone experience it? When is it scheduled to be released? Was it part of Android 16 QPR2 in December? Of 16 QPR3 Beta 2.1 last week? Of Android 17 Beta 1? No? That’s the issue… As time marches on people were left with the impression that everything was done, fixed, Google “wasn’t evil” after all, this time, yay! While we all have bad memories of “banners” as the dreaded ad delivery medium of the Internet, after FOSDEM we decided that we have to raise the issue back and have everyone, who cares about Android as an open platform, informed that we are running out of time until Google becomes the gate-keeper of all users devices. Hence, the website and starting today our clients, with the updates of F-Droid and F-Droid Basic, feature a banner that reminds everyone how little time we have and how to voice their concerns to whatever local authority is able to understand the dangers of this path Android is led to. We are not alone in our fight, IzzyOnDroid added a banner too, more #FDroid clients will add the warning banner soon and other app downloaders, like Obtainium, already have an in-app warning dialogue. #why

Libreware

@libreware · Post #1561 · 27.02.2026 г., 22:14

#Droidify#Fdroid client Added SHA256 for signature verification (Long press on Sync icon to refresh index) https://github.com/Droid-ify/client/releases Many more android app stores at https://t.me/Libreware/1132 and #apk@LibreWare Tell us your favorite or any missing ones

Libreware

@libreware · Post #997 · 27.10.2021 г., 00:22

Droid-ify Unofficial F-Droid client with Material UI based on Foxy-Droid Features: Material F-Droid style No cards or inappropriate animations Fast repository syncing Standard Android components and minimal dependencies https://github.com/iamlooker/Droid-ify/ Download: https://github.com/Iamlooker/Droid-ify/releases https://f-droid.org/packages/com.looker.droidify https://android.izzysoft.de/repo/apk/com.looker.droidify 📡@NoGoolag📡@Libreware #droidify#apk#fdroid

Libreware

@libreware · Post #1080 · 04.05.2022 г., 07:29

Neo Store A quick material F-Droid client 🎨 Material F-Droid style 🎯 No cards or inappropriate animations ✈️ Fast repository syncing 🔧 Standard Android components and minimal dependencies https://github.com/NeoApplications/Neo-Store Channel @neo_applications Group @neo_android_store #neostore#fdroid#apk

Libreware

@libreware · Post #1553 · 21.02.2026 г., 05:39

Keep Android Open https://keepandroidopen.org https://f-droid.org/2026/02/20/twif.html During out talks with F-Droid users at FOSDEM26 we were baffled to learn most were relieved that #Google has canceled their plans to lock-down #Android. Why baffled? Because no such thing actually happened, the plans announced last August are still scheduled to take place. We see a battle of PR campaigns and whomever has the last post out remains in the media memory as the truth, and having journalists just copy/paste Google posts serves no one. But Google said… Said what? That there’s a magical “advanced flow”? Did you see it? Did anyone experience it? When is it scheduled to be released? Was it part of Android 16 QPR2 in December? Of 16 QPR3 Beta 2.1 last week? Of Android 17 Beta 1? No? That’s the issue… As time marches on people were left with the impression that everything was done, fixed, Google “wasn’t evil” after all, this time, yay! While we all have bad memories of “banners” as the dreaded ad delivery medium of the Internet, after FOSDEM we decided that we have to raise the issue back and have everyone, who cares about Android as an open platform, informed that we are running out of time until Google becomes the gate-keeper of all users devices. Hence, the website and starting today our clients, with the updates of F-Droid and F-Droid Basic, feature a banner that reminds everyone how little time we have and how to voice their concerns to whatever local authority is able to understand the dangers of this path Android is led to. We are not alone in our fight, IzzyOnDroid added a banner too, more #FDroid clients will add the warning banner soon and other app downloaders, like Obtainium, already have an in-app warning dialogue. #why

Libreware

@libreware · Post #894 · 04.02.2021 г., 18:15

PCAPdroid Capture traffic on Android devices and send the PCAP via UDP without root PCAPdroid lets you capture the Android traffic and analyze it remotely (e.g. via Wireshark). The traffic can be easily captured on a remote PC via an UDP socket. 💡 Features: ✅ Capture apps traffic without root privileges ✅ Send captured traffic via UDP ✅ Download the traffic PCAP via the integrated HTTP server ✅ Show captured traffic real time statistics ✅ Apply a filter to only capture traffic for the selected app ✅ Decrypt HTTPS/TLS traffic via a remote mitmproxy https://f-droid.org/packages/com.emanuelef.remote_capture/ #PCAPdroid#android#fdroid#app

Libreware

@libreware · Post #904 · 19.02.2021 г., 19:25

[email protected] - Drizzle in my repo today with 2 new apps. Most prominently: Watomatic – to help those of you still stuck at WhatsApp to leave that s(t)inking ship without being afraid "nobody can find you": it sends auto-responses to everyone writing you, telling them you've left and where to look. So: no more excuses, here's your door! https://apt.izzysoft.de/fdroid/index/apk/com.parishod.watomatic​ Further running: SpaceXFollower (SpaceX events, facts, statistics) and Auxio, a nice music player, added yesterday. Enjoy #foss#Android#apps with #fdroid!

12
ПретходнаСтраница 1 од 2Следна