updating and refining plugin system refactor
This commit is contained in:
+2
-33
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user