crypto-ws-api 2.0.9__tar.gz → 2.0.11__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,3 +1,11 @@
1
+ ## 2.0.11 - 2024-04-30
2
+ ### Update
3
+ * Some minor improvement
4
+
5
+ ## 2.0.10 - 2024-04-19
6
+ ### Update
7
+ * Some minor improvement
8
+
1
9
  ## 2.0.9 - 2024-04-14
2
10
  ### Fix
3
11
  * Creating asynchronous tasks done right
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: crypto-ws-api
3
- Version: 2.0.9
3
+ Version: 2.0.11
4
4
  Summary: Crypto WS API connector for ASYNC requests
5
5
  Author-email: Jerry Fedorenko <jerry.fedorenko@yahoo.com>
6
6
  Requires-Python: >=3.8
@@ -13,13 +13,13 @@ __maintainer__ = "Jerry Fedorenko"
13
13
  __contact__ = "https://github.com/DogsTailFarmer"
14
14
  __email__ = "jerry.fedorenko@yahoo.com"
15
15
  __credits__ = ["https://github.com/DanyaSWorlD"]
16
- __version__ = "2.0.9"
16
+ __version__ = "2.0.11"
17
17
 
18
18
  from pathlib import Path
19
19
  import shutil
20
20
  from platformdirs import user_config_path
21
21
 
22
-
22
+ VERSION = __version__
23
23
  TIMEOUT = 5 # sec timeout for WSS initialization and get response
24
24
  DELAY = 0.1 # sec delay in keepalive loop
25
25
  # Maximum str size for unique query ID
@@ -90,9 +90,7 @@ class UserWSS:
90
90
  self.tasks = set()
91
91
 
92
92
  def tasks_manage(self, coro, name=None):
93
- _t = asyncio.create_task(coro)
94
- if name:
95
- _t.set_name(name)
93
+ _t = asyncio.create_task(coro, name=name)
96
94
  self.tasks.add(_t)
97
95
  _t.add_done_callback(self.tasks.discard)
98
96
 
File without changes
File without changes