Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
perf: use async loop to keep track of available space (#840)
NTFSvolume3686f1fbbb10
diff --git a/cyberdrop_dl/clients/download_client.py b/cyberdrop_dl/clients/download_client.pyindex 64af8e1d7..81ed5cbfc 100644--- a/cyberdrop_dl/clients/download_client.py+++ b/cyberdrop_dl/clients/download_client.py@@ -16,13 +16,7 @@ from dateutil import parserfrom videoprops import get_audio_properties, get_video_propertiesfrom yarl import URL-from cyberdrop_dl.clients.errors import (- DownloadError,- InsufficientFreeSpaceError,- InvalidContentTypeError,- SlowDownloadError,-)-from cyberdrop_dl.config_definitions.global_settings import MIN_REQUIRED_FREE_SPACE+from cyberdrop_dl.clients.errors import DownloadError, InvalidContentTypeError, SlowDownloadErrorfrom cyberdrop_dl.utils.constants import FILE_FORMATSfrom cyberdrop_dl.utils.logger import log, log_debug@@ -124,8 +118,6 @@ class DownloadClient:self.slow_download_period = 10 # secondsself.download_speed_threshold = self.manager.config_manager.settings_data.runtime_options.slow_download_speedself.chunk_size = client_manager.speed_limiter.chunk_size- self.chunks_counter: int = 0- self.free_space_check_lock = asyncio.Lock()self.add_request_log_hooks()def add_request_log_hooks(self) -> None:@@ -241,11 +233,9 @@ class DownloadClient:update_progress: partial,) -> None:"""Appends content to a file."""- check_free_space = self.client_manager.manager.download_manager.check_free_space- async_check_free_space = partial(asyncio.to_thread, check_free_space, media_item.download_folder)- async with self.free_space_check_lock:- if not await async_check_free_space():- raise InsufficientFreeSpaceError(origin=media_item)++ check_free_space = partial(self.manager.storage_manager.check_free_space, media_item)+ await check_free_space()media_item.partial_file.parent.mkdir(parents=True, exist_ok=True)if not media_item.partial_file.is_file():@@ -266,16 +256,12 @@ class DownloadClient:async with aiofiles.open(media_item.partial_file, mode="ab") as f: # type: ignoreasync for chunk in content.iter_chunked(self.chunk_size):await self.manager.states.RUNNING.wait()+ await check_free_space()chunk_size = len(chunk)await self.client_manager.speed_limiter.acquire(chunk_size)await asyncio.sleep(0)await f.write(chunk)update_progress(chunk_size)- self.chunks_counter += 1- async with self.free_space_check_lock:- if self.chunks_counter * self.chunk_size >= MIN_REQUIRED_FREE_SPACE:- await async_check_free_space()- self.chunks_counter = 0if self.download_speed_threshold:check_download_speed()diff --git a/cyberdrop_dl/config_definitions/global_settings.py b/cyberdrop_dl/config_definitions/global_settings.pyindex 727478345..a58e2eeb8 100644--- a/cyberdrop_dl/config_definitions/global_settings.py+++ b/cyberdrop_dl/config_definitions/global_settings.py@@ -19,6 +19,7 @@ class General(BaseModel):proxy: HttpURL | None = Nonerequired_free_space: ByteSizeSerilized = DEFAULT_REQUIRED_FREE_SPACEuser_agent: NonEmptyStr = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0"+ pause_on_insufficient_space: bool = False@field_serializer("flaresolverr", "proxy")def serialize(self, value: URL | str) -> str | None:diff --git a/cyberdrop_dl/downloader/downloader.py b/cyberdrop_dl/downloader/downloader.pyindex d60ead255..3cff19f57 100644--- a/cyberdrop_dl/downloader/downloader.py+++ b/cyberdrop_dl/downloader/downloader.py@@ -15,7 +15,6 @@ from cyberdrop_dl.clients.errors import (DownloadError,DurationError,ErrorLogMessage,- InsufficientFreeSpaceError,InvalidContentTypeError,RestrictedFiletypeError,)@@ -129,10 +128,9 @@ class Downloader:"""~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"""- def check_file_can_download(self, media_item: MediaItem) -> None:+ async def check_file_can_download(self, media_item: MediaItem) -> None:"""Checks if the file can be downloaded."""- if not self.manager.download_manager.check_free_space(media_item.download_folder):- raise InsufficientFreeSpaceError(origin=media_item)+ await self.manager.storage_manager.check_free_space(media_item)if not self.manager.download_manager.check_allowed_filetype(media_item):raise RestrictedFiletypeError(origin=media_item)if not self.manager.download_manager.pre_check_duration(media_item):@@ -181,7 +179,7 @@ class Downloader:await self.manager.states.RUNNING.wait()media_item.current_attempt = media_item.current_attempt or 1media_item.duration = await self.manager.db_manager.history_table.get_duration(self.domain, media_item)- self.check_file_can_download(media_item)+ await self.check_file_can_download(media_item)downloaded = await self.client.download_file(self.manager, self.domain, media_item)if downloaded:Path.chmod(media_item.complete_file, 0o666)diff --git a/cyberdrop_dl/managers/download_manager.py b/cyberdrop_dl/managers/download_manager.pyindex ae428be46..64e25d70a 100644--- a/cyberdrop_dl/managers/download_manager.py+++ b/cyberdrop_dl/managers/download_manager.py@@ -3,7 +3,6 @@ from __future__ import annotationsimport asynciofrom base64 import b64encodefrom contextlib import asynccontextmanager-from shutil import disk_usagefrom typing import TYPE_CHECKINGfrom cyberdrop_dl.clients.download_client import check_file_duration@@ -12,7 +11,6 @@ from cyberdrop_dl.utils.logger import log_debugif TYPE_CHECKING:from collections.abc import AsyncGenerator- from pathlib import Pathfrom cyberdrop_dl.managers.manager import Managerfrom cyberdrop_dl.utils.data_enums_classes.url_objects import MediaItem@@ -42,7 +40,6 @@ class DownloadManager:def __init__(self, manager: Manager) -> None:self.manager = managerself._download_instances: dict = {}-self.file_locks = FileLocksVault()self.download_limits = {@@ -70,21 +67,6 @@ class DownloadManager:token = b64encode(f"{username}:{password}".encode()).decode("ascii")return f"Basic {token}"- def check_free_space(self, folder: Path | None = None) -> bool:- """Checks if there is enough free space on the drive to continue operating."""- if not folder:- folder = self.manager.path_manager.download_folder-- folder = folder.resolve()- while not folder.is_dir() and folder.parents:- folder = folder.parent-- # check if we reached an anchor (root) that does not exists, ex: disconnected USB drive- if not folder.is_dir():- return False- free_space = disk_usage(folder).free- return free_space >= self.manager.config_manager.global_settings_data.general.required_free_space-def check_allowed_filetype(self, media_item: MediaItem) -> bool:"""Checks if the file type is allowed to download."""ignore_options = self.manager.config_manager.settings_data.ignore_optionsdiff --git a/cyberdrop_dl/managers/manager.py b/cyberdrop_dl/managers/manager.pyindex 272b29965..65ecebbcf 100644--- a/cyberdrop_dl/managers/manager.py+++ b/cyberdrop_dl/managers/manager.py@@ -5,7 +5,7 @@ import jsonimport platformfrom dataclasses import Field, fieldfrom time import perf_counter-from typing import TYPE_CHECKING, NamedTuple+from typing import TYPE_CHECKING, Literal, NamedTuplefrom cyberdrop_dl import __version__from cyberdrop_dl.config_definitions import ConfigSettings, GlobalSettings@@ -20,6 +20,8 @@ from cyberdrop_dl.managers.log_manager import LogManagerfrom cyberdrop_dl.managers.path_manager import PathManagerfrom cyberdrop_dl.managers.progress_manager import ProgressManagerfrom cyberdrop_dl.managers.realdebrid_manager import RealDebridManager+from cyberdrop_dl.managers.storage_manager import StorageManager+from cyberdrop_dl.ui.textual import TextualUIfrom cyberdrop_dl.utils import constantsfrom cyberdrop_dl.utils.args import ParsedArgsfrom cyberdrop_dl.utils.logger import QueuedLogger, log@@ -49,11 +51,13 @@ class Manager:self.log_manager: LogManager = field(init=False)self.db_manager: DBManager = field(init=False)self.client_manager: ClientManager = field(init=False)+ self.storage_manager: StorageManager = field(init=False)self.download_manager: DownloadManager = field(init=False)self.progress_manager: ProgressManager = field(init=False)self.live_manager: LiveManager = field(init=False)self.textual_log_queue: queue.Queue = field(init=False)+ self._textual_ui: TextualUI = field(init=False)self._loaded_args_config: bool = Falseself._made_portable: bool = False@@ -100,6 +104,19 @@ class Manager:self.multiconfig = Trueself.set_constants()+ def notify(+ self,+ msg: str,+ title: str = "",+ severity: Literal["information", "warning", "error"] = "information",+ timeout: float | None = None,+ ):+ """Wrapper around textual.app.notify++ Does nothing if CDL is not using textual (`--no-textual-ui`)"""+ if isinstance(self._textual_ui, TextualUI):+ self._textual_ui.notify(msg, title=title, severity=severity, timeout=timeout)+def adjust_for_simpcity(self) -> None:"""Adjusts settings for SimpCity update."""simp_settings_adjusted = self.cache_manager.get("simp_settings_adjusted")@@ -126,10 +143,17 @@ class Manager:if not isinstance(self.client_manager, ClientManager):self.client_manager = ClientManager(self)+ if not isinstance(self.storage_manager, StorageManager):+ self.storage_manager = StorageManager(self)++ elif self.states.RUNNING.is_set():+ await self.storage_manager.reset() # Reset total downloaded data if running multiple configs+if not isinstance(self.download_manager, DownloadManager):self.download_manager = DownloadManager(self)if not isinstance(self.real_debrid_manager, RealDebridManager):self.real_debrid_manager = RealDebridManager(self)+await self.async_db_hash_startup()constants.MAX_NAME_LENGTHS["FILE"] = self.config_manager.global_settings_data.general.max_file_name_length@@ -248,10 +272,14 @@ class Manager:async def close(self) -> None:"""Closes the manager."""+ self.states.RUNNING.clear()if not isinstance(self.client_manager, Field):await self.client_manager.close()+await self.async_db_close()await self.cache_manager.close()+ await self.storage_manager.close()+self.cache_manager.close_sync()while self.loggers:_, queued_logger = self.loggers.popitem()diff --git a/cyberdrop_dl/managers/progress_manager.py b/cyberdrop_dl/managers/progress_manager.pyindex b117f2265..e6390a39f 100644--- a/cyberdrop_dl/managers/progress_manager.py+++ b/cyberdrop_dl/managers/progress_manager.py@@ -72,11 +72,18 @@ class ProgressManager:def pause_or_resume(self):if self.manager.states.RUNNING.is_set():- self.manager.states.RUNNING.clear()- self.activity.update(self.activity_task_id, description="Paused")+ self.pause()else:- self.manager.states.RUNNING.set()- self.activity.update(self.activity_task_id, description="Running Cyberdrop-DL")+ self.resume()++ def pause(self, msg: str = ""):+ self.manager.states.RUNNING.clear()+ suffix = f" [{msg}]" if msg else ""+ self.activity.update(self.activity_task_id, description=f"Paused{suffix}")++ def resume(self):+ self.manager.states.RUNNING.set()+ self.activity.update(self.activity_task_id, description="Running Cyberdrop-DL")def startup(self) -> None:"""Startup process for the progress manager."""@@ -133,7 +140,7 @@ class ProgressManager:returnend_time = time.perf_counter()runtime = timedelta(seconds=int(end_time - start_time))- data_size = ByteSize(self.file_progress.downloaded_data).human_readable(decimal=True)+ total_data_written = ByteSize(self.manager.storage_manager.total_data_written).human_readable(decimal=True)log_spacer(20)log("Printing Stats...\n", 20)@@ -148,7 +155,7 @@ class ProgressManager:log_yellow(f" Input URL Groups: {self.manager.scrape_mapper.group_count:,}")log_concat(" Log Folder: ", log_folder_text, style="yellow")log_yellow(f" Total Runtime: {runtime}")- log_yellow(f" Total Downloaded Data: {data_size}")+ log_yellow(f" Total Downloaded Data: {total_data_written}")log_spacer(20, "")log_cyan("Download Stats:")diff --git a/cyberdrop_dl/managers/storage_manager.py b/cyberdrop_dl/managers/storage_manager.pynew file mode 100644index 000000000..1e2ac483c--- /dev/null+++ b/cyberdrop_dl/managers/storage_manager.py@@ -0,0 +1,164 @@+from __future__ import annotations++import asyncio+from collections import defaultdict+from datetime import timedelta+from functools import lru_cache+from pathlib import Path+from types import MappingProxyType+from typing import TYPE_CHECKING, NamedTuple++import psutil+from pydantic import ByteSize++from cyberdrop_dl.clients.errors import InsufficientFreeSpaceError+from cyberdrop_dl.utils.logger import log_debug++if TYPE_CHECKING:+ from cyberdrop_dl.managers.manager import Manager+ from cyberdrop_dl.utils.data_enums_classes.url_objects import MediaItem+++class StorageManager:+ """Runs an infinite loop to keep an updated value of the available space on all storage devices."""++ def __init__(self, manager: Manager):+ self.manager = manager+ self.total_data_written: int = 0+ self._paused_datetime = None+ self._used_mounts: set[Path] = set()+ self._free_space: dict[Path, int] = {}+ self._mount_addition_locks: dict[Path, asyncio.Lock] = defaultdict(asyncio.Lock)+ self._updated = asyncio.Event()+ self._period: int = 2 # how often the check_free_space_loop will run (in seconds)+ self._log_period: int = 10 # log storage details every <x> loops, AKA log every 20 (2x10) seconds,+ self._timedelta_period = timedelta(seconds=self._period)+ self._loop = asyncio.create_task(self._check_free_space_loop())++ def get_used_mounts_stats(self, simplified: bool = True) -> dict:+ """Returns a dict with the infomartion + free space of every used mount.++ If simplified is `True` (the default), all the information is flatten as a single string and mounts are converted to `str` (for logging)"""+ mounts = {}+ for mount in self._used_mounts:+ free_space = ByteSize(self._free_space[mount])+ if simplified:+ free_space = free_space.human_readable(decimal=True)+ data = get_available_partitions()[mount]._asdict() | {"free_space": free_space}+ data.pop("mountpoint", None)+ mounts[mount] = data++ if simplified:+ return {str(key): str(value) for key, value in mounts.items()}+ return mounts++ async def check_free_space(self, media_item: MediaItem) -> None:+ """Checks if there is enough free space on download this item"""++ await self.manager.states.RUNNING.wait()+ if not await self._has_sufficient_space(media_item.download_folder):+ """ Needs textual UI+ if self.manager.config_manager.global_settings_data.general.pause_on_insufficient_space:+ if not self._paused_datetime:+ self.manager.progress_manager.pause("Insufficient Free Space")+ self.manager.notify(+ title="Insufficient Free Space",+ msg="Clean up storage space and click resume to continue",+ severity="warning",+ )+ self._paused_datetime = datetime.now()+ if (datetime.now() - self._paused_datetime) < self._timedelta_period:+ return await self.check_free_space(media_item)+ """+ raise InsufficientFreeSpaceError(origin=media_item)++ async def reset(self):+ # This is causing lock ups+ # await self._updated.wait() # Make sure a query is not running right now+ self.total_data_written = 0+ self._used_mounts = set()+ self._free_space = {}++ async def close(self) -> None:+ await self.reset()+ self._loop.cancel()+ try:+ await self._loop+ except asyncio.CancelledError:+ pass++ async def _has_sufficient_space(self, folder: Path) -> bool:+ """Checks if there is enough free space to download to this folder"""++ mount = get_mount_point(folder)+ if not mount:+ return False++ async with self._mount_addition_locks[mount]:+ if mount not in self._free_space:+ # Manually query this mount now. Next time it will be part of the loop+ result = await asyncio.to_thread(psutil.disk_usage, str(mount))+ self._free_space[mount] = result.free+ self._used_mounts.add(mount)++ return self._free_space[mount] > self.manager.config_manager.global_settings_data.general.required_free_space++ async def _check_free_space_loop(self) -> None:+ """Infinite loop to get free space of all used mounts and update internal dict"""++ last_check = -1+ while True:+ # We could also update the values every 512MB of data written (MIN_REQUIRED_FREE_SPACE)+ # if self.data_writen // MIN_REQUIRED_FREE_SPACE <= last_check:+ # continue+ # But every second is more accurate+ await self.manager.states.RUNNING.wait()+ self._updated.clear()+ last_check += 1+ if self._used_mounts:+ used_mounts = sorted(self._used_mounts)+ tasks = [asyncio.to_thread(psutil.disk_usage, str(mount)) for mount in used_mounts]+ results = await asyncio.gather(*tasks)+ for mount, result in zip(used_mounts, results, strict=True):+ self._free_space[mount] = result.free+ if last_check % self._log_period == 0:+ log_debug({"Storage status": self.get_used_mounts_stats()})+ self._updated.set()+ await asyncio.sleep(self._period)+++@lru_cache+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+ assert folder.is_absolute()+ mounts = get_available_mountpoints()+ possible_mountpoints = [mount for mount in mounts if mount in folder.parents or mount == folder]+ if not possible_mountpoints:+ # Mount point for this path does not exists+ # This will only happend on Windows, ex: an USB drive (`D:`) that is not currently available (AKA disconnected)+ # On Unix there always at least 1 mountpoint, root (`/`)+ return++ # Get the closest mountpoint to the desired path+ # Example:+ # mount_a = /home/user/ -> points to an internal SSD+ # mount_b = /home/user/USB -> points to an external USB drive+ # If folder is `/home/user/USB/videos`, the correct mountpoint is mount_b+ return max(possible_mountpoints, key=lambda path: len(path.parts))+++@lru_cache+def get_available_partitions() -> MappingProxyType[Path, NamedTuple]:+ """NOTE: This function is cached which means it always returns the partitions available at startup"""++ # all=True is required to make sure it works on most platforms. See: https://github.com/giampaolo/psutil/issues/2191+ partitions = psutil.disk_partitions(all=True)+ return MappingProxyType({Path(p.mountpoint): p for p in partitions})+++@lru_cache+def get_available_mountpoints() -> tuple[Path, ...]:+ """NOTE: This function is cached which means it always returns the mounts available at startup"""+ return tuple(sorted(get_available_partitions().keys()))diff --git a/cyberdrop_dl/ui/progress/file_progress.py b/cyberdrop_dl/ui/progress/file_progress.pyindex 01149d7c1..ad155931f 100644--- a/cyberdrop_dl/ui/progress/file_progress.py+++ b/cyberdrop_dl/ui/progress/file_progress.py@@ -2,7 +2,6 @@ from __future__ import annotationsfrom typing import TYPE_CHECKING-from pydantic import ByteSizefrom rich.markup import escapefrom rich.progress import (BarColumn,@@ -42,7 +41,6 @@ class FileProgress(DequeProgress):if manager.parsed_args.cli_only_args.portrait:use_columns = vertical_columnsself._progress = Progress(*use_columns)- self.downloaded_data = ByteSize(0)super().__init__("Downloads", visible_tasks_limit)def get_queue_length(self) -> int:@@ -68,7 +66,7 @@ class FileProgress(DequeProgress):def advance_file(self, task_id: TaskID, amount: int) -> None:"""Advances the progress of the given task by the given amount."""- self.downloaded_data += amount+ self.manager.storage_manager.total_data_written += amountself._progress.advance(task_id, amount)def get_speed(self, task_id: TaskID) -> float:diff --git a/cyberdrop_dl/ui/textual.py b/cyberdrop_dl/ui/textual.pyindex 1b7caf7e1..9982806c4 100644--- a/cyberdrop_dl/ui/textual.py+++ b/cyberdrop_dl/ui/textual.py@@ -55,6 +55,7 @@ class TextualUI(App[int]):self.manager = managerself.queue: queue.Queue[Text] = manager.textual_log_queueself.auto_scroll = True+ manager._textual_ui = selfdef compose(self) -> ComposeResult:def create_footer():diff --git a/cyberdrop_dl/utils/args.py b/cyberdrop_dl/utils/args.pyindex d5cdf524f..2ad3abf0b 100644--- a/cyberdrop_dl/utils/args.py+++ b/cyberdrop_dl/utils/args.py@@ -73,20 +73,20 @@ class CommandLineOnlyArgs(BaseModel):completed_before: date | None = Field(None, description="only download completed downloads at or before this date")config: str | None = Field(None, description="name of config to load")config_file: Path | None = Field(None, description="path to the CDL settings.yaml file to load")+ disable_cache: bool = Field(False, description="Temporarily disable the requests cache")download: bool = Field(False, description="skips UI, start download immediatly")+ download_dropbox_folders_as_zip: bool = Field(False, description="download Dropbox folder without api key as zip")+ download_tiktok_audios: bool = Field(False, description="download TikTok audios")max_items_retry: int = Field(0, description="max number of links to retry")+ no_textual_ui: bool = Field(False, description="Disable textual UI (TUI with mouse support)")+ portrait: bool = Field(is_terminal_in_portrait(), description="show UI in a portrait layout")+ print_stats: bool = Field(True, description="Show stats report at the end of a run")retry_all: bool = Field(False, description="retry all downloads")retry_failed: bool = Field(False, description="retry failed downloads")retry_maintenance: bool = Field(False, description="retry download of maintenance files (bunkr). Requires files to be hashed")- download_dropbox_folders_as_zip: bool = Field(False, description="download Dropbox folder without api key as zip")- download_tiktok_audios: bool = Field(False, description="download TikTok audios")- print_stats: bool = Field(True, description="Show stats report at the end of a run")ui: UIOptions = Field(UIOptions.FULLSCREEN, description="DISABLED, ACTIVITY, SIMPLE or FULLSCREEN")- portrait: bool = Field(is_terminal_in_portrait(), description="show UI in a portrait layout")- disable_cache: bool = Field(False, description="Temporarily disable the requests cache")- textual_ui: bool = Field(True, description="Enable/Disable textual UI (TUI with mouse support)")@propertydef retry_any(self) -> bool:diff --git a/poetry.lock b/poetry.lockindex 72fe61268..ef5b28b84 100644--- a/poetry.lock+++ b/poetry.lock@@ -1572,6 +1572,30 @@ files = [{file = "propcache-0.3.1.tar.gz", hash = "sha256:40d980c33765359098837527e18eddefc9a24cea5b45e078a7f3bb5b032c6ecf"},]+[[package]]+name = "psutil"+version = "7.0.0"+description = "Cross-platform lib for process and system monitoring in Python. NOTE: the syntax of this script MUST be kept compatible with Python 2.7."+optional = false+python-versions = ">=3.6"+groups = ["main"]+files = [+ {file = "psutil-7.0.0-cp36-abi3-macosx_10_9_x86_64.whl", hash = "sha256:101d71dc322e3cffd7cea0650b09b3d08b8e7c4109dd6809fe452dfd00e58b25"},+ {file = "psutil-7.0.0-cp36-abi3-macosx_11_0_arm64.whl", hash = "sha256:39db632f6bb862eeccf56660871433e111b6ea58f2caea825571951d4b6aa3da"},+ {file = "psutil-7.0.0-cp36-abi3-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1fcee592b4c6f146991ca55919ea3d1f8926497a713ed7faaf8225e174581e91"},+ {file = "psutil-7.0.0-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4b1388a4f6875d7e2aff5c4ca1cc16c545ed41dd8bb596cefea80111db353a34"},+ {file = "psutil-7.0.0-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a5f098451abc2828f7dc6b58d44b532b22f2088f4999a937557b603ce72b1993"},+ {file = "psutil-7.0.0-cp36-cp36m-win32.whl", hash = "sha256:84df4eb63e16849689f76b1ffcb36db7b8de703d1bc1fe41773db487621b6c17"},+ {file = "psutil-7.0.0-cp36-cp36m-win_amd64.whl", hash = "sha256:1e744154a6580bc968a0195fd25e80432d3afec619daf145b9e5ba16cc1d688e"},+ {file = "psutil-7.0.0-cp37-abi3-win32.whl", hash = "sha256:ba3fcef7523064a6c9da440fc4d6bd07da93ac726b5733c29027d7dc95b39d99"},+ {file = "psutil-7.0.0-cp37-abi3-win_amd64.whl", hash = "sha256:4cf3d4eb1aa9b348dec30105c55cd9b7d4629285735a102beb4441e38db90553"},+ {file = "psutil-7.0.0.tar.gz", hash = "sha256:7be9c3eba38beccb6495ea33afd982a44074b78f28c434a1f51cc07fd315c456"},+]++[package.extras]+dev = ["abi3audit", "black (==24.10.0)", "check-manifest", "coverage", "packaging", "pylint", "pyperf", "pypinfo", "pytest", "pytest-cov", "pytest-xdist", "requests", "rstcheck", "ruff", "setuptools", "sphinx", "sphinx_rtd_theme", "toml-sort", "twine", "virtualenv", "vulture", "wheel"]+test = ["pytest", "pytest-xdist", "setuptools"]+[[package]]name = "pycparser"version = "2.22"diff --git a/pyproject.toml b/pyproject.tomlindex 12e9c16fa..4f917097b 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -22,6 +22,7 @@ dependencies = ["packaging (>=24.2)","pillow (>=11.1.0,<12.0.0)","platformdirs (>=4.3.6,<5.0.0)",+ "psutil (>=7.0.0,<8.0.0)","pydantic (>=2.10.6,<3.0.0)","pywin32>=308 ; sys_platform == 'win32'","pyyaml (>=6.0.2,<7.0.0)",