ironflock 1.3.3__py3-none-any.whl → 1.3.4__py3-none-any.whl

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.
ironflock/__init__.py CHANGED
@@ -7,4 +7,4 @@ __all__ = [
7
7
  "Stage"
8
8
  ]
9
9
 
10
- __version__ = "1.3.3"
10
+ __version__ = "1.3.4"
ironflock/ironflock.py CHANGED
@@ -39,6 +39,7 @@ class IronFlock:
39
39
  self._app_name = os.environ.get("APP_NAME")
40
40
  self._swarm_key = int(os.environ.get("SWARM_KEY"))
41
41
  self._app_key = int(os.environ.get("APP_KEY"))
42
+ self._env = os.environ.get("ENV")
42
43
  self._connection = CrossbarConnection()
43
44
  self.mainFunc = mainFunc
44
45
  self._main_task = None
@@ -223,14 +224,11 @@ class IronFlock:
223
224
  # Convert options dict to RegisterOptions if provided
224
225
  register_options = RegisterOptions(**options) if options else None
225
226
 
226
- swarm_key = os.environ.get("SWARM_KEY")
227
- app_key = os.environ.get("APP_KEY")
228
- env_value = os.environ.get("ENV")
229
-
230
- full_topic = f"{swarm_key}.{self._device_key}.{app_key}.{env_value}.{topic}"
227
+ full_topic = f"{self._swarm_key}.{self._device_key}.{self._app_key}.{self._env}.{topic}"
231
228
 
232
229
  try:
233
230
  reg = await self._connection.register(full_topic, endpoint, options=register_options)
231
+ print(f"Function registered for IronFlock topic '{topic}'. (Full WAMP topic: '{full_topic}')")
234
232
  return reg
235
233
  except Exception as e:
236
234
  print(f"Register failed: {e}")
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ironflock
3
- Version: 1.3.3
3
+ Version: 1.3.4
4
4
  Summary: IronFlock Python SDK for connecting to the IronFlock Platform
5
5
  License-Expression: MIT
6
6
  License-File: LICENSE
7
7
  Author: Marko Petzold, IronFlock GmbH
8
8
  Author-email: info@ironflock.com
9
- Requires-Python: >=3.9
9
+ Requires-Python: >=3.11
10
10
  Classifier: Development Status :: 5 - Production/Stable
11
11
  Classifier: Intended Audience :: Developers
12
12
  Provides-Extra: dev
@@ -17,7 +17,7 @@ Requires-Dist: pydantic (>=2.0.0)
17
17
  Requires-Dist: pydantic ; extra == "dev"
18
18
  Requires-Dist: pytest ; extra == "dev"
19
19
  Requires-Dist: ruff ; extra == "dev"
20
- Requires-Dist: sphinx (>=7) ; extra == "docs"
20
+ Requires-Dist: sphinx (>=8.2.3) ; extra == "docs"
21
21
  Requires-Dist: sphinx-autodoc-typehints (>=2.0) ; extra == "docs"
22
22
  Requires-Dist: sphinx-book-theme (>=1.1.4) ; extra == "docs"
23
23
  Project-URL: Homepage, https://github.com/RecordEvolution/ironflock-py
@@ -0,0 +1,8 @@
1
+ ironflock/CrossbarConnection.py,sha256=JLMmmnlv3I0Mohz6XdqyQ8-M_qPo3zs_hyIBthFvcTQ,13976
2
+ ironflock/__init__.py,sha256=LFtoNCy1euRPFdJo9-kVRjJO_8axtaJLaa1ZNomwDG0,203
3
+ ironflock/ironflock.py,sha256=TyJvnhmyMxTUn2d7G6cMRnR3N5wHaGbJ1w3t4CD41f4,19413
4
+ ironflock/types.py,sha256=yync91abyrI1fqbmczW5My7Skx7-8soENGHK2JfaEz0,11962
5
+ ironflock-1.3.4.dist-info/METADATA,sha256=Ro9MFyHzMpC3-cOpHbosQpCFkD_sepADnNk48AgoRwc,3464
6
+ ironflock-1.3.4.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
7
+ ironflock-1.3.4.dist-info/licenses/LICENSE,sha256=GpUKjPB381nmkbBIdX74vxXhsNZaNpngTOciss39Pjk,1073
8
+ ironflock-1.3.4.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- ironflock/CrossbarConnection.py,sha256=JLMmmnlv3I0Mohz6XdqyQ8-M_qPo3zs_hyIBthFvcTQ,13976
2
- ironflock/__init__.py,sha256=_07bufEcjL-TSWKyBCtXEVh2CxAQGsT3w9p10pgHMxU,203
3
- ironflock/ironflock.py,sha256=9BVEDCjFI0uoqA-yz_th9LynkVFbtMSnA4Bj4Tsc4JA,19395
4
- ironflock/types.py,sha256=yync91abyrI1fqbmczW5My7Skx7-8soENGHK2JfaEz0,11962
5
- ironflock-1.3.3.dist-info/METADATA,sha256=kxAJohNFrdmYSIIg-_-vpCwAsnRpCAYUf_GWds-BzTU,3459
6
- ironflock-1.3.3.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
7
- ironflock-1.3.3.dist-info/licenses/LICENSE,sha256=GpUKjPB381nmkbBIdX74vxXhsNZaNpngTOciss39Pjk,1073
8
- ironflock-1.3.3.dist-info/RECORD,,