ErisPulse 1.0.12__py3-none-any.whl → 1.0.13__py3-none-any.whl
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.
- ErisPulse/__main__.py +32 -32
- {erispulse-1.0.12.dist-info → erispulse-1.0.13.dist-info}/METADATA +1 -1
- {erispulse-1.0.12.dist-info → erispulse-1.0.13.dist-info}/RECORD +6 -6
- {erispulse-1.0.12.dist-info → erispulse-1.0.13.dist-info}/WHEEL +0 -0
- {erispulse-1.0.12.dist-info → erispulse-1.0.13.dist-info}/entry_points.txt +0 -0
- {erispulse-1.0.12.dist-info → erispulse-1.0.13.dist-info}/top_level.txt +0 -0
ErisPulse/__main__.py
CHANGED
|
@@ -103,38 +103,38 @@ class SourceManager:
|
|
|
103
103
|
async def fetch_source_data():
|
|
104
104
|
async with aiohttp.ClientSession() as session:
|
|
105
105
|
for origin in origins:
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
106
|
+
console.print(f"[cyan]正在获取 {origin}...[/cyan]")
|
|
107
|
+
try:
|
|
108
|
+
async with session.get(origin) as response:
|
|
109
|
+
response.raise_for_status()
|
|
110
|
+
if response.headers.get('Content-Type', '').startswith('application/json'):
|
|
111
|
+
content = await response.json()
|
|
112
|
+
providers[content["name"]] = content["base"]
|
|
113
|
+
|
|
114
|
+
for module in content["modules"].keys():
|
|
115
|
+
module_content = content["modules"][module]
|
|
116
|
+
modules[f'{module}@{content["name"]}'] = module_content
|
|
117
|
+
module_origin_name = module_content["path"]
|
|
118
|
+
module_alias_name = module
|
|
119
|
+
module_alias[f'{module_origin_name}@{content["name"]}'] = module_alias_name
|
|
120
|
+
|
|
121
|
+
table.add_row(
|
|
122
|
+
content['name'],
|
|
123
|
+
module,
|
|
124
|
+
f"{providers[content['name']]}{module_origin_name}"
|
|
125
|
+
)
|
|
126
|
+
else:
|
|
127
|
+
console.print(Panel(
|
|
128
|
+
f"[red]源 {origin} 返回的内容不是有效的 JSON 格式[/red]",
|
|
129
|
+
title="错误",
|
|
130
|
+
border_style="red"
|
|
131
|
+
))
|
|
132
|
+
except Exception as e:
|
|
133
|
+
console.print(Panel(
|
|
134
|
+
f"[red]获取 {origin} 时出错: {e}[/red]",
|
|
135
|
+
title="错误",
|
|
136
|
+
border_style="red"
|
|
137
|
+
))
|
|
138
138
|
|
|
139
139
|
asyncio.run(fetch_source_data())
|
|
140
140
|
console.print(table)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
ErisPulse/__init__.py,sha256=dh9zmUfcxnMGBWZqrOaQf0cTL5tGur74JEu_X_y-7Ek,6445
|
|
2
|
-
ErisPulse/__main__.py,sha256=
|
|
2
|
+
ErisPulse/__main__.py,sha256=s_SI3U9alSV2vHhHsVdvnA-lksBeFrXqowF5mXwYd_o,40295
|
|
3
3
|
ErisPulse/envManager.py,sha256=xUtzP8CWT0KnyyYE8Fm_5UB2VsMi1ODLHMKUoGCWwO4,9304
|
|
4
4
|
ErisPulse/errors.py,sha256=DwIQ2nx3GyxSY0ogoeezTSP11MwSVFeR1tx7obkP9Rs,430
|
|
5
5
|
ErisPulse/logger.py,sha256=Axlne7pLIsx1baq__37_rn_GGwlz8d6Bet-nuUR0eEc,1419
|
|
6
6
|
ErisPulse/util.py,sha256=6SawalGTS7y_TbTY8W6SMTIRN5Z2TgJoHZwQ8zaE_k0,1111
|
|
7
|
-
erispulse-1.0.
|
|
8
|
-
erispulse-1.0.
|
|
9
|
-
erispulse-1.0.
|
|
10
|
-
erispulse-1.0.
|
|
11
|
-
erispulse-1.0.
|
|
7
|
+
erispulse-1.0.13.dist-info/METADATA,sha256=Rk6UQcjSbK_fOq31HFjdf5wbD7hrZMeXr8cCywrtOW8,2989
|
|
8
|
+
erispulse-1.0.13.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
|
|
9
|
+
erispulse-1.0.13.dist-info/entry_points.txt,sha256=AjKvOdYR7QGXVpEJhjUYUwV2JluE4lm9vNbknC3hjOM,155
|
|
10
|
+
erispulse-1.0.13.dist-info/top_level.txt,sha256=Lm_qtkVvNJR8_dXh_qEDdl_12cZGpic-i4HUlVVUMZc,10
|
|
11
|
+
erispulse-1.0.13.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|