satori-python 0.18.0__tar.gz → 0.18.1__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.
- {satori_python-0.18.0 → satori_python-0.18.1}/PKG-INFO +2 -2
- {satori_python-0.18.0 → satori_python-0.18.1}/README.md +1 -1
- {satori_python-0.18.0 → satori_python-0.18.1}/pyproject.toml +1 -1
- {satori_python-0.18.0 → satori_python-0.18.1}/src/satori/__init__.py +1 -1
- {satori_python-0.18.0 → satori_python-0.18.1}/src/satori/server/__init__.py +4 -0
- {satori_python-0.18.0 → satori_python-0.18.1}/LICENSE +0 -0
- {satori_python-0.18.0 → satori_python-0.18.1}/src/satori/_vendor/fleep.py +0 -0
- {satori_python-0.18.0 → satori_python-0.18.1}/src/satori/client/__init__.py +0 -0
- {satori_python-0.18.0 → satori_python-0.18.1}/src/satori/client/account.py +0 -0
- {satori_python-0.18.0 → satori_python-0.18.1}/src/satori/client/account.pyi +0 -0
- {satori_python-0.18.0 → satori_python-0.18.1}/src/satori/client/config.py +0 -0
- {satori_python-0.18.0 → satori_python-0.18.1}/src/satori/client/network/__init__.py +0 -0
- {satori_python-0.18.0 → satori_python-0.18.1}/src/satori/client/network/base.py +0 -0
- {satori_python-0.18.0 → satori_python-0.18.1}/src/satori/client/network/util.py +0 -0
- {satori_python-0.18.0 → satori_python-0.18.1}/src/satori/client/network/webhook.py +0 -0
- {satori_python-0.18.0 → satori_python-0.18.1}/src/satori/client/network/websocket.py +0 -0
- {satori_python-0.18.0 → satori_python-0.18.1}/src/satori/client/protocol.py +0 -0
- {satori_python-0.18.0 → satori_python-0.18.1}/src/satori/const.py +0 -0
- {satori_python-0.18.0 → satori_python-0.18.1}/src/satori/element.py +0 -0
- {satori_python-0.18.0 → satori_python-0.18.1}/src/satori/event.py +0 -0
- {satori_python-0.18.0 → satori_python-0.18.1}/src/satori/exception.py +0 -0
- {satori_python-0.18.0 → satori_python-0.18.1}/src/satori/model.py +0 -0
- {satori_python-0.18.0 → satori_python-0.18.1}/src/satori/parser.py +0 -0
- {satori_python-0.18.0 → satori_python-0.18.1}/src/satori/server/adapter.py +0 -0
- {satori_python-0.18.0 → satori_python-0.18.1}/src/satori/server/connection.py +0 -0
- {satori_python-0.18.0 → satori_python-0.18.1}/src/satori/server/formdata.py +0 -0
- {satori_python-0.18.0 → satori_python-0.18.1}/src/satori/server/model.py +0 -0
- {satori_python-0.18.0 → satori_python-0.18.1}/src/satori/server/route.py +0 -0
- {satori_python-0.18.0 → satori_python-0.18.1}/src/satori/server/utils.py +0 -0
- {satori_python-0.18.0 → satori_python-0.18.1}/src/satori/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: satori-python
|
|
3
|
-
Version: 0.18.
|
|
3
|
+
Version: 0.18.1
|
|
4
4
|
Summary: Satori Protocol SDK for python
|
|
5
5
|
Home-page: https://github.com/RF-Tar-Railt/satori-python
|
|
6
6
|
Author-Email: RF-Tar-Railt <rf_tar_railt@qq.com>
|
|
@@ -87,7 +87,7 @@ pip install satori-python-server
|
|
|
87
87
|
| OneBot V11 | `pip install satori-python-adapter-onebot11` | satori.adapters.onebot11.forward, satori.adapters.onebot11.reverse |
|
|
88
88
|
| Console | `pip install satori-python-adapter-console` | satori.adapters.console |
|
|
89
89
|
| Milky | `pip install satori-python-adapter-milky` | satori.adapters.milky.main, satori.adapters.milky.webhook |
|
|
90
|
-
| QQ | `pip install satori-python-adapter-qq` | satori.adapters.
|
|
90
|
+
| QQ | `pip install satori-python-adapter-qq` | satori.adapters.qq.main, satori.adapters.qq.websocket |
|
|
91
91
|
|
|
92
92
|
### 社区适配器
|
|
93
93
|
|
|
@@ -54,7 +54,7 @@ pip install satori-python-server
|
|
|
54
54
|
| OneBot V11 | `pip install satori-python-adapter-onebot11` | satori.adapters.onebot11.forward, satori.adapters.onebot11.reverse |
|
|
55
55
|
| Console | `pip install satori-python-adapter-console` | satori.adapters.console |
|
|
56
56
|
| Milky | `pip install satori-python-adapter-milky` | satori.adapters.milky.main, satori.adapters.milky.webhook |
|
|
57
|
-
| QQ | `pip install satori-python-adapter-qq` | satori.adapters.
|
|
57
|
+
| QQ | `pip install satori-python-adapter-qq` | satori.adapters.qq.main, satori.adapters.qq.websocket |
|
|
58
58
|
|
|
59
59
|
### 社区适配器
|
|
60
60
|
|
|
@@ -97,6 +97,10 @@ async def _request_handler(action: str, request: StarletteRequest, func: RouteCa
|
|
|
97
97
|
self_id=self_id,
|
|
98
98
|
)
|
|
99
99
|
)
|
|
100
|
+
except asyncio.CancelledError:
|
|
101
|
+
return Response(status_code=503, content="Request cancelled")
|
|
102
|
+
except asyncio.TimeoutError:
|
|
103
|
+
return Response(status_code=504, content="Request timeout")
|
|
100
104
|
except ActionFailed as ae:
|
|
101
105
|
logger.warning(ae)
|
|
102
106
|
return Response(status_code=ae.CODE, content=str(ae))
|
|
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
|