ironflock 1.0.1__py3-none-any.whl → 1.0.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.
@@ -1,15 +1,15 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ironflock
3
- Version: 1.0.1
4
- Summary: Publishing data to a IronFlock Fleet Storage
5
- Home-page: https://github.com/RecordEvolution/ironflock-python
3
+ Version: 1.0.3
4
+ Summary: SDK to integrate your IronFlock Industry 4 Apps with the IronFlock Data Infrastructure
5
+ Home-page: https://github.com/RecordEvolution/ironflock-py
6
6
  Author: Record Evolution GmbH
7
7
  Author-email: marko.petzold@record-evolution.de
8
8
  License: MIT
9
- Requires-Python: >=3.6
9
+ Requires-Python: >=3.8
10
10
  Description-Content-Type: text/markdown
11
11
  License-File: LICENSE
12
- Requires-Dist: autobahn[asyncio,serialization] ==22.3.2
12
+ Requires-Dist: autobahn[asyncio,serialization]==22.3.2
13
13
 
14
14
  # ironflock
15
15
 
@@ -28,23 +28,21 @@ For more information on the IronFlock IoT Devops Platform for engineers and deve
28
28
  import asyncio
29
29
  from ironflock import IronFlock
30
30
 
31
- # create a ironflock instance, which auto connects to the IronFlock Platform
32
- # the ironflock instance handles authentication and reconnects when the connection is lost
33
- rw = IronFlock()
31
+ # create an IronFlock instance to connect to the IronFlock platform data infrastructure.
32
+ # The IronFlock instance handles authentication when run on a device registered in IronFlock.
33
+ ironflock = IronFlock()
34
34
 
35
35
  async def main():
36
36
  while True:
37
37
  # publish an event (if connection is not established the publish is skipped)
38
- publication = await rw.publish("test.publish.com", {"temperature": 20})
38
+ publication = await ironflock.publish("test.publish.com", {"temperature": 20})
39
39
  print(publication)
40
40
  await asyncio.sleep(3)
41
41
 
42
42
 
43
43
  if __name__ == "__main__":
44
- # run the main coroutine
45
- asyncio.get_event_loop().create_task(main())
46
- # run the ironflock component
47
- rw.run()
44
+ ironflock = IronFlock(mainFunc=main)
45
+ ironflock.run()
48
46
  ```
49
47
 
50
48
  ## Options
@@ -62,7 +60,7 @@ The `IronFlock` `__init__` function can be configured with the following options
62
60
  ## Advanced Usage
63
61
 
64
62
  If you need more control, e.g. acting on lifecycle events (`onJoin`, `onLeave`) take a look at
65
- the [examples](./examples/) folder.
63
+ the [examples](https://github.com/RecordEvolution/ironflock-py/tree/main/examples) folder.
66
64
 
67
65
 
68
66
  ## Development
@@ -0,0 +1,8 @@
1
+ ironflock/AutobahnConnection.py,sha256=clwEsptqQFjDFn4dUGN4bQyb1cOnPmmNjetfTrRqckY,3687
2
+ ironflock/__init__.py,sha256=LsyyAenv7GrvQSmPc3QJDu7_VsK7BDIvbwGC8ebEI9A,265
3
+ ironflock/ironflock.py,sha256=ZVshk0ky9rOPbNlLHUW-LgjuFl_YJbm3zqLvKSLjRs8,5892
4
+ ironflock-1.0.3.dist-info/LICENSE,sha256=GpUKjPB381nmkbBIdX74vxXhsNZaNpngTOciss39Pjk,1073
5
+ ironflock-1.0.3.dist-info/METADATA,sha256=SW6ou1NX9S5wbdHf6HysGQ9JL6yF8TrghfyVK77AU4o,2548
6
+ ironflock-1.0.3.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
7
+ ironflock-1.0.3.dist-info/top_level.txt,sha256=hmMdMPJuvnOTlFKYl1XQOn81vg1DE2LT7xrEXgyxcRA,10
8
+ ironflock-1.0.3.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (72.1.0)
2
+ Generator: setuptools (75.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,8 +0,0 @@
1
- ironflock/AutobahnConnection.py,sha256=clwEsptqQFjDFn4dUGN4bQyb1cOnPmmNjetfTrRqckY,3687
2
- ironflock/__init__.py,sha256=LsyyAenv7GrvQSmPc3QJDu7_VsK7BDIvbwGC8ebEI9A,265
3
- ironflock/ironflock.py,sha256=ZVshk0ky9rOPbNlLHUW-LgjuFl_YJbm3zqLvKSLjRs8,5892
4
- ironflock-1.0.1.dist-info/LICENSE,sha256=GpUKjPB381nmkbBIdX74vxXhsNZaNpngTOciss39Pjk,1073
5
- ironflock-1.0.1.dist-info/METADATA,sha256=ONGtcs6swb7JV50gQZIIUYQSEOcVBsp3rXQ-2NJ_rV8,2491
6
- ironflock-1.0.1.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
7
- ironflock-1.0.1.dist-info/top_level.txt,sha256=hmMdMPJuvnOTlFKYl1XQOn81vg1DE2LT7xrEXgyxcRA,10
8
- ironflock-1.0.1.dist-info/RECORD,,