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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #60 · 31 мар.

Вторая по частоте future-функция, которую я использовал, это абсолютный импорт from __future__ import absolute_import Что она делает? Изменения, которые вносит эта инъекция описаны в PEP328 Покажу простой пример. Допустим, есть такой пакет: /my_package /__init__.py /main.py /string.py Смотрим код в my_package/main.py # main.py import string Простой пример готов) Вопрос в том, какой модуль импортируется в данном случае? Есть два варианта: 1. модуль в моём пакете my_package.string 2. стандартный модуль string И вот тут вступает в дело приоритет импортов. В Python2 порядок следующий: помимо иных источников, раньше ищется модуль внутри текущего пакета, а потом в стандартных библиотеках. Таким образом мы импортнём my_package.string. Но в Python3 это поведение изменилось. Если мы указываем просто имя пакета, то ищется именно такой модуль, игнорируя имена в текущем пакете. Если мы хотим импортнуть именно подмодуль из нашего пакета то, мы должны теперь явно это указывать. from my_package import string или относительный импорт, но с указанием пути относительно текущего модуля main from . import string Еще одной неоднозначностью меньше 😎 Подробней про импорты здесь: https://docs.python.org/3/tutorial/modules.html #2to3#pep#basic

Резултати

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

Пребарај: #installers

当前筛选 #installers清除筛选
Libreware

@libreware · Post #1442 · 12.04.2025 г., 14:24

microG unofficial installer Flashable zip created by ale5000 for a simple installation of #microG on Android. IT FEATURE ALSO NON-AROMA LIVE SETUP (now working on all phones). Download microG unofficial installer v1.3.2 beta - Full (Android 2.2 - 15) - MIRROR microG unofficial installer v1.3.2 beta - OSS (Android 2.2 - 15) Google sync add-on v1.2.0 beta (Android 4.4 - 4.4.4 and 7 - 8, probably even newer versions) NOTE: Devices with a MIPS CPU aren't supported. IMPORTANT: The installer isn't supported by the author of microG so installer related bugs should be reported to me instead app related bugs should be reported there. Contents See here. Official threads microG UnifiedNlp Credits MaR-V-iN (for microG, a perfect application that works perfectly also on old phones). YashdSaraf for building BusyBox (BusyBox is used only during the installation, nothing on the device is altered). Contributors ale5000 Source Code:https://github.com/micro5k Version Information Status: Beta Current Version: v1.3.2 Release Date: 2025-03-22 It is simpler to use, more compatible and already come with updated microG; also all optional apps can be disabled using live setup (using +/- volume hardware buttons). You can flash it from a custom recovery (that come pre-rooted), or from a running system with "zip-install.sh". So root is only required to install, it can be removed afterward. #installers

Libreware

@libreware · Post #1245 · 12.03.2024 г., 03:16

LineageOS adds internal support for microG https://review.lineageos.org/c/LineageOS/android_frameworks_base/+/383574 https://review.lineageos.org/q/topic:microg-eval And the application signature spoofing is locked-down to apps signed by microg.org. As of February 25th 2024, LineageOS has added internal support for application signature spoofing, a critical pre-requisite for full microG functionality. LineageOS ROM images built after that date will include this new feature. This means that many people will no longer have to root their device and install tools like Xposed/LSposed to make their ROMs compatible with microG. This is a win for both security/stability as well as user friendliness, as there is no longer any need for any settings/permissions in this implementation. The ROM will “just work” with core modules released by the microG project. Other than application signature spoofing hacks, microG installation tasks remain as before. Please see #microg#installers note for a general overview and links to recommended installation tools. ~ This is huge news for the microG project, as LineageOS is the largest and most famous custom Android ROM project in the world. LOS is also used as the foundation for a large percentage of other custom android ROMs as well. Which means that almost every one of those ROMs will also now include microG support by default, without any extra effort on their part. The impact of this on the custom ROM community cannot be overstated: it is a “watershed moment”. Many in the FOSS community have gotten increasingly frustrated with Google’s progressive crippling of the base FOSS version of android “AOSP”, and the migration of many important core functions which used to be included with AOSP into proprietary, closed-source Google apps and frameworks instead. This issue was one of the founding objectives of the microG project: give control back to the user and let them take advantage of the open-source foundation of android without forcing them to use a proprietary and snoopery vendor-locked version of the OS instead, just to get basic functionality like push messaging and Play Store app compatibility. At this point we believe that the existing “LineageOS for microG” project will continue with their project as it is a “works out of the box” solution that also bundles some FOSS app store tools.

Libreware

@libreware · Post #1247 · 12.03.2024 г., 03:16

MicroG Installers: Just installing the microg components as user apps will partially function but you will not get full functionality without the main components installed as system apps, like the location components. There are a few 3rd-party installers that handle that and set all the required permissions etc. These are the ones generally recommended *Note: currently all installers use the official microg version, so you can update it from its F-Droid repository. ♦️MicroGPlus by TheHitman https://bitgapps.io/extra.html https://t.me/MicroGPlusChat ♦️Microg installers by Ale5000 https://github.com/micro5k/microg-unofficial-installer More stuff https://github.com/micro5k/ ♦️MicroG Installer Revived.... again by spacebarred for magisk or ksu https://github.com/spacealtctrl/microg_installer_revived_again/ https://github.com/spacealtctrl/microg_installer_revived_again/releases https://t.me/microGRevivedAgainResults ♦️MinMicroG by Shane the Awesome You need to clean flash a rom that has signature spoofing support and flash this zip in recovery, choose the standard zip if unsure README: https://github.com/FriendlyNeighborhoodShane/MinMicroG/blob/master/README.md Get the latest release from here: https://github.com/FriendlyNeighborhoodShane/MinMicroG-abuse-CI/releases Or stable release from here (outdated): https://github.com/FriendlyNeighborhoodShane/MinMicroG_releases/releases ♦️microG Installer Revived by nift4 (currently outdated) README: https://github.com/nift4/microg_installer_revived#readme Download: https://github.com/nift4/microg_installer_revived/releases ♦️LineageOS for microG (Rom): https://lineage.microg.org ♦️MicroG Official links: https://microg.org https://github.com/microg https://forum.xda-developers.com/android/apps-games/app-microg-gmscore-floss-play-services-t3217616 📲MicroG official F-Droid repository (Recommended to add if you use MicroG and enable unstable updates in fdroid) https://microg.org/fdroid.html Link to add: https://microg.org/fdroid/repo?fingerprint=9BD06727E62796C0130EB6DAB39B73157451582CBD138E86C468ACC395D14165 📡@NoGoolag@Libreware #microg#install#installers#pack#links