mirror of
https://github.com/PaiGramTeam/PamGram.git
synced 2024-11-21 13:48:19 +00:00
37 lines
922 B
Python
37 lines
922 B
Python
"""一些常量"""
|
|
|
|
from functools import WRAPPER_ASSIGNMENTS as _WRAPPER_ASSIGNMENTS
|
|
from typing import List
|
|
|
|
from core.basemodel import RegionEnum
|
|
from utils.const._path import *
|
|
from utils.const._single import *
|
|
from utils.const._url import *
|
|
|
|
NOT_SET = object()
|
|
# noinspection PyTypeChecker
|
|
WRAPPER_ASSIGNMENTS: List[str] = list(_WRAPPER_ASSIGNMENTS) + [
|
|
"block",
|
|
"_catch_targets",
|
|
"_handler_datas",
|
|
"_conversation_handler_data",
|
|
"_error_handler_data",
|
|
"_job_data",
|
|
]
|
|
|
|
USER_AGENT: str = (
|
|
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) "
|
|
"Chrome/90.0.4430.72 Safari/537.36"
|
|
)
|
|
REQUEST_HEADERS: dict = {"User-Agent": USER_AGENT}
|
|
|
|
REGION_MAP = {
|
|
"1": RegionEnum.HYPERION,
|
|
"2": RegionEnum.HYPERION,
|
|
"5": RegionEnum.HYPERION,
|
|
"6": RegionEnum.HOYOLAB,
|
|
"7": RegionEnum.HOYOLAB,
|
|
"8": RegionEnum.HOYOLAB,
|
|
"9": RegionEnum.HOYOLAB,
|
|
}
|