mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-23 00:01:45 +00:00
233e7ab58d
Co-authored-by: luoshuijs <luoshuijs@outlook.com> Co-authored-by: Karako <karakohear@gmail.com> Co-authored-by: xtaodada <xtao@xtaolink.cn>
36 lines
921 B
Python
36 lines
921 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,
|
|
}
|