Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
refactor: replace inquirerPy with inquirer (#102)
NTFSvolumea8c9a8e3f57e
diff --git a/cyberdrop_dl/clients/hash_client.py b/cyberdrop_dl/clients/hash_client.pyindex c1142de88..268c80aef 100644--- a/cyberdrop_dl/clients/hash_client.py+++ b/cyberdrop_dl/clients/hash_client.py@@ -10,7 +10,6 @@ from send2trash import send2trashfrom cyberdrop_dl import constantsfrom cyberdrop_dl.constants import Hashing-from cyberdrop_dl.ui.prompts.basic_prompts import enter_to_continuefrom cyberdrop_dl.utils.utilities import get_size_or_noneif TYPE_CHECKING:@@ -23,12 +22,7 @@ if TYPE_CHECKING:logger = logging.getLogger(__name__)-def hash_directory_scanner(manager: Manager, path: Path) -> None:- asyncio.run(_hash_directory_scanner_helper(manager, path))- enter_to_continue()---async def _hash_directory_scanner_helper(manager: Manager, path: Path) -> None:+async def hash_directory_scanner(manager: Manager, path: Path) -> None:await manager.async_db_hash_startup()await manager.hash_manager.hash_client.hash_directory(path)manager.progress_manager.print_dedupe_stats()diff --git a/cyberdrop_dl/director.py b/cyberdrop_dl/director.pyindex 30f20075b..b446264c8 100644--- a/cyberdrop_dl/director.py+++ b/cyberdrop_dl/director.py@@ -180,7 +180,7 @@ def _setup_manager(args: Sequence[str] | None = None) -> Manager:manager.startup()if not manager.parsed_args.cli_only_args.download:- ProgramUI(manager)+ ProgramUI(manager).run()return managerdiff --git a/cyberdrop_dl/managers/config_manager.py b/cyberdrop_dl/managers/config_manager.pyindex dfcc8d953..a81ad21c3 100644--- a/cyberdrop_dl/managers/config_manager.py+++ b/cyberdrop_dl/managers/config_manager.py@@ -2,13 +2,11 @@ from __future__ import annotationsfrom dataclasses import fieldfrom pathlib import Path-from time import sleepfrom typing import TYPE_CHECKINGfrom cyberdrop_dl import yamlfrom cyberdrop_dl.config import AuthSettings, ConfigSettings, GlobalSettingsfrom cyberdrop_dl.exceptions import InvalidYamlError-from cyberdrop_dl.managers.logs import LogManagerfrom cyberdrop_dl.utils.apprise import get_apprise_urlsif TYPE_CHECKING:@@ -119,13 +117,6 @@ class ConfigManager:yaml.save(self.global_settings, self.global_settings_data)- def reload_config(self) -> None:- self.startup()- self.manager.config.resolve_paths()- sleep(1)- self.manager.logs = LogManager.from_manager(self.manager)- sleep(1)-def _is_in_file(search_value: str, file: Path) -> bool:if not file.is_file():diff --git a/cyberdrop_dl/ui/program_ui.py b/cyberdrop_dl/ui/program_ui.pyindex 20dfb228d..c66d546f0 100644--- a/cyberdrop_dl/ui/program_ui.py+++ b/cyberdrop_dl/ui/program_ui.py@@ -1,91 +1,77 @@from __future__ import annotationsimport asyncio-import functools+import dataclasses+import osimport sys-from typing import TYPE_CHECKING, Any+from pathlib import Path+from typing import TYPE_CHECKING-from requests import request+import aiohttp+import inquirer+import inquirer.questions+from inquirer.themes import BlueComposurefrom rich.console import Consolefrom rich.markdown import Markdownfrom rich.text import Text+from cyberdrop_dl import __version__from cyberdrop_dl.clients.hash_client import hash_directory_scanner-from cyberdrop_dl.ui.prompts import user_prompts-from cyberdrop_dl.ui.prompts.basic_prompts import ask_dir_path, enter_to_continue-from cyberdrop_dl.ui.prompts.defaults import DONE_CHOICE, EXIT_CHOICE+from cyberdrop_dl.progress import hyperlinkfrom cyberdrop_dl.utils import text_editorfrom cyberdrop_dl.utils.sorting import Sorter-from cyberdrop_dl.utils.utilities import clear_termif TYPE_CHECKING:- from collections.abc import Callable, Mapping- from pathlib import Path-- from InquirerPy.base.control import Choice+ from collections.abc import Callable, Iterablefrom cyberdrop_dl.managers.manager import Managerconsole = Console()-ERROR_PREFIX = Text("ERROR: ", style="bold red")+_ERROR = Text("ERROR: ", style="bold red")+_CHANGELOG_URL = "https://raw.githubusercontent.com/NTFSvolume/cdl/refs/heads/main/CHANGELOG.md"+_changelog: str = ""[email protected](slots=True, frozen=True)class ProgramUI:- def __init__(self, manager: Manager, run: bool = True) -> None:- self.manager = manager- if run:- self.run()-- @staticmethod- def print_error(msg: str, critical: bool = False) -> None:- text = ERROR_PREFIX + msg- console.print(text, style="bold red" if critical else None)- if critical:- sys.exit(1)- enter_to_continue()-- def run(self) -> bool | None:- done = False- while not done:- done = self._run()- return done-- def _run(self) -> bool | None:- """Program UI."""- clear_term()- options_map = {- 1: self._download,- 2: self._retry_failed_download,- 3: self._scan_and_create_hashes,- 4: self._sort_files,- 5: self._edit_urls,- 6: self._view_changelog,- }-- answer = user_prompts.main_prompt(self.manager)- result = self._process_answer(answer, options_map)- return_to_main = result and result != DONE_CHOICE- if return_to_main:- clear_term()- return return_to_main-- def _download(self) -> bool:- """Starts download process."""- return True+ manager: Manager+ choices: dict[str, Callable[[], bool | None]] = dataclasses.field(init=False, default_factory=dict)++ def __post_init__(self) -> None:+ self.choices.update(+ {+ "Download": lambda: True,+ "Retry failed downloads": self._retry_failed_download,+ "Create file hashes": self._scan_and_create_hashes,+ "Sort files in download folder": self._sort_files,+ "Edit URLs.txt": self._edit_urls,+ "View changelog": self._view_changelog,+ "Exit": lambda: sys.exit(0),+ }+ )++ def run(self) -> None:+ while True:+ _app_header(self.manager)+ answer = _ask_choices(self.choices)+ done = self.choices[answer]()+ if done:+ breakdef _retry_failed_download(self) -> bool:- """Sets retry failed and starts download process."""self.manager.parsed_args.cli_only_args.retry_failed = Truereturn Truedef _scan_and_create_hashes(self) -> None:- """Scans a folder and creates hashes for all of its files."""- path = ask_dir_path("Select the directory to scan", default=str(self.manager.config.files.download_folder))- hash_directory_scanner(self.manager, path)+ path = _ask_dir(+ "Select the directory to scan",+ default=self.manager.config.files.download_folder,+ )+ asyncio.run(hash_directory_scanner(self.manager, path))+ _enter_to_continue()def _sort_files(self) -> None:- """Sort files in download folder"""sorter = Sorter.from_manager(self.manager)console.print(f"You are about to sort files from '{sorter.input_dir}' to '{sorter.output_dir}'", style="bold red"@@ -93,58 +79,95 @@ class ProgramUI:answer = input("Type 'YES' to proceed")if answer.strip().casefold() == "yes":asyncio.run(sorter.run())- enter_to_continue()+ _enter_to_continue()def _view_changelog(self) -> None:- clear_term()- try:- changelog_content = _get_changelog()- except Exception:- self.print_error("UNABLE TO GET CHANGELOG INFORMATION")- return None+ global _changelog++ _clear_term()++ if not _changelog:+ try:+ _changelog = asyncio.run(_get_changelog())+ except Exception:+ console.print(_ERROR, "UNABLE TO GET CHANGELOG INFORMATION")+ _enter_to_continue()+ return Nonewith console.pager(links=True):- console.print(Markdown(changelog_content, justify="left"))+ console.print(Markdown(_changelog, justify="left"))def _edit_urls(self) -> None:- self._open_in_text_editor(self.manager.config.files.input_file, reload_config=False)-- def _open_in_text_editor(self, file_path: Path, *, reload_config: bool = True):try:- text_editor.open(file_path)+ text_editor.open(self.manager.config.files.input_file)except ValueError as e:- self.print_error(str(e))- return- if reload_config:- console.print("Revalidating config, please wait..")- self.manager.config_manager.reload_config()-- def _process_answer(- self, answer: Any, options_map: Mapping[int, Callable[[], bool | None]]- ) -> Choice | bool | None:- """Checks prompt answer and executes corresponding function."""- if answer == EXIT_CHOICE.value:- sys.exit(0)- if answer == DONE_CHOICE.value:- return DONE_CHOICE-- function_to_call = options_map.get(answer)- if not function_to_call:- self.print_error("Something went wrong. Please report it to the developer", critical=True)- sys.exit(1)-- return function_to_call()---def _get_changelog() -> str:- """Get latest changelog file from github. Returns its content."""-- url = "https://raw.githubusercontent.com/NTFSvolume/cdl/refs/heads/main/CHANGELOG.md"- with request("GET", url, timeout=15) as response:- response.raise_for_status()- content = response.text-- lines = content.splitlines()- # remove keep_a_changelog disclaimer- return "\n".join(lines[:21] + lines[25:])+ console.print(_ERROR, str(e))+ _enter_to_continue()+++async def _get_changelog() -> str:+ async with aiohttp.request(+ "GET",+ _CHANGELOG_URL,+ raise_for_status=True,+ ) as response:+ return await response.text()+++def _app_header(manager: Manager) -> None:+ _clear_term()+ console.print(f"[bold]cyberdrop-dl ([blue]v{__version__!s}[/blue])[/bold]")+ console.print(f"config file: [blue]{hyperlink(manager.config_manager.settings)}[/blue]\n")+++def _ask_choices(choices: Iterable[str]) -> str:+ return _ask(+ inquirer.List(+ "main",+ message="What would you like to do",+ choices=list(choices),+ )+ )+++def _ask(question: inquirer.questions.Question) -> str:+ answers = inquirer.prompt(+ [question],+ raise_keyboard_interrupt=True,+ theme=BlueComposure(),+ )+ assert answers+ return next(iter(answers.values()))+++def _ask_dir(message: str = "Select dir path", default: Path = Path.home()) -> Path: # noqa: B008+ while True:+ try:+ answer = _ask(+ inquirer.Text(+ "dir",+ message=message,+ default=default,+ )+ )++ path = Path(answer)+ if not path.exists():+ raise FileNotFoundError(answer)+ if not path.is_dir():+ raise NotADirectoryError(answer)++ except (NotADirectoryError, FileNotFoundError) as e:+ console.print(_ERROR, repr(e))+ else:+ return path+++def _enter_to_continue() -> None:+ if "pytest" in sys.modules:+ return+ _ = input("Press <ENTER> to continue")+++def _clear_term() -> None:+ _ = os.system("cls" if os.name == "nt" else "clear")diff --git a/cyberdrop_dl/ui/prompts/__init__.py b/cyberdrop_dl/ui/prompts/__init__.pydeleted file mode 100644index e69de29bb..000000000diff --git a/cyberdrop_dl/ui/prompts/basic_prompts.py b/cyberdrop_dl/ui/prompts/basic_prompts.pydeleted file mode 100644index aaf02987c..000000000--- a/cyberdrop_dl/ui/prompts/basic_prompts.py+++ /dev/null@@ -1,112 +0,0 @@-# type: ignore[reportPrivateImportUsage]-import sys-from collections.abc import Mapping-from pathlib import Path--from InquirerPy import inquirer-from InquirerPy.base.control import Choice-from InquirerPy.separator import Separator-from InquirerPy.validator import EmptyInputValidator, PathValidator--from cyberdrop_dl.ui.prompts.defaults import DEFAULT_OPTIONS, DONE_CHOICE---def ask_text(message: str, validate_empty: bool = True, **kwargs):- options = DEFAULT_OPTIONS | kwargs- return inquirer.text(- message=message,- validate=EmptyInputValidator("Input should not be empty") if validate_empty else None,- **options,- ).execute()---def ask_choice(choices: list[Choice], *, message: str = "What would you like to do:", **kwargs):- options = DEFAULT_OPTIONS | kwargs- return inquirer.select(message=message, choices=choices, **options).execute()---def ask_multi_choice(choices: list[Choice], *, message: str = "What would you like to do:", **kwargs):- return ask_choice(choices, message=message, multiselect=True, **kwargs)---def ask_checkbox(choices: list[Choice], *, message: str = "Select multiple options:", **kwargs):- options = DEFAULT_OPTIONS | {"long_instruction": "ARROW KEYS: Navigate | SPACE: Select | ENTER: Confirm"} | kwargs- return inquirer.checkbox(message=message, choices=choices, **options).execute()---def ask_choice_fuzzy(choices: list[Choice], message: str, validate_empty: bool = True, **kwargs):- options = (- DEFAULT_OPTIONS- | {"long_instruction": "ARROW KEYS: Navigate | TYPE: Filter | TAB: select, ENTER: Finish Selection"}- | kwargs- )- custom_validate = options.pop("validate", None)- validate = (- EmptyInputValidator("Input should not be empty")- if validate_empty and custom_validate is None- else custom_validate- )- return inquirer.fuzzy(- message=message,- choices=choices,- validate=validate,- **options,- ).execute()---def ask_path(message: str = "Select path", *, validator_options: dict | None = None, **kwargs) -> Path:- options = DEFAULT_OPTIONS | {"default": str(Path.home())} | kwargs- return Path(- inquirer.filepath(message=message, validate=PathValidator(**(validator_options or {})), **options).execute()- )---def ask_file_path(message: str = "Select file path", **kwargs) -> Path:- options = DEFAULT_OPTIONS | kwargs- validator_options = {"is_file": True, "message": "Input is not a file"}- return ask_path(message, validator_options=validator_options, **options)---def ask_dir_path(message: str = "Select dir path", **kwargs) -> Path:- options = DEFAULT_OPTIONS | kwargs- validator_options = {"is_dir": True, "message": "Input is not a directory"}- return ask_path(message, validator_options=validator_options, **options)---def ask_toggle(message: str = "enable", **kwargs):- options = DEFAULT_OPTIONS | {"long_instruction": "Y: Yes | N: No"} | kwargs- return inquirer.confirm(message=message, **options).execute()---def enter_to_continue(message: str = "Press <ENTER> to continue", **kwargs):- if "pytest" in sys.modules:- return- options = DEFAULT_OPTIONS | {"long_instruction": "ENTER: continue"} | kwargs- msg = f"\n{message}"- return inquirer.confirm(message=msg, qmark="", **options).execute()---def create_choices(- options_groups: list[list[str]] | Mapping[str, list[list[str]]],- append_last: Choice = DONE_CHOICE,- *,- disabled_choices: list[str] | None = None,-):- if isinstance(options_groups, Mapping):- options_groups = list(options_groups.values())- disabled_choices = disabled_choices or []- options = [option for group in options_groups for option in group]- choices = []- for index, option in enumerate(options, 1):- enabled = option not in disabled_choices- choices.append(Choice(index, option, enabled))- choices.append(append_last)-- separator_indexes = []- for group in options_groups:- separator_indexes.append(len(group) + (separator_indexes[-1] if separator_indexes else 0))-- for count, index in enumerate(separator_indexes):- choices.insert(index + count, Separator())-- return choicesdiff --git a/cyberdrop_dl/ui/prompts/defaults.py b/cyberdrop_dl/ui/prompts/defaults.pydeleted file mode 100644index bc5e4b993..000000000--- a/cyberdrop_dl/ui/prompts/defaults.py+++ /dev/null@@ -1,7 +0,0 @@-from InquirerPy.base.control import Choice--EXIT_CHOICE = Choice("Exit")-DONE_CHOICE = Choice("Done")-ALL_CHOICE = Choice("All of the above")--DEFAULT_OPTIONS = {"long_instruction": "ARROW KEYS: Navigate | ENTER: Select", "vi_mode": False}diff --git a/cyberdrop_dl/ui/prompts/user_prompts.py b/cyberdrop_dl/ui/prompts/user_prompts.pydeleted file mode 100644index e0864ac62..000000000--- a/cyberdrop_dl/ui/prompts/user_prompts.py+++ /dev/null@@ -1,37 +0,0 @@-# type: ignore[reportPrivateImportUsage]-from __future__ import annotations--from typing import TYPE_CHECKING--from rich.console import Console--from cyberdrop_dl import __version__-from cyberdrop_dl.ui.prompts import basic_prompts-from cyberdrop_dl.ui.prompts.defaults import EXIT_CHOICE-from cyberdrop_dl.utils.utilities import clear_term--if TYPE_CHECKING:- from cyberdrop_dl.managers.manager import Manager--console = Console()---def main_prompt(manager: Manager) -> int:- """Main prompt for the program."""- prompt_header(manager)- OPTIONS = {- "group_1": ["Download", "Retry failed downloads", "Create file hashes", "Sort files in download folder"],- "group_2": ["Edit URLs.txt"],- "group_3": ["View changelog"],- }-- choices = basic_prompts.create_choices(OPTIONS, append_last=EXIT_CHOICE)-- return basic_prompts.ask_choice(choices)---def prompt_header(manager: Manager, title: str | None = None) -> None:- clear_term()- title = title or f"[bold]Cyberdrop Downloader ([blue]V{__version__!s}[/blue])[/bold]"- console.print(title)- console.print(f"[bold]Current config:[/bold] [blue]{manager.config_manager.loaded_config}[/blue]")diff --git a/cyberdrop_dl/utils/utilities.py b/cyberdrop_dl/utils/utilities.pyindex b5c5e5789..c65a5b26b 100644--- a/cyberdrop_dl/utils/utilities.py+++ b/cyberdrop_dl/utils/utilities.py@@ -210,10 +210,6 @@ def get_download_path(manager: Manager, scrape_item: ScrapeItem, domain: str) ->"""~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"""-def clear_term():- os.system("cls" if os.name == "nt" else "clear")--def get_size(path: os.DirEntry[str]) -> int | None:try:return path.stat(follow_symlinks=False).st_sizediff --git a/pyproject.toml b/pyproject.tomlindex bc05cae5d..7515a32db 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -19,7 +19,7 @@ dependencies = ["certifi >=2026.2.25","curl-cffi >=0.14; implementation_name == 'cpython' ","imagesize >=2.0.0",- "inquirerpy >=0.3.4",+ "inquirer>=3.4.1","jeepney >=0.9.0; 'bsd' in sys_platform or sys_platform == 'linux'","m3u8 >=6.0.0","myjdapi >=1.1.10",diff --git a/tests/test_hashing.py b/tests/test_hashing.pyindex 810adfc3f..8eb90603b 100644--- a/tests/test_hashing.py+++ b/tests/test_hashing.py@@ -49,7 +49,7 @@ def create_files(path: Path, number: int) -> None:},],)-def test_hash_directory_scanner(manager: Manager, expected_results: set[tuple[str, str]]) -> None:+async def test_hash_directory_scanner(manager: Manager, expected_results: set[tuple[str, str]]) -> None:count = Counter(x[0] for x in expected_results)n_files = max(count.values())algos = count.keys()@@ -59,10 +59,10 @@ def test_hash_directory_scanner(manager: Manager, expected_results: set[tuple[stmanager.config.files.download_folder.mkdir(parents=True)db_path = manager.appdata.db_file- hash_directory_scanner(manager, manager.config.files.download_folder)+ await hash_directory_scanner(manager, manager.config.files.download_folder)assert not get_hashes(db_path)create_files(manager.config.files.download_folder, n_files)- hash_directory_scanner(manager, manager.config.files.download_folder)+ await hash_directory_scanner(manager, manager.config.files.download_folder)results = get_hashes(db_path)assert len(results) == len(expected_results)assert results == expected_resultsdiff --git a/tests/test_startup.py b/tests/test_startup.pyindex bd1a434bc..c0175aa8e 100644--- a/tests/test_startup.py+++ b/tests/test_startup.py@@ -13,7 +13,7 @@ def test_startup(tmp_cwd: Path, monkeypatch: pytest.MonkeyPatch, capsys: pytest.def main_ui(*_) -> None:print(msg)- monkeypatch.setattr(ProgramUI, "__init__", main_ui)+ monkeypatch.setattr(ProgramUI, "run", main_ui)run(())captured = capsys.readouterr()output = captured.outdiff --git a/uv.lock b/uv.lockindex 851fbc918..afd9d5449 100644--- a/uv.lock+++ b/uv.lock@@ -187,6 +187,15 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/78/b6/6307fbef88d9b5ee7421e68d78a9f162e0da4900bc5f5793f6d3d0e34fb8/annotated_types-0.7.0-py3-none-any.whl", hash = "sha256:1f02e8b43a8fbbc3f3e0d4f0f4bfc8131bcb4eebe8849b8e5c773f3a1c582a53", size = 13643, upload-time = "2024-05-20T21:33:24.1Z" },]+[[package]]+name = "ansicon"+version = "1.89.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/b6/e2/1c866404ddbd280efedff4a9f15abfe943cb83cde6e895022370f3a61f85/ansicon-1.89.0.tar.gz", hash = "sha256:e4d039def5768a47e4afec8e89e83ec3ae5a26bf00ad851f914d1240b444d2b1", size = 67312, upload-time = "2019-04-29T20:23:57.314Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/75/f9/f1c10e223c7b56a38109a3f2eb4e7fe9a757ea3ed3a166754fb30f65e466/ansicon-1.89.0-py2.py3-none-any.whl", hash = "sha256:f1def52d17f65c2c9682cf8370c03f541f410c1752d6a14029f97318e4b9dfec", size = 63675, upload-time = "2019-04-29T20:23:53.83Z" },+]+[[package]]name = "apprise"version = "1.9.7"@@ -323,6 +332,19 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/1a/39/47f9197bdd44df24d67ac8893641e16f386c984a0619ef2ee4c51fbbc019/beautifulsoup4-4.14.3-py3-none-any.whl", hash = "sha256:0918bfe44902e6ad8d57732ba310582e98da931428d231a5ecb9e7c703a735bb", size = 107721, upload-time = "2025-11-30T15:08:24.087Z" },]+[[package]]+name = "blessed"+version = "1.38.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "jinxed", marker = "sys_platform == 'win32'" },+ { name = "wcwidth" },+]+sdist = { url = "https://files.pythonhosted.org/packages/9f/1f/f2535d0eb1fb8af7915f96b4d42810345c255bbbca39939a23e59c0695d8/blessed-1.38.0.tar.gz", hash = "sha256:89ce6ec6567f7aced0716b73577b7a1702eb23c667838bb46d7d9bd48c36d1b3", size = 14008103, upload-time = "2026-03-30T22:47:36.787Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/08/81/26113a258b8b4068a7ae528cb1c13f1af2acfa0702368312183013ddc4f4/blessed-1.38.0-py3-none-any.whl", hash = "sha256:905884ae650e41284fa4fd7d0c3eed5e5b4a42be8c2bfb24c90d79fbf26a1490", size = 121251, upload-time = "2026-03-30T22:47:34.138Z" },+]+[[package]]name = "brotli"version = "1.2.0"@@ -720,7 +742,7 @@ dependencies = [{ name = "certifi" },{ name = "curl-cffi", marker = "implementation_name == 'cpython'" },{ name = "imagesize" },- { name = "inquirerpy" },+ { name = "inquirer" },{ name = "jeepney", marker = "'bsd' in sys_platform or sys_platform == 'linux'" },{ name = "m3u8" },{ name = "myjdapi" },@@ -764,7 +786,7 @@ requires-dist = [{ name = "certifi", specifier = ">=2026.2.25" },{ name = "curl-cffi", marker = "implementation_name == 'cpython'", specifier = ">=0.14" },{ name = "imagesize", specifier = ">=2.0.0" },- { name = "inquirerpy", specifier = ">=0.3.4" },+ { name = "inquirer", specifier = ">=3.4.1" },{ name = "jeepney", marker = "'bsd' in sys_platform or sys_platform == 'linux'", specifier = ">=0.9.0" },{ name = "m3u8", specifier = ">=6.0.0" },{ name = "myjdapi", specifier = ">=1.1.10" },@@ -803,6 +825,19 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/33/6b/e0547afaf41bf2c42e52430072fa5658766e3d65bd4b03a563d1b6336f57/distlib-0.4.0-py2.py3-none-any.whl", hash = "sha256:9659f7d87e46584a30b5780e43ac7a2143098441670ff0a49d5f9034c54a6c16", size = 469047, upload-time = "2025-07-17T16:51:58.613Z" },]+[[package]]+name = "editor"+version = "1.7.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "runs" },+ { name = "xmod" },+]+sdist = { url = "https://files.pythonhosted.org/packages/d9/4f/00e0b75d86bb1e6a943c08942619e3f31de54a0dce3b33b14ae3c2af2dc0/editor-1.7.0.tar.gz", hash = "sha256:979b25e3f7e0386af4478e7392ecb99e6c16a42db7c4336d6b16658fa0449fb3", size = 2355, upload-time = "2026-02-03T13:51:30.717Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/a6/b5/f566c215c58d7d2b8d39104b6cda00f31a18bb480486cb7f0d68de6131f9/editor-1.7.0-py3-none-any.whl", hash = "sha256:8b1ad5e99846b076b96b18f7bc39ae21952c8e20d375c3f8f98fd02cacf19367", size = 3383, upload-time = "2026-02-03T13:51:29.075Z" },+]+[[package]]name = "filelock"version = "3.25.2"@@ -945,16 +980,17 @@ wheels = [][[package]]-name = "inquirerpy"-version = "0.3.4"+name = "inquirer"+version = "3.4.1"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "pfzy" },- { name = "prompt-toolkit" },+ { name = "blessed" },+ { name = "editor" },+ { name = "readchar" },]-sdist = { url = "https://files.pythonhosted.org/packages/64/73/7570847b9da026e07053da3bbe2ac7ea6cde6bb2cbd3c7a5a950fa0ae40b/InquirerPy-0.3.4.tar.gz", hash = "sha256:89d2ada0111f337483cb41ae31073108b2ec1e618a49d7110b0d7ade89fc197e", size = 44431, upload-time = "2022-06-27T23:11:20.598Z" }+sdist = { url = "https://files.pythonhosted.org/packages/c1/79/165579fdcd3c2439503732ae76394bf77f5542f3dd18135b60e808e4813c/inquirer-3.4.1.tar.gz", hash = "sha256:60d169fddffe297e2f8ad54ab33698249ccfc3fc377dafb1e5cf01a0efb9cbe5", size = 14069, upload-time = "2025-08-02T18:36:27.901Z" }wheels = [- { url = "https://files.pythonhosted.org/packages/ce/ff/3b59672c47c6284e8005b42e84ceba13864aa0f39f067c973d1af02f5d91/InquirerPy-0.3.4-py3-none-any.whl", hash = "sha256:c65fdfbac1fa00e3ee4fb10679f4d3ed7a012abf4833910e63c295827fe2a7d4", size = 67677, upload-time = "2022-06-27T23:11:17.723Z" },+ { url = "https://files.pythonhosted.org/packages/f0/fd/7c404169a3e04a908df0644893a331f253a7f221961f2b6c0cf44430ae5a/inquirer-3.4.1-py3-none-any.whl", hash = "sha256:717bf146d547b595d2495e7285fd55545cff85e5ce01decc7487d2ec6a605412", size = 18152, upload-time = "2025-08-02T18:36:26.753Z" },][[package]]@@ -966,6 +1002,18 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/b2/a3/e137168c9c44d18eff0376253da9f1e9234d0239e0ee230d2fee6cea8e55/jeepney-0.9.0-py3-none-any.whl", hash = "sha256:97e5714520c16fc0a45695e5365a2e11b81ea79bba796e26f9f1d178cb182683", size = 49010, upload-time = "2025-02-27T18:51:00.104Z" },]+[[package]]+name = "jinxed"+version = "1.4.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "ansicon", marker = "sys_platform == 'win32'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/3c/e9/96633f12b6829eb1e91e70e5846704c0b1293ec47bd65a7b681e19c8eeff/jinxed-1.4.0.tar.gz", hash = "sha256:8f7801a10799de39e509eb5abc6d131ee169c1ce4fd5d568aa85b5f56ed58068", size = 37169, upload-time = "2026-03-26T01:49:38.337Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/71/b7/9ab2b79bcbcc53cf8772a19d26713dd9574d4d81ee4fea29678d8cadcec7/jinxed-1.4.0-py2.py3-none-any.whl", hash = "sha256:95876a8b270081b8e28a9bbcbabe4fa98327faa91102526f724ed1904f9a55ac", size = 34522, upload-time = "2026-03-26T01:49:36.762Z" },+]+[[package]]name = "m3u8"version = "6.0.0"@@ -1153,15 +1201,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/b7/b9/c538f279a4e237a006a2c98387d081e9eb060d203d8ed34467cc0f0b9b53/packaging-26.0-py3-none-any.whl", hash = "sha256:b36f1fef9334a5588b4166f8bcd26a14e521f2b55e6b9de3aaa80d3ff7a37529", size = 74366, upload-time = "2026-01-21T20:50:37.788Z" },]-[[package]]-name = "pfzy"-version = "0.3.4"-source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/d9/5a/32b50c077c86bfccc7bed4881c5a2b823518f5450a30e639db5d3711952e/pfzy-0.3.4.tar.gz", hash = "sha256:717ea765dd10b63618e7298b2d98efd819e0b30cd5905c9707223dceeb94b3f1", size = 8396, upload-time = "2022-01-28T02:26:17.946Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/8c/d7/8ff98376b1acc4503253b685ea09981697385ce344d4e3935c2af49e044d/pfzy-0.3.4-py3-none-any.whl", hash = "sha256:5f50d5b2b3207fa72e7ec0ef08372ef652685470974a107d0d4999fc5a903a96", size = 8537, upload-time = "2022-01-28T02:26:16.047Z" },-]-[[package]]name = "platformdirs"version = "4.9.4"@@ -1204,18 +1243,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/53/05/9cca1708bb8c65264124eb4b04251e0f65ce5bfc707080bb6b492d5a0df7/prek-0.3.8-py3-none-win_arm64.whl", hash = "sha256:a2614647aeafa817a5802ccb9561e92eedc20dcf840639a1b00826e2c2442515", size = 5190872, upload-time = "2026-03-23T08:23:29.463Z" },]-[[package]]-name = "prompt-toolkit"-version = "3.0.52"-source = { registry = "https://pypi.org/simple" }-dependencies = [- { name = "wcwidth" },-]-sdist = { url = "https://files.pythonhosted.org/packages/a1/96/06e01a7b38dce6fe1db213e061a4602dd6032a8a97ef6c1a862537732421/prompt_toolkit-3.0.52.tar.gz", hash = "sha256:28cde192929c8e7321de85de1ddbe736f1375148b02f2e17edd840042b1be855", size = 434198, upload-time = "2025-08-27T15:24:02.057Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/84/03/0d3ce49e2505ae70cf43bc5bb3033955d2fc9f932163e84dc0779cc47f48/prompt_toolkit-3.0.52-py3-none-any.whl", hash = "sha256:9aac639a3bbd33284347de5ad8d68ecc044b91a762dc39b7c21095fcd6a19955", size = 391431, upload-time = "2025-08-27T15:23:59.498Z" },-]-[[package]]name = "propcache"version = "0.4.1"@@ -1706,6 +1733,15 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/f1/12/de94a39c2ef588c7e6455cfbe7343d3b2dc9d6b6b2f40c4c6565744c873d/pyyaml-6.0.3-cp314-cp314t-win_arm64.whl", hash = "sha256:ebc55a14a21cb14062aa4162f906cd962b28e2e9ea38f9b4391244cd8de4ae0b", size = 149341, upload-time = "2025-09-25T21:32:56.828Z" },]+[[package]]+name = "readchar"+version = "4.2.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/dd/f8/8657b8cbb4ebeabfbdf991ac40eca8a1d1bd012011bd44ad1ed10f5cb494/readchar-4.2.1.tar.gz", hash = "sha256:91ce3faf07688de14d800592951e5575e9c7a3213738ed01d394dcc949b79adb", size = 9685, upload-time = "2024-11-04T18:28:07.757Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/a9/10/e4b1e0e5b6b6745c8098c275b69bc9d73e9542d5c7da4f137542b499ed44/readchar-4.2.1-py3-none-any.whl", hash = "sha256:a769305cd3994bb5fa2764aa4073452dc105a4ec39068ffe6efd3c20c60acc77", size = 9350, upload-time = "2024-11-04T18:28:02.859Z" },+]+[[package]]name = "requests"version = "2.32.5"@@ -1772,6 +1808,18 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/7f/d0/578c47dd68152ddddddf31cd7fc67dc30b7cdf639a86275fda821b0d9d98/ruff-0.15.6-py3-none-win_arm64.whl", hash = "sha256:c34de3dd0b0ba203be50ae70f5910b17188556630e2178fd7d79fc030eb0d837", size = 11060497, upload-time = "2026-03-12T23:05:25.968Z" },]+[[package]]+name = "runs"+version = "1.3.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "xmod" },+]+sdist = { url = "https://files.pythonhosted.org/packages/f2/ae/095cb626504733e288a81f871f86b10530b787d77c50193c170daaca0df1/runs-1.3.0.tar.gz", hash = "sha256:cca304b631dbefec598c7bfbcfb50d6feace6d3a968734b67fd42d3c728f5a05", size = 4585, upload-time = "2026-02-03T15:59:58.974Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/4f/b6/049c75d399ccf6e25abea0652b85bf7e7e101e0300aa9c1d284ad7061c0b/runs-1.3.0-py3-none-any.whl", hash = "sha256:e71a551cfa8da9ef882cac1d5a108bda78c9edee5b8d87e37c1003da5b6a7bed", size = 6406, upload-time = "2026-02-03T15:59:59.96Z" },+]+[[package]]name = "send2trash"version = "2.1.0"@@ -1945,6 +1993,15 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/68/5a/199c59e0a824a3db2b89c5d2dade7ab5f9624dbf6448dc291b46d5ec94d3/wcwidth-0.6.0-py3-none-any.whl", hash = "sha256:1a3a1e510b553315f8e146c54764f4fb6264ffad731b3d78088cdb1478ffbdad", size = 94189, upload-time = "2026-02-06T19:19:39.646Z" },]+[[package]]+name = "xmod"+version = "1.9.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/8b/3f/0bc3b89c1dd4dee1f954db4c857f8fbe9cdfa8b25efe370b6d78399a93ac/xmod-1.9.0.tar.gz", hash = "sha256:98b2e7e8e659c51b635f4e98faf3fa1f3f96dab2805f19ddd6e352bbb4d23991", size = 3501, upload-time = "2026-02-03T14:34:48.881Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/5c/a4/74b9510cf2922fb923f6330fd47c049e9e89d984d6dd445c82a85ce7c4e9/xmod-1.9.0-py3-none-any.whl", hash = "sha256:0a549a055e0391a53e356a63552baa7e562560a6e9423c1437cb53b5d4f697a0", size = 4451, upload-time = "2026-02-03T14:34:48.032Z" },+]+[[package]]name = "xxhash"version = "3.6.0"