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

TGINSIGHT SIMILAR POSTS

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

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

Как правильно проверить атрибуты доступа файла? То есть доступна ли запись в файл или является ли он исполняемым? Для этого в Python есть функция os.access() Проверять так: os.access(path, flag) Функция вернёт bool в зависимости от наличия указанного флага. Всего есть 4 флага проверки: os.F_OK - наличие файла на диске os.R_OK - доступ на чтение os.W_OK - доступ на запись os.X_OK - доступ на исполнение Например, вместо try-except лучше делать так (пример из документации): if os.access("myfile", os.R_OK): with open("myfile") as fp: return fp.read() #basic#libs

Hashtags

Резултати

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

Пребарај: #grayjay

当前筛选 #grayjay清除筛选
Libreware

@libreware · Post #1197 · 31.10.2023 г., 13:57

. Louis Rossman and FUTO have released another not -FOSS app of interest. This time they bring us the #video#streaming app #Grayjay, which is designed to let you surf and search all you favorite video streaming services at once. Grayjay does everything the popular NewPipe app does, plus more. Unfortunately NewPipe only worked with YouTube and PeerTube. So far Grayjay works w/these platforms (to a certain extent) - Rumble - Odysee - Youtube - FUTO's PeerTube Instance - Twitch - Patreon - Soundcloud - Kick - Nebula Sorry, no BitChute so far. You can download videos for offline viewing, and then export those to your Movies folder on your phone. You can download the apk install file here: https://grayjay.app/ Their GitLab source code can be found here: https://gitlab.futo.org/videostreaming/grayjay Casting: https://gitlab.futo.org/videostreaming/grayjay/-/blob/master/docs/casting.md ⚠️ License https://gitlab.futo.org/alex/voiceinput/-/blob/master/FTL_LICENSE.md ⚡️@LinuxTechIndex