ironflock 1.3.2__py3-none-any.whl → 1.3.3__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 +1 -1
- ironflock/ironflock.py +8 -2
- {ironflock-1.3.2.dist-info → ironflock-1.3.3.dist-info}/METADATA +1 -1
- ironflock-1.3.3.dist-info/RECORD +8 -0
- ironflock-1.3.2.dist-info/RECORD +0 -8
- {ironflock-1.3.2.dist-info → ironflock-1.3.3.dist-info}/WHEEL +0 -0
- {ironflock-1.3.2.dist-info → ironflock-1.3.3.dist-info}/licenses/LICENSE +0 -0
ironflock/__init__.py
CHANGED
ironflock/ironflock.py
CHANGED
|
@@ -222,9 +222,15 @@ class IronFlock:
|
|
|
222
222
|
|
|
223
223
|
# Convert options dict to RegisterOptions if provided
|
|
224
224
|
register_options = RegisterOptions(**options) if options else None
|
|
225
|
+
|
|
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}"
|
|
225
231
|
|
|
226
232
|
try:
|
|
227
|
-
reg = await self._connection.register(
|
|
233
|
+
reg = await self._connection.register(full_topic, endpoint, options=register_options)
|
|
228
234
|
return reg
|
|
229
235
|
except Exception as e:
|
|
230
236
|
print(f"Register failed: {e}")
|
|
@@ -382,7 +388,7 @@ class IronFlock:
|
|
|
382
388
|
sub = await self.subscribe(topic, handler, params.options)
|
|
383
389
|
return sub
|
|
384
390
|
|
|
385
|
-
async def getHistory(self, tablename: str, queryParams: Union[TableQueryParams, dict]) -> Optional[Any]:
|
|
391
|
+
async def getHistory(self, tablename: str, queryParams: Union[TableQueryParams, dict] = {"limit": 10}) -> Optional[Any]:
|
|
386
392
|
"""Get historical data from a table using the history service
|
|
387
393
|
|
|
388
394
|
Calls the "history.table" topic with the specified table name and query parameters.
|
|
@@ -0,0 +1,8 @@
|
|
|
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,,
|
ironflock-1.3.2.dist-info/RECORD
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
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,,
|
|
File without changes
|
|
File without changes
|