mdbq 4.0.123__tar.gz → 4.0.124__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mdbq might be problematic. Click here for more details.
- {mdbq-4.0.123 → mdbq-4.0.124}/PKG-INFO +1 -1
- mdbq-4.0.124/mdbq/__version__.py +1 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq/auth/crypto.py +9 -9
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq.egg-info/PKG-INFO +1 -1
- mdbq-4.0.123/mdbq/__version__.py +0 -1
- {mdbq-4.0.123 → mdbq-4.0.124}/README.txt +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq/__init__.py +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq/auth/__init__.py +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq/auth/auth_backend.py +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq/auth/rate_limiter.py +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq/js/__init__.py +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq/js/jc.py +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq/log/__init__.py +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq/log/mylogger.py +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq/myconf/__init__.py +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq/myconf/myconf.py +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq/mysql/__init__.py +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq/mysql/deduplicator.py +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq/mysql/mysql.py +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq/mysql/s_query.py +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq/mysql/unique_.py +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq/mysql/uploader.py +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq/other/__init__.py +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq/other/download_sku_picture.py +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq/other/error_handler.py +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq/other/otk.py +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq/other/pov_city.py +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq/other/ua_sj.py +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq/pbix/__init__.py +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq/pbix/pbix_refresh.py +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq/pbix/refresh_all.py +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq/redis/__init__.py +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq/redis/getredis.py +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq/redis/redis_cache.py +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq/route/__init__.py +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq/route/analytics.py +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq/route/monitor.py +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq/route/routes.py +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq/selenium/__init__.py +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq/selenium/get_driver.py +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq/spider/__init__.py +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq.egg-info/SOURCES.txt +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq.egg-info/dependency_links.txt +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/mdbq.egg-info/top_level.txt +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/setup.cfg +0 -0
- {mdbq-4.0.123 → mdbq-4.0.124}/setup.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
VERSION = '4.0.124'
|
|
@@ -78,19 +78,19 @@ class CryptoConfig:
|
|
|
78
78
|
"""加密配置类"""
|
|
79
79
|
# 密钥配置
|
|
80
80
|
key_dir_path: str = field(default_factory=lambda: os.path.expanduser("~"))
|
|
81
|
-
public_key_filename: str = 'public_key'
|
|
82
|
-
private_key_filename: str = 'private_key'
|
|
83
|
-
keys_subdir: str = 'dpsk_keys'
|
|
81
|
+
public_key_filename: str = 'public_key' # 公钥文件名
|
|
82
|
+
private_key_filename: str = 'private_key' # 私钥文件名
|
|
83
|
+
keys_subdir: str = 'dpsk_keys' # 密钥文件夹名
|
|
84
84
|
|
|
85
85
|
# 验证配置
|
|
86
|
-
time_window_seconds: int = 300
|
|
87
|
-
enable_nonce_check: bool = True
|
|
88
|
-
nonce_expire_seconds: int = 600
|
|
89
|
-
nonce_redis_prefix: str = "
|
|
86
|
+
time_window_seconds: int = 300 # 时间窗口,300秒
|
|
87
|
+
enable_nonce_check: bool = True # 是否启用nonce防重放攻击
|
|
88
|
+
nonce_expire_seconds: int = 600 # 600秒后过期
|
|
89
|
+
nonce_redis_prefix: str = "api_identity_check" # 存储的键名
|
|
90
90
|
|
|
91
91
|
# 缓存配置
|
|
92
|
-
enable_key_cache: bool = True
|
|
93
|
-
key_cache_ttl_seconds: int = 3600
|
|
92
|
+
enable_key_cache: bool = True # 是否启用密钥缓存
|
|
93
|
+
key_cache_ttl_seconds: int = 3600 # 密钥缓存过期时间
|
|
94
94
|
|
|
95
95
|
def __post_init__(self):
|
|
96
96
|
"""配置验证"""
|
mdbq-4.0.123/mdbq/__version__.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
VERSION = '4.0.123'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|