ironflock 1.3.1__py3-none-any.whl → 1.3.2__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.1"
10
+ __version__ = "1.3.2"
ironflock/ironflock.py CHANGED
@@ -422,31 +422,29 @@ class IronFlock:
422
422
  return None
423
423
 
424
424
  # Prepare the call arguments
425
- call_args = {
426
- 'tablename': tablename,
427
- 'queryParams': validated_params.model_dump() # Convert to dict for serialization
428
- }
429
-
430
- # Add device metadata
431
- device_metadata = {
432
- "DEVICE_SERIAL_NUMBER": self._serial_number,
433
- "DEVICE_KEY": self._device_key,
434
- "DEVICE_NAME": self._device_name,
435
- }
436
-
437
- # Merge device metadata with call arguments
438
- combined_kwargs = {**device_metadata, **call_args}
425
+ queryParams = validated_params.model_dump()
439
426
 
427
+ topic = f"history.transformed.app.{self._app_key}.{tablename}"
440
428
  try:
441
429
  result = await self._connection.call(
442
- 'history.table',
443
- args=[],
444
- kwargs=combined_kwargs
430
+ topic,
431
+ args=[queryParams]
445
432
  )
446
433
  return result
447
434
  except Exception as e:
448
- print(f"Get history failed: {e}")
449
- return None
435
+ # Check for specific WAMP errors indicating procedure not available
436
+ error_str = str(e)
437
+ if (hasattr(e, 'error') and
438
+ ('no_such_procedure' in str(e.error) or 'runtime_error' in str(e.error))) or \
439
+ 'no callee registered for procedure' in error_str:
440
+ print(f"Get history failed: History service procedure '{topic}' not registered in Crossbar")
441
+ print(f" Error type: {getattr(e, 'error', 'Unknown')}")
442
+ print(f" Error details: {e}")
443
+ print(f" This indicates the history service is not available or not properly configured")
444
+ return None
445
+ else:
446
+ print(f"Get history failed: {e}")
447
+ return None
450
448
 
451
449
  async def start(self):
452
450
  """Start the connection and run the main function if provided"""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ironflock
3
- Version: 1.3.1
3
+ Version: 1.3.2
4
4
  Summary: IronFlock Python SDK for connecting to the IronFlock Platform
5
5
  License-Expression: MIT
6
6
  License-File: LICENSE
@@ -0,0 +1,8 @@
1
+ ironflock/CrossbarConnection.py,sha256=JLMmmnlv3I0Mohz6XdqyQ8-M_qPo3zs_hyIBthFvcTQ,13976
2
+ ironflock/__init__.py,sha256=B2umGnBHiXWzRyMj4a69OETTOdG2A3r5fy8aLVCo-pk,203
3
+ ironflock/ironflock.py,sha256=-UgXRIrgYKCzZIo-i8kYpaPXw8ZzARY2KxlBYfQoOBQ,19137
4
+ ironflock/types.py,sha256=yync91abyrI1fqbmczW5My7Skx7-8soENGHK2JfaEz0,11962
5
+ ironflock-1.3.2.dist-info/METADATA,sha256=CanKlOegj3I_OoK2NnBCgmxTbeqVfK6D9xXJi4k8xHc,3459
6
+ ironflock-1.3.2.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
7
+ ironflock-1.3.2.dist-info/licenses/LICENSE,sha256=GpUKjPB381nmkbBIdX74vxXhsNZaNpngTOciss39Pjk,1073
8
+ ironflock-1.3.2.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- ironflock/CrossbarConnection.py,sha256=JLMmmnlv3I0Mohz6XdqyQ8-M_qPo3zs_hyIBthFvcTQ,13976
2
- ironflock/__init__.py,sha256=Hgu6sYyHFWeudUcmPB-49wYtDKsfWtEgmd3xTwOJz3g,203
3
- ironflock/ironflock.py,sha256=oTIqzcObKvv-78gEDqGv3mQyGAfaxP1hovd1NolG0b4,18856
4
- ironflock/types.py,sha256=yync91abyrI1fqbmczW5My7Skx7-8soENGHK2JfaEz0,11962
5
- ironflock-1.3.1.dist-info/METADATA,sha256=z17kzfjsvQUuTZiKmHOXIwv1x3fcjnIyGzs1AW79cU0,3459
6
- ironflock-1.3.1.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
7
- ironflock-1.3.1.dist-info/licenses/LICENSE,sha256=GpUKjPB381nmkbBIdX74vxXhsNZaNpngTOciss39Pjk,1073
8
- ironflock-1.3.1.dist-info/RECORD,,