satori-python 0.16.6__tar.gz → 0.16.7__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.16.6 → satori_python-0.16.7}/PKG-INFO +1 -1
- {satori_python-0.16.6 → satori_python-0.16.7}/pyproject.toml +1 -1
- {satori_python-0.16.6 → satori_python-0.16.7}/src/satori/__init__.py +1 -1
- {satori_python-0.16.6 → satori_python-0.16.7}/src/satori/client/__init__.py +4 -2
- {satori_python-0.16.6 → satori_python-0.16.7}/LICENSE +0 -0
- {satori_python-0.16.6 → satori_python-0.16.7}/README.md +0 -0
- {satori_python-0.16.6 → satori_python-0.16.7}/src/satori/client/account.py +0 -0
- {satori_python-0.16.6 → satori_python-0.16.7}/src/satori/client/account.pyi +0 -0
- {satori_python-0.16.6 → satori_python-0.16.7}/src/satori/client/config.py +0 -0
- {satori_python-0.16.6 → satori_python-0.16.7}/src/satori/client/network/__init__.py +0 -0
- {satori_python-0.16.6 → satori_python-0.16.7}/src/satori/client/network/base.py +0 -0
- {satori_python-0.16.6 → satori_python-0.16.7}/src/satori/client/network/util.py +0 -0
- {satori_python-0.16.6 → satori_python-0.16.7}/src/satori/client/network/webhook.py +0 -0
- {satori_python-0.16.6 → satori_python-0.16.7}/src/satori/client/network/websocket.py +0 -0
- {satori_python-0.16.6 → satori_python-0.16.7}/src/satori/client/protocol.py +0 -0
- {satori_python-0.16.6 → satori_python-0.16.7}/src/satori/const.py +0 -0
- {satori_python-0.16.6 → satori_python-0.16.7}/src/satori/element.py +0 -0
- {satori_python-0.16.6 → satori_python-0.16.7}/src/satori/event.py +0 -0
- {satori_python-0.16.6 → satori_python-0.16.7}/src/satori/exception.py +0 -0
- {satori_python-0.16.6 → satori_python-0.16.7}/src/satori/model.py +0 -0
- {satori_python-0.16.6 → satori_python-0.16.7}/src/satori/parser.py +0 -0
- {satori_python-0.16.6 → satori_python-0.16.7}/src/satori/server/__init__.py +0 -0
- {satori_python-0.16.6 → satori_python-0.16.7}/src/satori/server/adapter.py +0 -0
- {satori_python-0.16.6 → satori_python-0.16.7}/src/satori/server/connection.py +0 -0
- {satori_python-0.16.6 → satori_python-0.16.7}/src/satori/server/formdata.py +0 -0
- {satori_python-0.16.6 → satori_python-0.16.7}/src/satori/server/model.py +0 -0
- {satori_python-0.16.6 → satori_python-0.16.7}/src/satori/server/route.py +0 -0
- {satori_python-0.16.6 → satori_python-0.16.7}/src/satori/server/utils.py +0 -0
- {satori_python-0.16.6 → satori_python-0.16.7}/src/satori/utils.py +0 -0
|
@@ -75,10 +75,12 @@ class App(Service):
|
|
|
75
75
|
def register_config(cls, tc: type[TConfig], tn: type[BaseNetwork[TConfig]]):
|
|
76
76
|
MAPPING[tc] = tn
|
|
77
77
|
|
|
78
|
-
def __init__(
|
|
78
|
+
def __init__(
|
|
79
|
+
self, *configs: Config, default_api_cls: type[ApiProtocol] = ApiProtocol, main_app: bool = True
|
|
80
|
+
):
|
|
79
81
|
global _app
|
|
80
82
|
|
|
81
|
-
if _app is not None:
|
|
83
|
+
if _app is not None and main_app:
|
|
82
84
|
raise RuntimeError("App instance already exists. Only one App instance is allowed.")
|
|
83
85
|
self.accounts = {}
|
|
84
86
|
self.connections = []
|
|
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
|