ErisPulse 1.0.12__tar.gz → 1.0.13__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.
@@ -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
- with console.status(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
- ))
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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ErisPulse
3
- Version: 1.0.12
3
+ Version: 1.0.13
4
4
  Summary: ErisPulse 是一个模块化、可扩展的异步 Python SDK 框架,主要用于构建高效、可维护的机器人应用程序。
5
5
  Home-page: https://github.com/wsu2059q/ErisPulse
6
6
  Author: 艾莉丝·格雷拉特(WSu2059)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ErisPulse
3
- Version: 1.0.12
3
+ Version: 1.0.13
4
4
  Summary: ErisPulse 是一个模块化、可扩展的异步 Python SDK 框架,主要用于构建高效、可维护的机器人应用程序。
5
5
  Home-page: https://github.com/wsu2059q/ErisPulse
6
6
  Author: 艾莉丝·格雷拉特(WSu2059)
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='ErisPulse',
5
- version='1.0.12',
5
+ version='1.0.13',
6
6
  author='艾莉丝·格雷拉特(WSu2059)',
7
7
  author_email='wsu2059@qq.com',
8
8
  maintainer='runoneall',
File without changes
File without changes
File without changes