ironflock 1.3.3__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.
- {ironflock-1.3.3 → ironflock-1.3.4}/PKG-INFO +3 -3
- {ironflock-1.3.3 → ironflock-1.3.4}/pyproject.toml +3 -3
- {ironflock-1.3.3 → ironflock-1.3.4}/src/ironflock/__init__.py +1 -1
- {ironflock-1.3.3 → ironflock-1.3.4}/src/ironflock/ironflock.py +3 -5
- {ironflock-1.3.3 → ironflock-1.3.4}/LICENSE +0 -0
- {ironflock-1.3.3 → ironflock-1.3.4}/README.md +0 -0
- {ironflock-1.3.3 → ironflock-1.3.4}/src/ironflock/CrossbarConnection.py +0 -0
- {ironflock-1.3.3 → ironflock-1.3.4}/src/ironflock/types.py +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ironflock
|
|
3
|
-
Version: 1.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
|
+
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 (>=
|
|
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.
|
|
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.
|
|
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 (>=
|
|
26
|
+
"sphinx (>=8.2.3)",
|
|
27
27
|
"sphinx-book-theme (>=1.1.4)",
|
|
28
28
|
"sphinx-autodoc-typehints (>=2.0)"
|
|
29
29
|
]
|
|
@@ -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
|
-
|
|
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}")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|