ironflock 1.3.2__tar.gz → 1.3.4__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,12 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ironflock
3
- Version: 1.3.2
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
@@ -1,13 +1,13 @@
1
1
  [project]
2
2
  name = "ironflock"
3
- version = "1.3.2"
3
+ version = "1.3.4"
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"}
7
7
  ]
8
8
  license = "MIT"
9
9
  readme = "README.md"
10
- requires-python = ">=3.9"
10
+ requires-python = ">=3.11"
11
11
  classifiers = [
12
12
  "Development Status :: 5 - Production/Stable",
13
13
  "Intended Audience :: Developers",
@@ -23,7 +23,7 @@ Repository = "https://github.com/RecordEvolution/ironflock-py"
23
23
 
24
24
  [project.optional-dependencies]
25
25
  docs = [
26
- "sphinx (>=7)",
26
+ "sphinx (>=8.2.3)",
27
27
  "sphinx-book-theme (>=1.1.4)",
28
28
  "sphinx-autodoc-typehints (>=2.0)"
29
29
  ]
@@ -7,4 +7,4 @@ __all__ = [
7
7
  "Stage"
8
8
  ]
9
9
 
10
- __version__ = "1.3.2"
10
+ __version__ = "1.3.4"
@@ -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
@@ -222,9 +223,12 @@ class IronFlock:
222
223
 
223
224
  # Convert options dict to RegisterOptions if provided
224
225
  register_options = RegisterOptions(**options) if options else None
226
+
227
+ full_topic = f"{self._swarm_key}.{self._device_key}.{self._app_key}.{self._env}.{topic}"
225
228
 
226
229
  try:
227
- reg = await self._connection.register(topic, endpoint, options=register_options)
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}')")
228
232
  return reg
229
233
  except Exception as e:
230
234
  print(f"Register failed: {e}")
@@ -382,7 +386,7 @@ class IronFlock:
382
386
  sub = await self.subscribe(topic, handler, params.options)
383
387
  return sub
384
388
 
385
- async def getHistory(self, tablename: str, queryParams: Union[TableQueryParams, dict]) -> Optional[Any]:
389
+ async def getHistory(self, tablename: str, queryParams: Union[TableQueryParams, dict] = {"limit": 10}) -> Optional[Any]:
386
390
  """Get historical data from a table using the history service
387
391
 
388
392
  Calls the "history.table" topic with the specified table name and query parameters.
File without changes
File without changes