satori-python-client 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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: satori-python-client
3
- Version: 0.16.6
3
+ Version: 0.16.7
4
4
  Summary: Satori Protocol SDK for python, specify client part
5
5
  Home-page: https://github.com/RF-Tar-Railt/satori-python
6
6
  Author-Email: RF-Tar-Railt <rf_tar_railt@qq.com>
@@ -24,7 +24,7 @@ classifiers = [
24
24
  "Programming Language :: Python :: 3.12",
25
25
  "Operating System :: OS Independent",
26
26
  ]
27
- version = "0.16.6"
27
+ version = "0.16.7"
28
28
 
29
29
  [project.license]
30
30
  text = "MIT"
@@ -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__(self, *configs: Config, default_api_cls: type[ApiProtocol] = ApiProtocol):
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 = []