updating and refining plugin system refactor

This commit is contained in:
2026-04-28 22:20:54 -07:00
parent 8685fbb723
commit 323c24f4f4
33 changed files with 4287 additions and 3312 deletions
+2 -33
View File
@@ -1,37 +1,6 @@
"""Hydrus API helpers and export utilities."""
"""Compatibility shim for the Hydrus plugin-owned API module."""
from __future__ import annotations
import base64
import http.client
import json
import os
import re
import shutil
import subprocess
import sys
import time
from collections import deque
from SYS.logger import log
from SYS.utils_constant import ALL_SUPPORTED_EXTENSIONS as GLOBAL_SUPPORTED_EXTENSIONS
import tempfile
import logging
from dataclasses import dataclass, field
from pathlib import Path
from typing import Any, Dict, Iterable, List, Optional, Sequence, Set, Tuple, Type, TypeVar, Union, cast
from urllib.parse import urlsplit, urlencode, quote, urlunsplit, unquote
import httpx
logger = logging.getLogger(__name__)
from SYS.utils import (
decode_cbor,
jsonify,
ensure_directory,
unique_path,
)
from .HTTP import HTTPClient
from plugins.hydrusnetwork.api import * # noqa: F401,F403
class HydrusRequestError(RuntimeError):