ironflock 1.3.4__tar.gz → 1.3.5__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.4
2
2
  Name: ironflock
3
- Version: 1.3.4
3
+ Version: 1.3.5
4
4
  Summary: IronFlock Python SDK for connecting to the IronFlock Platform
5
5
  License-Expression: MIT
6
6
  License-File: LICENSE
@@ -38,8 +38,7 @@ For more information on the IronFlock IoT Devops Platform for engineers and deve
38
38
 
39
39
  ## Requirements
40
40
 
41
- - Python 3.8 or higher
42
- - Compatible with Python 3.8, 3.9, 3.10, 3.11, and 3.12
41
+ - Python 3.11 or higher
43
42
 
44
43
  ## Installation
45
44
 
@@ -97,6 +96,7 @@ Install the necessary build tools if you don't have them already:
97
96
  pip install --upgrade build twine
98
97
  ```
99
98
 
99
+ Make sure your pypi API tokens are stored in your `~/.pypirc`.
100
100
  Build and publish a new pypi package:
101
101
 
102
102
  ```shell
@@ -12,8 +12,7 @@ For more information on the IronFlock IoT Devops Platform for engineers and deve
12
12
 
13
13
  ## Requirements
14
14
 
15
- - Python 3.8 or higher
16
- - Compatible with Python 3.8, 3.9, 3.10, 3.11, and 3.12
15
+ - Python 3.11 or higher
17
16
 
18
17
  ## Installation
19
18
 
@@ -71,6 +70,7 @@ Install the necessary build tools if you don't have them already:
71
70
  pip install --upgrade build twine
72
71
  ```
73
72
 
73
+ Make sure your pypi API tokens are stored in your `~/.pypirc`.
74
74
  Build and publish a new pypi package:
75
75
 
76
76
  ```shell
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "ironflock"
3
- version = "1.3.4"
3
+ version = "1.3.5"
4
4
  description = "IronFlock Python SDK for connecting to the IronFlock Platform"
5
5
  authors = [
6
6
  {name = "Marko Petzold, IronFlock GmbH", email = "info@ironflock.com"}
@@ -28,13 +28,13 @@ def getSerialNumber(serial_number: str = None) -> str:
28
28
  s_num = serial_number
29
29
  return s_num
30
30
 
31
- DATAPODS_WS_URI = "wss://cbw.datapods.io/ws-ua-usr"
31
+ STUDIO_DEV_WS_URI = "wss://cbw.ironflock.dev/ws-ua-usr"
32
32
  STUDIO_WS_URI_OLD = "wss://cbw.record-evolution.com/ws-ua-usr"
33
33
  STUDIO_WS_URI = "wss://cbw.ironflock.com/ws-ua-usr"
34
34
  LOCALHOST_WS_URI = "ws://localhost:8080/ws-ua-usr"
35
35
 
36
36
  socketURIMap = {
37
- "https://studio.datapods.io": DATAPODS_WS_URI,
37
+ "https://studio.ironflock.dev": STUDIO_DEV_WS_URI,
38
38
  "https://studio.record-evolution.com": STUDIO_WS_URI_OLD,
39
39
  "https://studio.ironflock.com": STUDIO_WS_URI,
40
40
  "http://localhost:8086": LOCALHOST_WS_URI,
@@ -196,7 +196,9 @@ class CrossbarConnection:
196
196
  async def stop(self) -> None:
197
197
  """Stop the connection"""
198
198
  if self.component:
199
- await self.component.stop()
199
+ # Check if component is properly initialized before stopping
200
+ if hasattr(self.component, '_done_f') and self.component._done_f is not None:
201
+ await self.component.stop()
200
202
  self._is_connected = False
201
203
  self.session = None
202
204
 
@@ -7,4 +7,4 @@ __all__ = [
7
7
  "Stage"
8
8
  ]
9
9
 
10
- __version__ = "1.3.4"
10
+ __version__ = "1.3.5"
@@ -487,6 +487,9 @@ class IronFlock:
487
487
  # If no main function, just wait indefinitely
488
488
  while self.is_connected:
489
489
  await asyncio.sleep(1)
490
+ except asyncio.CancelledError:
491
+ # Task was cancelled (likely from stop() being called)
492
+ pass
490
493
  except KeyboardInterrupt:
491
494
  print("Shutting down...")
492
495
  except Exception as e:
File without changes