Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
refactor: make `psutil` optional on Android (#112)
NTFSvolume856d65257cca
diff --git a/cyberdrop_dl/storage/__init__.py b/cyberdrop_dl/storage/__init__.pynew file mode 100644index 000000000..1be567151--- /dev/null+++ b/cyberdrop_dl/storage/__init__.py@@ -0,0 +1,70 @@+from __future__ import annotations++import asyncio+import contextlib+import logging+import shutil+from contextvars import ContextVar+from typing import TYPE_CHECKING++from cyberdrop_dl.exceptions import InsufficientFreeSpaceError++logger = logging.getLogger(__name__)++if TYPE_CHECKING:+ from collections.abc import AsyncGenerator, Awaitable, Callable+ from pathlib import Path++ from cyberdrop_dl.data_structures import MediaItem++_required_free_space: ContextVar[int] = ContextVar("_required_free_space")++try:+ from ._psutil import has_sufficient_space+ from ._psutil import start_loop as _psutil_loop+except ImportError:+ _psutil_loop = None++ async def has_sufficient_space(folder: Path, /, required_free_space: int) -> bool:+ usage = await asyncio.to_thread(shutil.disk_usage, folder)+ return usage.free > required_free_space+++def create_free_space_checker(media_item: MediaItem, *, frecuency: int = 5) -> Callable[[], Awaitable[None]]:+ current_chunk = 0++ async def checker() -> None:+ nonlocal current_chunk+ if current_chunk % frecuency == 0:+ await check(media_item)+ current_chunk += 1++ return checker+++async def check(media_item: MediaItem) -> None:+ """Checks if there is enough free space to download this item."""++ if not await has_sufficient_space(media_item.download_folder, _required_free_space.get()):+ raise InsufficientFreeSpaceError(media_item)+++async def monitor(required_free_space: int) -> AsyncGenerator[None]:+ if _psutil_loop is None:+ logger.warning("psutil is not available on this system. Falling back to eager checks for free space")+ yield+ return++ loop = asyncio.create_task(_psutil_loop(), name="storage monitor")+ token = _required_free_space.set(required_free_space)+ await asyncio.sleep(0)+ try:+ yield+ finally:+ _required_free_space.reset(token)+ try:+ _ = loop.cancel("On monitor exit")+ await loop+ except asyncio.CancelledError:+ passdiff --git a/cyberdrop_dl/storage.py b/cyberdrop_dl/storage/_psutil.pysimilarity index 74%rename from cyberdrop_dl/storage.pyrename to cyberdrop_dl/storage/_psutil.pyindex eb2ec9b5b..bb99390ea 100644--- a/cyberdrop_dl/storage.py+++ b/cyberdrop_dl/storage/_psutil.py@@ -3,35 +3,27 @@from __future__ import annotationsimport asyncio-import contextlibimport dataclassesimport functoolsimport loggingfrom collections import defaultdict-from contextvars import ContextVarfrom pathlib import Pathfrom typing import TYPE_CHECKING, Finalimport psutilfrom pydantic import ByteSize-from cyberdrop_dl.exceptions import InsufficientFreeSpaceError-if TYPE_CHECKING:- from collections.abc import AsyncGenerator, Awaitable, Callable, Generator-- from cyberdrop_dl.data_structures import MediaItem+ from collections.abc import Generatorlogger = logging.getLogger(__name__)-_required_free_space: ContextVar[int] = ContextVar("_required_free_space")_PARTITIONS: list[DiskPartition] = []_UNAVAILABLE: set[Path] = set()_LOCKS: dict[Path, asyncio.Lock] = defaultdict(asyncio.Lock)_CHECK_PERIOD: Final = 2 # how often the check_free_space_loop will run (in seconds)_LOG_PERIOD: Final = 10 # log storage details every <x> loops, AKA log every 20 (2x10) seconds,_free_space: dict[Path, int] = {}-_running = asyncio.Event()@dataclasses.dataclass(frozen=True, slots=True, order=True)@@ -55,11 +47,11 @@ class DiskPartitionStats:class _Stats:def __str__(self) -> str:- info = "\n".join(f" {stats!s}" for stats in partition_stats())+ info = "\n".join(f" {stats!s}" for stats in _partition_stats())return f"Storage status:\n {info}"-async def get_free_space(path: Path) -> int:+async def _get_free_space(path: Path) -> int:unsupported = Nonefree_space = 0@@ -72,7 +64,7 @@ async def get_free_space(path: Path) -> int:unsupported = e- if unsupported or (free_space == 0 and is_fuse_fs(path)):+ if unsupported or (free_space == 0 and _is_fuse_fs(path)):logger.error(f"Unable to get free space from mount point ('{path}')'. Skipping free space check",exc_info=unsupported,@@ -82,7 +74,7 @@ async def get_free_space(path: Path) -> int:return free_space-async def has_sufficient_space(folder: Path) -> bool:+async def has_sufficient_space(folder: Path, /, required_free_space: int) -> bool:await _check_nt_network_drive(folder)mount = _get_mount_point(folder)if not mount:@@ -95,25 +87,18 @@ async def has_sufficient_space(folder: Path) -> bool:if free_space is None:# Manually query this mount now. Next time it will be part of the loop- free_space = _free_space[mount] = await get_free_space(mount)+ free_space = _free_space[mount] = await _get_free_space(mount)logger.info(f"A new mountpoint ('{mount!s}') will be used for '{folder}'")logger.info(_Stats())- return free_space == -1 or free_space > _required_free_space.get()---async def check(media_item: MediaItem) -> None:- """Checks if there is enough free space to download this item."""+ return free_space == -1 or free_space > required_free_space- if not await has_sufficient_space(media_item.download_folder):- raise InsufficientFreeSpaceError(media_item)--def find_partition(path: Path) -> DiskPartition | None:+def _find_partition(path: Path) -> DiskPartition | None:if not path.is_absolute():raise ValueError(f"{path!r} is not absolute")- possible_partitions = (p for p in partitions() if path.is_relative_to(p.mountpoint))+ possible_partitions = (p for p in _partitions() if path.is_relative_to(p.mountpoint))# Get the closest mountpoint to `folder`# mount_a = /home/user/ -> points to an internal SSD@@ -123,32 +108,20 @@ def find_partition(path: Path) -> DiskPartition | None:return partition-def is_fuse_fs(path: Path) -> bool:- if partition := find_partition(path):+def _is_fuse_fs(path: Path) -> bool:+ if partition := _find_partition(path):return "fuse" in partition.fstypereturn False-def create_free_space_checker(media_item: MediaItem, *, frecuency: int = 5) -> Callable[[], Awaitable[None]]:- current_chunk = 0-- async def checker() -> None:- nonlocal current_chunk- if current_chunk % frecuency == 0:- await check(media_item)- current_chunk += 1-- return checker---def partitions() -> tuple[DiskPartition, ...]:+def _partitions() -> tuple[DiskPartition, ...]:if not _PARTITIONS:_PARTITIONS.extend(_get_disk_partitions())return tuple(_PARTITIONS)-def partition_stats() -> Generator[DiskPartitionStats]:- for partition in partitions():+def _partition_stats() -> Generator[DiskPartitionStats]:+ for partition in _partitions():free_space = _free_space.get(partition.mountpoint)if free_space is not None:yield DiskPartitionStats(partition, ByteSize(free_space))@@ -162,7 +135,7 @@ def clear_cache() -> None:_get_mount_point.cache_clear()-async def _start_loop() -> None:+async def start_loop() -> None:"""Infinite loop to get free space of all used mounts and update internal dict"""async def update():@@ -170,7 +143,7 @@ async def _start_loop() -> None:if not mountpoints:return- results = await asyncio.gather(*map(get_free_space, mountpoints))+ results = await asyncio.gather(*map(_get_free_space, mountpoints))_free_space.update(zip(mountpoints, results, strict=True))last_check = -1@@ -190,7 +163,7 @@ def _get_mount_point(folder: Path) -> Path | None:# Cached for performance.# It's not an expensive operation nor IO blocking, but it's very common for multiple files to share the same download folder# ex: HLS downloads could have over a thousand segments. All of them will go to the same folder- if partition := find_partition(folder):+ if partition := _find_partition(folder):return partition.mountpoint# Mount point for this path does not exists@@ -243,7 +216,7 @@ async def _check_nt_network_drive(folder: Path) -> None:if folder_drive in _UNAVAILABLE:return- mounts = tuple(p.mountpoint for p in partitions())+ mounts = tuple(p.mountpoint for p in _partitions())if folder_drive in mounts:return@@ -264,19 +237,3 @@ async def _check_nt_network_drive(folder: Path) -> None:else:_UNAVAILABLE.add(folder_drive)---async def monitor(required_free_space: int) -> AsyncGenerator[None]:- loop = asyncio.create_task(_start_loop(), name="storage monitor")- token = _required_free_space.set(required_free_space)- await asyncio.sleep(0)- try:- yield- finally:- _required_free_space.reset(token)- try:- _ = loop.cancel("On monitor exit")- await loop- except asyncio.CancelledError:- passdiff --git a/pyproject.toml b/pyproject.tomlindex 7515a32db..bf95f3075 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -17,7 +17,7 @@ dependencies = ["async-mega-py >=2.0.3","beautifulsoup4 >=4.14.3","certifi >=2026.2.25",- "curl-cffi >=0.14; implementation_name == 'cpython' ",+ "curl-cffi >=0.15; implementation_name == 'cpython' ","imagesize >=2.0.0","inquirer>=3.4.1","jeepney >=0.9.0; 'bsd' in sys_platform or sys_platform == 'linux'",@@ -25,7 +25,7 @@ dependencies = ["myjdapi >=1.1.10","packaging >=25.0","propcache >=0.4.1",- "psutil >=7.2.1",+ "psutil >=7.2.1; sys_platform != 'android'","pycares >=4.10.0","pycryptodome >=3.23.0","pydantic >=2.12.4",@@ -43,6 +43,11 @@ readme = "README.md"requires-python = ">=3.11"version = "9.0.2"+[project.optional-dependencies]+extras = [+ "apprise >=1.9.7"+]+[project.scripts]cyberdrop-dl = "cyberdrop_dl.main:main"cyberdrop-dl-patched = "cyberdrop_dl.main:main"@@ -65,9 +70,6 @@ dev = ["ruff==0.15.6","tox>=4.50.3"]-extras = [- "apprise >=1.9.7"-][tool.coverage.report]exclude_also = [diff --git a/tests/test_storage.py b/tests/test_storage.pyindex 24ab55c78..1e338406b 100644--- a/tests/test_storage.py+++ b/tests/test_storage.py@@ -7,7 +7,8 @@ from unittest import mockimport pytest-from cyberdrop_dl import aio, storage+from cyberdrop_dl import aio+from cyberdrop_dl.storage import _psutil as storagedef create_partition(path: str):@@ -15,47 +16,47 @@ def create_partition(path: str):def find_partition(path: str):- return storage.find_partition(Path(path))+ return storage._find_partition(Path(path))async def test_unsupported_fs_should_not_return_zero() -> None:cwd = await aio.resolve(Path())- free_space = await storage.get_free_space(cwd)+ free_space = await storage._get_free_space(cwd)assert free_space > 0with mock.patch("psutil.disk_usage", side_effect=OSError(None, "operation not supported")):- free_space = await storage.get_free_space(cwd)+ free_space = await storage._get_free_space(cwd)assert free_space == -1with mock.patch("psutil.disk_usage", side_effect=OSError(None, "another error")):with pytest.raises(OSError):- _ = await storage.get_free_space(cwd)+ _ = await storage._get_free_space(cwd)async def test_fuse_filesystem_should_not_return_zero() -> None:cwd = await aio.resolve(Path())- partition = storage.find_partition(cwd)+ partition = storage._find_partition(cwd)assert partition- assert not storage.is_fuse_fs(cwd)+ assert not storage._is_fuse_fs(cwd)storage._PARTITIONS = [dataclasses.replace(partition, fstype="fuse")] # pyright: ignore[reportPrivateUsage]- assert storage.is_fuse_fs(cwd)+ assert storage._is_fuse_fs(cwd)- free_space = await storage.get_free_space(cwd)+ free_space = await storage._get_free_space(cwd)assert free_space > 0class NullUsage:free = 0with mock.patch("psutil.disk_usage", return_value=NullUsage()):- free_space = await storage.get_free_space(cwd)+ free_space = await storage._get_free_space(cwd)assert free_space == -1def test_storage_only_work_with_abs_paths() -> None:cwd = Path()with pytest.raises(ValueError):- _ = storage.find_partition(cwd)+ _ = storage._find_partition(cwd)- assert storage.find_partition(cwd.resolve())+ assert storage._find_partition(cwd.resolve())@pytest.mark.skipif(os.name == "nt", reason="Test paths are only posix")diff --git a/uv.lock b/uv.lockindex afd9d5449..f91ff8405 100644--- a/uv.lock+++ b/uv.lock@@ -706,25 +706,35 @@ toml = [[[package]]name = "curl-cffi"-version = "0.14.0"+version = "0.15.0"source = { registry = "https://pypi.org/simple" }dependencies = [{ name = "certifi" },{ name = "cffi" },+ { name = "rich" },]-sdist = { url = "https://files.pythonhosted.org/packages/9b/c9/0067d9a25ed4592b022d4558157fcdb6e123516083700786d38091688767/curl_cffi-0.14.0.tar.gz", hash = "sha256:5ffbc82e59f05008ec08ea432f0e535418823cda44178ee518906a54f27a5f0f", size = 162633, upload-time = "2025-12-16T03:25:07.931Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/aa/f0/0f21e9688eaac85e705537b3a87a5588d0cefb2f09d83e83e0e8be93aa99/curl_cffi-0.14.0-cp39-abi3-macosx_14_0_arm64.whl", hash = "sha256:e35e89c6a69872f9749d6d5fda642ed4fc159619329e99d577d0104c9aad5893", size = 3087277, upload-time = "2025-12-16T03:24:49.607Z" },- { url = "https://files.pythonhosted.org/packages/ba/a3/0419bd48fce5b145cb6a2344c6ac17efa588f5b0061f212c88e0723da026/curl_cffi-0.14.0-cp39-abi3-macosx_15_0_x86_64.whl", hash = "sha256:5945478cd28ad7dfb5c54473bcfb6743ee1d66554d57951fdf8fc0e7d8cf4e45", size = 5804650, upload-time = "2025-12-16T03:24:51.518Z" },- { url = "https://files.pythonhosted.org/packages/e2/07/a238dd062b7841b8caa2fa8a359eb997147ff3161288f0dd46654d898b4d/curl_cffi-0.14.0-cp39-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c42e8fa3c667db9ccd2e696ee47adcd3cd5b0838d7282f3fc45f6c0ef3cfdfa7", size = 8231918, upload-time = "2025-12-16T03:24:52.862Z" },- { url = "https://files.pythonhosted.org/packages/7c/d2/ce907c9b37b5caf76ac08db40cc4ce3d9f94c5500db68a195af3513eacbc/curl_cffi-0.14.0-cp39-abi3-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:060fe2c99c41d3cb7f894de318ddf4b0301b08dca70453d769bd4e74b36b8483", size = 8654624, upload-time = "2025-12-16T03:24:54.579Z" },- { url = "https://files.pythonhosted.org/packages/f2/ae/6256995b18c75e6ef76b30753a5109e786813aa79088b27c8eabb1ef85c9/curl_cffi-0.14.0-cp39-abi3-manylinux_2_28_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:b158c41a25388690dd0d40b5bc38d1e0f512135f17fdb8029868cbc1993d2e5b", size = 8010654, upload-time = "2025-12-16T03:24:56.507Z" },- { url = "https://files.pythonhosted.org/packages/fb/10/ff64249e516b103cb762e0a9dca3ee0f04cf25e2a1d5d9838e0f1273d071/curl_cffi-0.14.0-cp39-abi3-manylinux_2_28_i686.whl", hash = "sha256:1439fbef3500fb723333c826adf0efb0e2e5065a703fb5eccce637a2250db34a", size = 7781969, upload-time = "2025-12-16T03:24:57.885Z" },- { url = "https://files.pythonhosted.org/packages/51/76/d6f7bb76c2d12811aa7ff16f5e17b678abdd1b357b9a8ac56310ceccabd5/curl_cffi-0.14.0-cp39-abi3-manylinux_2_34_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:e7176f2c2d22b542e3cf261072a81deb018cfa7688930f95dddef215caddb469", size = 7969133, upload-time = "2025-12-16T03:24:59.261Z" },- { url = "https://files.pythonhosted.org/packages/23/7c/cca39c0ed4e1772613d3cba13091c0e9d3b89365e84b9bf9838259a3cd8f/curl_cffi-0.14.0-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:03f21ade2d72978c2bb8670e9b6de5260e2755092b02d94b70b906813662998d", size = 9080167, upload-time = "2025-12-16T03:25:00.946Z" },- { url = "https://files.pythonhosted.org/packages/75/03/a942d7119d3e8911094d157598ae0169b1c6ca1bd3f27d7991b279bcc45b/curl_cffi-0.14.0-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:58ebf02de64ee5c95613209ddacb014c2d2f86298d7080c0a1c12ed876ee0690", size = 9520464, upload-time = "2025-12-16T03:25:02.922Z" },- { url = "https://files.pythonhosted.org/packages/a2/77/78900e9b0833066d2274bda75cba426fdb4cef7fbf6a4f6a6ca447607bec/curl_cffi-0.14.0-cp39-abi3-win_amd64.whl", hash = "sha256:6e503f9a103f6ae7acfb3890c843b53ec030785a22ae7682a22cc43afb94123e", size = 1677416, upload-time = "2025-12-16T03:25:04.902Z" },- { url = "https://files.pythonhosted.org/packages/5c/7c/d2ba86b0b3e1e2830bd94163d047de122c69a8df03c5c7c36326c456ad82/curl_cffi-0.14.0-cp39-abi3-win_arm64.whl", hash = "sha256:2eed50a969201605c863c4c31269dfc3e0da52916086ac54553cfa353022425c", size = 1425067, upload-time = "2025-12-16T03:25:06.454Z" },+sdist = { url = "https://files.pythonhosted.org/packages/48/5b/89fcfebd3e5e85134147ac99e9f2b2271165fd4d71984fc65da5f17819b7/curl_cffi-0.15.0.tar.gz", hash = "sha256:ea0c67652bf6893d34ee0f82c944f37e488f6147e9421bef1771cc6545b02ded", size = 196437, upload-time = "2026-04-03T11:12:31.525Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/5e/42/54ddd442c795f30ce5dd4e49f87ce77505958d3777cd96a91567a3975d2a/curl_cffi-0.15.0-cp310-abi3-macosx_10_9_x86_64.whl", hash = "sha256:bda66404010e9ed743b1b83c20c86f24fe21a9a6873e17479d6e67e29d8ded28", size = 2795267, upload-time = "2026-04-03T11:11:46.48Z" },+ { url = "https://files.pythonhosted.org/packages/83/2d/3915e238579b3c5a92cead5c79130c3b8d20caaba7616cc4d894650e1d6b/curl_cffi-0.15.0-cp310-abi3-macosx_11_0_arm64.whl", hash = "sha256:a25620d9bf989c9c029a7d1642999c4c265abb0bad811deb2f77b0b5b2b12e5b", size = 2573544, upload-time = "2026-04-03T11:11:47.951Z" },+ { url = "https://files.pythonhosted.org/packages/2a/b3/9d2f1057749a1b07ba1989db3c1503ce8bed998310bae9aea2c43aa64f20/curl_cffi-0.15.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:582e570aa2586b96ed47cf4a17586b9a3c462cbe43f780487c3dc245c6ef1527", size = 10515369, upload-time = "2026-04-03T11:11:50.126Z" },+ { url = "https://files.pythonhosted.org/packages/b5/1d/6d10dded5ce3fd8157e558ebd97d09e551b77a62cdc1c31e93d0a633cee5/curl_cffi-0.15.0-cp310-abi3-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:838e48212447d9c81364b04707a5c861daf08f8320f9ecb3406a8919d1d5c3b3", size = 10160045, upload-time = "2026-04-03T11:11:52.664Z" },+ { url = "https://files.pythonhosted.org/packages/5c/12/c70b835487ace3b9ba1502631912e3440082b8ae3a162f60b59cb0b6444d/curl_cffi-0.15.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:2b6c847d86283b07ae69bb72c82eb8a59242277142aa35b89850f89e792a02fc", size = 11090433, upload-time = "2026-04-03T11:11:55.049Z" },+ { url = "https://files.pythonhosted.org/packages/ea/0d/78edcc4f71934225db99df68197a107386d59080742fc7bf6bb4d007924f/curl_cffi-0.15.0-cp310-abi3-manylinux_2_28_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:9e5e69eee735f659287e2c84444319d68a1fa68dd37abf228943a4074864283a", size = 10479178, upload-time = "2026-04-03T11:11:57.685Z" },+ { url = "https://files.pythonhosted.org/packages/5b/84/1e101c1acb1ea2f0b4992f5c3024f596d8e21db0d53540b9d583f673c4e7/curl_cffi-0.15.0-cp310-abi3-manylinux_2_34_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:aa1323950224db24f4c510d010b3affa02196ca853fb424191fa917a513d3f4b", size = 10317051, upload-time = "2026-04-03T11:12:00.295Z" },+ { url = "https://files.pythonhosted.org/packages/28/42/8ef236b22a6c23d096c85a1dc507efe37bfdfc7a2f8a4b34efb590197369/curl_cffi-0.15.0-cp310-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:41f80170ba844009273b2660da1964ec31e99e5719d16b3422ada87177e32e13", size = 11299660, upload-time = "2026-04-03T11:12:02.791Z" },+ { url = "https://files.pythonhosted.org/packages/1d/01/56aeb055d962da87a1be0d74c6c644e251c7e88129b5471dc44ac724e678/curl_cffi-0.15.0-cp310-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:1977e1e12cfb5c11352cbb74acef1bed24eb7d226dab61ca57c168c21acd4d61", size = 11945049, upload-time = "2026-04-03T11:12:05.912Z" },+ { url = "https://files.pythonhosted.org/packages/d8/8c/2abf99a38d6340d66cf0557e0c750ef3f8883dfc5d450087e01c85861343/curl_cffi-0.15.0-cp310-abi3-win_amd64.whl", hash = "sha256:5a0c1896a0d5a5ac1eb89cd24b008d2b718dd1df6fd2f75451b59ca66e49e572", size = 1661649, upload-time = "2026-04-03T11:12:07.948Z" },+ { url = "https://files.pythonhosted.org/packages/3d/39/dfd54f2240d3a9b96d77bacc62b97813b35e2aa8ecf5cd5013c683f1ba96/curl_cffi-0.15.0-cp310-abi3-win_arm64.whl", hash = "sha256:a6d57f8389273a3a1f94370473c74897467bcc36af0a17336989780c507fa43d", size = 1410741, upload-time = "2026-04-03T11:12:10.073Z" },+ { url = "https://files.pythonhosted.org/packages/19/6a/c24df8a4fc22fa84070dcd94abeba43c15e08cc09e35869565c0bad196fd/curl_cffi-0.15.0-cp313-abi3-android_24_arm64_v8a.whl", hash = "sha256:4682dc38d4336e0eb0b185374db90a760efde63cbea994b4e63f3521d44c4c92", size = 7190427, upload-time = "2026-04-03T11:12:12.142Z" },+ { url = "https://files.pythonhosted.org/packages/11/56/132225cb3491d07cc6adcce5fe395e059bde87c68cff1ef87a31c88c7819/curl_cffi-0.15.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:967ad7355bd8e9586f8c2d02eaa99953747549e7ea4a9b25cd53353e6b67fe6d", size = 2795723, upload-time = "2026-04-03T11:12:13.668Z" },+ { url = "https://files.pythonhosted.org/packages/07/8f/f4f83cd303bef7e8f1749512e5dd157e7e5d08b0a36c8211f9640a2757bf/curl_cffi-0.15.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:7e63539d0d839d0a8c5eacf86229bc68c57803547f35e0db7ee0986328b478c3", size = 2573739, upload-time = "2026-04-03T11:12:15.08Z" },+ { url = "https://files.pythonhosted.org/packages/e8/5c/643d65c7fc9acd742876aa55c2d7823c438cb7665810acd2e66c9976c4d9/curl_cffi-0.15.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:08c799b89740b9bc49c09fbc3d5907f13ac1f845ca52620507ef9466d4639dd5", size = 10521046, upload-time = "2026-04-03T11:12:17.034Z" },+ { url = "https://files.pythonhosted.org/packages/7f/0b/9b8037113c93f4c5323096163471fa7c35c7676c3f608eeaf1287cd99d58/curl_cffi-0.15.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:7b7a92767a888ee90147e18964b396d8435ff42737030d6fb00824ffd6094805", size = 11096115, upload-time = "2026-04-03T11:12:19.694Z" },+ { url = "https://files.pythonhosted.org/packages/5f/96/fff2fcbd924ef4042e0d67379f751a8a4e3186a91e75e35a4cf218b306ee/curl_cffi-0.15.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:829cc357061ecb99cc2d406301f609a039e05665322f5c025ec67c38b0dc49ce", size = 11305346, upload-time = "2026-04-03T11:12:22.151Z" },+ { url = "https://files.pythonhosted.org/packages/53/1b/304b253a45ab28691c8c5e8cca1e6cbb9cf8e46dfceae4648dd536f75e73/curl_cffi-0.15.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:408d6f14e346841cd889c2e0962832bb235ba3b6749ebf609f347f747da5e60f", size = 11949834, upload-time = "2026-04-03T11:12:24.986Z" },+ { url = "https://files.pythonhosted.org/packages/5a/ff/4723d92f08259c707a974aba27a08d0a822b9555e35ca581bf18d055a364/curl_cffi-0.15.0-cp314-cp314t-win_amd64.whl", hash = "sha256:b624c7ce087bfda967a013ed0a64702a525444e5b6e97d23534d567ccc6525aa", size = 1702771, upload-time = "2026-04-03T11:12:28.201Z" },+ { url = "https://files.pythonhosted.org/packages/59/8c/36bbe06d66fa2b765e4a07199f643a59a9cd1a754207a96335402a9520f4/curl_cffi-0.15.0-cp314-cp314t-win_arm64.whl", hash = "sha256:0b6c0543b993996670e9e4b78e305a2d60809d5681903ffb5568e21a387434d3", size = 1466312, upload-time = "2026-04-03T11:12:30.054Z" },][[package]]@@ -748,7 +758,7 @@ dependencies = [{ name = "myjdapi" },{ name = "packaging" },{ name = "propcache" },- { name = "psutil" },+ { name = "psutil", marker = "sys_platform != 'android'" },{ name = "pycares" },{ name = "pycryptodome" },{ name = "pydantic" },@@ -760,6 +770,11 @@ dependencies = [{ name = "yarl" },]+[package.optional-dependencies]+extras = [+ { name = "apprise" },+]+[package.dev-dependencies]dev = [{ name = "prek" },@@ -770,9 +785,6 @@ dev = [{ name = "ruff" },{ name = "tox" },]-extras = [- { name = "apprise" },-][package.metadata]requires-dist = [@@ -781,10 +793,11 @@ requires-dist = [{ name = "aiohttp", extras = ["speedups"], specifier = ">=3.13.3" },{ name = "aiolimiter", specifier = ">=1.2.1" },{ name = "aiosqlite", specifier = ">=0.22.1" },+ { name = "apprise", marker = "extra == 'extras'", specifier = ">=1.9.7" },{ name = "async-mega-py", specifier = ">=2.0.3" },{ name = "beautifulsoup4", specifier = ">=4.14.3" },{ name = "certifi", specifier = ">=2026.2.25" },- { name = "curl-cffi", marker = "implementation_name == 'cpython'", specifier = ">=0.14" },+ { name = "curl-cffi", marker = "implementation_name == 'cpython'", specifier = ">=0.15" },{ name = "imagesize", specifier = ">=2.0.0" },{ name = "inquirer", specifier = ">=3.4.1" },{ name = "jeepney", marker = "'bsd' in sys_platform or sys_platform == 'linux'", specifier = ">=0.9.0" },@@ -792,7 +805,7 @@ requires-dist = [{ name = "myjdapi", specifier = ">=1.1.10" },{ name = "packaging", specifier = ">=25.0" },{ name = "propcache", specifier = ">=0.4.1" },- { name = "psutil", specifier = ">=7.2.1" },+ { name = "psutil", marker = "sys_platform != 'android'", specifier = ">=7.2.1" },{ name = "pycares", specifier = ">=4.10.0" },{ name = "pycryptodome", specifier = ">=3.23.0" },{ name = "pydantic", specifier = ">=2.12.4" },@@ -803,6 +816,7 @@ requires-dist = [{ name = "xxhash", specifier = ">=3.6.0" },{ name = "yarl", specifier = ">=1.23.0" },]+provides-extras = ["extras"][package.metadata.requires-dev]dev = [@@ -814,7 +828,6 @@ dev = [{ name = "ruff", specifier = "==0.15.6" },{ name = "tox", specifier = ">=4.50.3" },]-extras = [{ name = "apprise", specifier = ">=1.9.7" }][[package]]name = "distlib"