BTHLABS-50: Safari Web extension

Co-authored-by: Tomek Wójcik <labs@tomekwojcik.pl>
Co-committed-by: Tomek Wójcik <labs@tomekwojcik.pl>
This commit is contained in:
2025-09-08 18:11:36 +00:00
committed by Tomek Wójcik
parent ffecf780ee
commit b6d02dbe78
184 changed files with 7536 additions and 163 deletions

View File

@@ -1,2 +1,3 @@
from .accounts import AccessTokenOriginApp # noqa: F401
from .associations import AssociationsSearchMode # noqa: F401
from .core import NULL_UUID, App, Env # noqa: F401

View File

@@ -0,0 +1,9 @@
# -*- coding: utf-8 -*-
from __future__ import annotations
import enum
class AccessTokenOriginApp(enum.Enum):
UNKNOWN = 'UNKNOWN'
SAFARI_WEB_EXTENSION = 'SAFARI_WEB_EXTENSION'

View File

@@ -85,6 +85,10 @@ class URL:
def password(self) -> str | None:
return self.parsed_url.password
@property
def raw_path(self) -> str:
return self.parsed_url.path
@property
def path(self) -> pathlib.PurePosixPath:
return pathlib.PurePosixPath(self.parsed_url.path)