ErisPulse 2.1.2__py3-none-any.whl → 2.1.4__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/Core/adapter.py CHANGED
@@ -47,7 +47,7 @@ class SendDSLBase:
47
47
  self._target_type = target_type
48
48
  self._target_id = target_id
49
49
  self._target_to = target_id
50
- self._account = account_id
50
+ self._account_id = account_id
51
51
 
52
52
  def To(self, target_type: str = None, target_id: Union[str, int] = None) -> 'SendDSL':
53
53
  """
ErisPulse/__main__.py CHANGED
@@ -84,7 +84,8 @@ class PyPIManager:
84
84
  async with aiohttp.ClientSession(timeout=timeout) as session:
85
85
  async with session.get(PyPIManager.REMOTE_SOURCES[0]) as response:
86
86
  if response.status == 200:
87
- data = await response.json()
87
+ data = await response.text()
88
+ data = json.loads(data)
88
89
  return {
89
90
  "modules": data.get("modules", {}),
90
91
  "adapters": data.get("adapters", {})
@@ -97,7 +98,8 @@ class PyPIManager:
97
98
  async with aiohttp.ClientSession(timeout=timeout) as session:
98
99
  async with session.get(PyPIManager.REMOTE_SOURCES[1]) as response:
99
100
  if response.status == 200:
100
- data = await response.json()
101
+ data = await response.text()
102
+ data = json.loads(data)
101
103
  return {
102
104
  "modules": data.get("modules", {}),
103
105
  "adapters": data.get("adapters", {})
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ErisPulse
3
- Version: 2.1.2
3
+ Version: 2.1.4
4
4
  Summary: ErisPulse 是一个模块化、可扩展的异步 Python SDK 框架,主要用于构建高效、可维护的机器人应用程序。
5
5
  Author-email: "艾莉丝·格雷拉特(WSu2059)" <wsu2059@qq.com>, runoneall <runoobsteve@gmail.com>
6
6
  License: MIT License
@@ -27,11 +27,13 @@ License: MIT License
27
27
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
28
  SOFTWARE.
29
29
 
30
- The documentation portion of this project references content from https://codeberg.org/ybr/yhwiki,
31
- licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0
32
- International License (CC BY-NC-ND 4.0).
30
+ This SDK's core adapter standardization layer strictly follows OneBot12 specifications (https://12.onebot.dev/) for:
31
+ - Event data normalization
32
+ - API request/response formats
33
+ - Message segment definitions
34
+ - Metadata definitions
33
35
 
34
- Note: This license file has been updated to correct the upstream project reference.
36
+ This ensures consistent behavior and interoperability across all adapter implementations.
35
37
  License-File: LICENSE
36
38
  Classifier: Development Status :: 5 - Production/Stable
37
39
  Classifier: Intended Audience :: Developers
@@ -1,7 +1,7 @@
1
1
  ErisPulse/__init__.py,sha256=kQr2n1oeThlJVy7NY_ZMXgDsgZuhsBC5V6ysl2I59PQ,27471
2
- ErisPulse/__main__.py,sha256=yxlB-rCQKy7D5XMWqP5id1sOQbzLuPx048NNpLaCDf8,19851
2
+ ErisPulse/__main__.py,sha256=qqx1F8bPRKhjalKVapI3RtLupHuLlYPRk503oduYADY,19947
3
3
  ErisPulse/Core/__init__.py,sha256=Wnkb4rI5kZhg8cdJE1sBfNRch55Aqp56npQ0DGXyHMA,675
4
- ErisPulse/Core/adapter.py,sha256=zeil2mhlZoUg8Wg6GlEMVnQ7f5rJWZNxc0c1g3c4W0w,18146
4
+ ErisPulse/Core/adapter.py,sha256=lw5T336EsNtjUgSPdevcOZReZNkA8oYvvTRCHk_fo_o,18149
5
5
  ErisPulse/Core/env.py,sha256=9WYNadD9h2jP_2wxOVBJEhH1uDzbctW7eB4Ba9RSjA4,20409
6
6
  ErisPulse/Core/logger.py,sha256=40vDe_D3L6ople-RZX8eGXntrZpFGHHzSl3pYxK-FLI,7196
7
7
  ErisPulse/Core/mods.py,sha256=5SPutuzbMrA-VZwiXeNxYWfrdbpLRdYfQ0RvEkFuQgg,7308
@@ -9,8 +9,8 @@ ErisPulse/Core/raiserr.py,sha256=QLQ3r7p4iFP86XBLq9mtf1wv1xSlgny35i8t5-l4DXo,462
9
9
  ErisPulse/Core/server.py,sha256=FkDTeLuHD5IBnWVxvYU8pHb6yCt8GzyvC1bpOiJ7G7I,9217
10
10
  ErisPulse/Core/shellprint.py,sha256=-BFoyFho_D3XEhxIoKt6x5gO4C62LKwmJWKDUGiPjNY,5908
11
11
  ErisPulse/Core/util.py,sha256=kyydBAJHHG9I7rMRzKWtLAQMZoJyBqHiBAweqcraFkU,4001
12
- erispulse-2.1.2.dist-info/METADATA,sha256=weSMmPWTDHy4mx36qhkHle7Wj9dC7dKv7qO_IX19vOI,6161
13
- erispulse-2.1.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
14
- erispulse-2.1.2.dist-info/entry_points.txt,sha256=Jss71M6nEha0TA-DyVZugPYdcL14s9QpiOeIlgWxzOc,182
15
- erispulse-2.1.2.dist-info/licenses/LICENSE,sha256=lBYj7Nk4urLvByj4HvQFxu8j9hThhFF6OGfyxAZBP9Q,1451
16
- erispulse-2.1.2.dist-info/RECORD,,
12
+ erispulse-2.1.4.dist-info/METADATA,sha256=RK1Ie9z8Aj8dWZdCjAuEwRHlutdO5lV1-O42RW4CxyY,6190
13
+ erispulse-2.1.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
14
+ erispulse-2.1.4.dist-info/entry_points.txt,sha256=Jss71M6nEha0TA-DyVZugPYdcL14s9QpiOeIlgWxzOc,182
15
+ erispulse-2.1.4.dist-info/licenses/LICENSE,sha256=4jyqikiB0G0n06CEEMMTzTXjE4IShghSlB74skMSPQs,1464
16
+ erispulse-2.1.4.dist-info/RECORD,,
@@ -22,8 +22,10 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
22
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
23
  SOFTWARE.
24
24
 
25
- The documentation portion of this project references content from https://codeberg.org/ybr/yhwiki,
26
- licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0
27
- International License (CC BY-NC-ND 4.0).
25
+ This SDK's core adapter standardization layer strictly follows OneBot12 specifications (https://12.onebot.dev/) for:
26
+ - Event data normalization
27
+ - API request/response formats
28
+ - Message segment definitions
29
+ - Metadata definitions
28
30
 
29
- Note: This license file has been updated to correct the upstream project reference.
31
+ This ensures consistent behavior and interoperability across all adapter implementations.