ironflock 1.0.0__tar.gz → 1.0.2__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.
@@ -0,0 +1,106 @@
1
+ Metadata-Version: 2.1
2
+ Name: ironflock
3
+ Version: 1.0.2
4
+ Summary: SDK to integrate your IronFlock Industry 4 Apps with the IronFlock Data Infrastructure
5
+ Home-page: https://github.com/RecordEvolution/ironflock-python
6
+ Author: Record Evolution GmbH
7
+ Author-email: Marko Petzold <marko.petzold@record-evolution.de>
8
+ License: MIT License
9
+
10
+ Copyright (c) 2021 Record Evolution
11
+
12
+ Permission is hereby granted, free of charge, to any person obtaining a copy
13
+ of this software and associated documentation files (the "Software"), to deal
14
+ in the Software without restriction, including without limitation the rights
15
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
+ copies of the Software, and to permit persons to whom the Software is
17
+ furnished to do so, subject to the following conditions:
18
+
19
+ The above copyright notice and this permission notice shall be included in all
20
+ copies or substantial portions of the Software.
21
+
22
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
+ SOFTWARE.
29
+
30
+ Project-URL: Homepage, https://github.com/RecordEvolution/ironflock-py
31
+ Project-URL: Issues, https://github.com/RecordEvolution/ironflock-py/issues
32
+ Classifier: Programming Language :: Python :: 3
33
+ Classifier: License :: OSI Approved :: MIT License
34
+ Classifier: Operating System :: OS Independent
35
+ Requires-Python: >=3.6
36
+ Description-Content-Type: text/markdown
37
+ License-File: LICENSE
38
+ Requires-Dist: autobahn[asyncio,serialization]==22.3.2
39
+
40
+ # ironflock
41
+
42
+ ## About
43
+
44
+ With this library you can publish data from your apps on your IoT edge hardware to the fleet data storage of the [IronFlock](https://studio.ironflock.com) devops platform.
45
+ When this library is used on a certain device the library automatically uses the private messaging realm (Unified Name Space)
46
+ of the device's fleet and the data is collected in the respective fleet database.
47
+
48
+ So if you use the library in your app, the data collection will always be private to the app user's fleet.
49
+
50
+ For more information on the IronFlock IoT Devops Platform for engineers and developers visit our [IronFlock](https://www.ironflock.com) home page.
51
+ ## Usage
52
+
53
+ ```python
54
+ import asyncio
55
+ from ironflock import IronFlock
56
+
57
+ # create an IronFlock instance to connect to the IronFlock platform data infrastructure.
58
+ # The IronFlock instance handles authentication when run on a device registered in IronFlock.
59
+ ironflock = IronFlock()
60
+
61
+ async def main():
62
+ while True:
63
+ # publish an event (if connection is not established the publish is skipped)
64
+ publication = await ironflock.publish("test.publish.com", {"temperature": 20})
65
+ print(publication)
66
+ await asyncio.sleep(3)
67
+
68
+
69
+ if __name__ == "__main__":
70
+ ironflock = IronFlock(mainFunc=main)
71
+ ironflock.run()
72
+ ```
73
+
74
+ ## Options
75
+
76
+ The `IronFlock` `__init__` function can be configured with the following options:
77
+
78
+ ```ts
79
+ {
80
+ serial_number: string;
81
+ }
82
+ ```
83
+
84
+ **serial_number**: Used to set the serial_number of the device if the `DEVICE_SERIAL_NUMBER` environment variable does not exist. It can also be used if the user wishes to authenticate as another device.
85
+
86
+ ## Advanced Usage
87
+
88
+ If you need more control, e.g. acting on lifecycle events (`onJoin`, `onLeave`) take a look at
89
+ the [examples](./examples/) folder.
90
+
91
+
92
+ ## Development
93
+
94
+ Install the necessary components if you don't have them already:
95
+
96
+ ```shell
97
+ pip install --upgrade setuptools wheel twine
98
+ ```
99
+
100
+ Build and publish a new pypi package:
101
+
102
+ ```shell
103
+ make publish
104
+ ```
105
+
106
+ Check the package at https://pypi.org/project/ironflock/.
@@ -2,33 +2,34 @@
2
2
 
3
3
  ## About
4
4
 
5
- With this library you can publishing data to IronFlock fleet storage. When this library is used on a certain device the library automatically uses the private messaging realm (Unified Name Space) of the device's fleet and the data is collected in the respective fleet database.
5
+ With this library you can publish data from your apps on your IoT edge hardware to the fleet data storage of the [IronFlock](https://studio.ironflock.com) devops platform.
6
+ When this library is used on a certain device the library automatically uses the private messaging realm (Unified Name Space)
7
+ of the device's fleet and the data is collected in the respective fleet database.
6
8
 
7
9
  So if you use the library in your app, the data collection will always be private to the app user's fleet.
8
10
 
11
+ For more information on the IronFlock IoT Devops Platform for engineers and developers visit our [IronFlock](https://www.ironflock.com) home page.
9
12
  ## Usage
10
13
 
11
14
  ```python
12
15
  import asyncio
13
16
  from ironflock import IronFlock
14
17
 
15
- # create a ironflock instance, which auto connects to the IronFlock Platform
16
- # the ironflock instance handles authentication and reconnects when the connection is lost
17
- rw = IronFlock()
18
+ # create an IronFlock instance to connect to the IronFlock platform data infrastructure.
19
+ # The IronFlock instance handles authentication when run on a device registered in IronFlock.
20
+ ironflock = IronFlock()
18
21
 
19
22
  async def main():
20
23
  while True:
21
24
  # publish an event (if connection is not established the publish is skipped)
22
- publication = await rw.publish("test.publish.com", {"temperature": 20})
25
+ publication = await ironflock.publish("test.publish.com", {"temperature": 20})
23
26
  print(publication)
24
27
  await asyncio.sleep(3)
25
28
 
26
29
 
27
30
  if __name__ == "__main__":
28
- # run the main coroutine
29
- asyncio.get_event_loop().create_task(main())
30
- # run the ironflock component
31
- rw.run()
31
+ ironflock = IronFlock(mainFunc=main)
32
+ ironflock.run()
32
33
  ```
33
34
 
34
35
  ## Options
@@ -60,8 +61,7 @@ pip install --upgrade setuptools wheel twine
60
61
  Build and publish a new pypi package:
61
62
 
62
63
  ```shell
63
- python setup.py sdist bdist_wheel
64
- twine upload dist/*
64
+ make publish
65
65
  ```
66
66
 
67
67
  Check the package at https://pypi.org/project/ironflock/.
@@ -0,0 +1,106 @@
1
+ Metadata-Version: 2.1
2
+ Name: ironflock
3
+ Version: 1.0.2
4
+ Summary: SDK to integrate your IronFlock Industry 4 Apps with the IronFlock Data Infrastructure
5
+ Home-page: https://github.com/RecordEvolution/ironflock-python
6
+ Author: Record Evolution GmbH
7
+ Author-email: Marko Petzold <marko.petzold@record-evolution.de>
8
+ License: MIT License
9
+
10
+ Copyright (c) 2021 Record Evolution
11
+
12
+ Permission is hereby granted, free of charge, to any person obtaining a copy
13
+ of this software and associated documentation files (the "Software"), to deal
14
+ in the Software without restriction, including without limitation the rights
15
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
+ copies of the Software, and to permit persons to whom the Software is
17
+ furnished to do so, subject to the following conditions:
18
+
19
+ The above copyright notice and this permission notice shall be included in all
20
+ copies or substantial portions of the Software.
21
+
22
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
+ SOFTWARE.
29
+
30
+ Project-URL: Homepage, https://github.com/RecordEvolution/ironflock-py
31
+ Project-URL: Issues, https://github.com/RecordEvolution/ironflock-py/issues
32
+ Classifier: Programming Language :: Python :: 3
33
+ Classifier: License :: OSI Approved :: MIT License
34
+ Classifier: Operating System :: OS Independent
35
+ Requires-Python: >=3.6
36
+ Description-Content-Type: text/markdown
37
+ License-File: LICENSE
38
+ Requires-Dist: autobahn[asyncio,serialization]==22.3.2
39
+
40
+ # ironflock
41
+
42
+ ## About
43
+
44
+ With this library you can publish data from your apps on your IoT edge hardware to the fleet data storage of the [IronFlock](https://studio.ironflock.com) devops platform.
45
+ When this library is used on a certain device the library automatically uses the private messaging realm (Unified Name Space)
46
+ of the device's fleet and the data is collected in the respective fleet database.
47
+
48
+ So if you use the library in your app, the data collection will always be private to the app user's fleet.
49
+
50
+ For more information on the IronFlock IoT Devops Platform for engineers and developers visit our [IronFlock](https://www.ironflock.com) home page.
51
+ ## Usage
52
+
53
+ ```python
54
+ import asyncio
55
+ from ironflock import IronFlock
56
+
57
+ # create an IronFlock instance to connect to the IronFlock platform data infrastructure.
58
+ # The IronFlock instance handles authentication when run on a device registered in IronFlock.
59
+ ironflock = IronFlock()
60
+
61
+ async def main():
62
+ while True:
63
+ # publish an event (if connection is not established the publish is skipped)
64
+ publication = await ironflock.publish("test.publish.com", {"temperature": 20})
65
+ print(publication)
66
+ await asyncio.sleep(3)
67
+
68
+
69
+ if __name__ == "__main__":
70
+ ironflock = IronFlock(mainFunc=main)
71
+ ironflock.run()
72
+ ```
73
+
74
+ ## Options
75
+
76
+ The `IronFlock` `__init__` function can be configured with the following options:
77
+
78
+ ```ts
79
+ {
80
+ serial_number: string;
81
+ }
82
+ ```
83
+
84
+ **serial_number**: Used to set the serial_number of the device if the `DEVICE_SERIAL_NUMBER` environment variable does not exist. It can also be used if the user wishes to authenticate as another device.
85
+
86
+ ## Advanced Usage
87
+
88
+ If you need more control, e.g. acting on lifecycle events (`onJoin`, `onLeave`) take a look at
89
+ the [examples](./examples/) folder.
90
+
91
+
92
+ ## Development
93
+
94
+ Install the necessary components if you don't have them already:
95
+
96
+ ```shell
97
+ pip install --upgrade setuptools wheel twine
98
+ ```
99
+
100
+ Build and publish a new pypi package:
101
+
102
+ ```shell
103
+ make publish
104
+ ```
105
+
106
+ Check the package at https://pypi.org/project/ironflock/.
@@ -0,0 +1 @@
1
+ autobahn[asyncio,serialization]==22.3.2
@@ -0,0 +1,30 @@
1
+ [project]
2
+ name = "ironflock"
3
+ version = "1.0.2"
4
+ authors = [
5
+ { name = "Marko Petzold", email = "marko.petzold@record-evolution.de" },
6
+ ]
7
+ description = "SDK to integrate your IronFlock Industry 4 Apps with the IronFlock Data Infrastructure"
8
+ readme = "README.md"
9
+ requires-python = ">=3.8"
10
+ license = { file = "LICENSE" } # Reference to the LICENSE file
11
+ classifiers = [
12
+ "Programming Language :: Python :: 3",
13
+ "License :: OSI Approved :: MIT License",
14
+ "Operating System :: OS Independent",
15
+ ]
16
+
17
+ dependencies = [
18
+ "autobahn[asyncio,serialization]==22.3.2"
19
+ ]
20
+
21
+ [project.urls]
22
+ Homepage = "https://github.com/RecordEvolution/ironflock-py"
23
+ Issues = "https://github.com/RecordEvolution/ironflock-py/issues"
24
+
25
+ [build-system]
26
+ requires = [
27
+ "setuptools>=42",
28
+ "wheel"
29
+ ]
30
+ build-backend = "setuptools.build_meta"
@@ -0,0 +1 @@
1
+ autobahn[asyncio, serialization]==22.3.2
@@ -10,7 +10,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
10
10
 
11
11
  setup(
12
12
  name="ironflock",
13
- version="1.0.0",
13
+ version="1.0.1",
14
14
  description="Publishing data to a IronFlock Fleet Storage",
15
15
  long_description=long_description,
16
16
  long_description_content_type="text/markdown",
ironflock-1.0.0/PKG-INFO DELETED
@@ -1,80 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: ironflock
3
- Version: 1.0.0
4
- Summary: Publishing data to a IronFlock Fleet Storage
5
- Home-page: https://github.com/RecordEvolution/ironflock-python
6
- Author: Record Evolution GmbH
7
- Author-email: marko.petzold@record-evolution.de
8
- License: MIT
9
- Requires-Python: >=3.6
10
- Description-Content-Type: text/markdown
11
- License-File: LICENSE
12
- Requires-Dist: autobahn[asyncio,compression,serialization]==22.3.2
13
-
14
- # ironflock
15
-
16
- ## About
17
-
18
- With this library you can publishing data to IronFlock fleet storage. When this library is used on a certain device the library automatically uses the private messaging realm (Unified Name Space) of the device's fleet and the data is collected in the respective fleet database.
19
-
20
- So if you use the library in your app, the data collection will always be private to the app user's fleet.
21
-
22
- ## Usage
23
-
24
- ```python
25
- import asyncio
26
- from ironflock import IronFlock
27
-
28
- # create a ironflock instance, which auto connects to the IronFlock Platform
29
- # the ironflock instance handles authentication and reconnects when the connection is lost
30
- rw = IronFlock()
31
-
32
- async def main():
33
- while True:
34
- # publish an event (if connection is not established the publish is skipped)
35
- publication = await rw.publish("test.publish.com", {"temperature": 20})
36
- print(publication)
37
- await asyncio.sleep(3)
38
-
39
-
40
- if __name__ == "__main__":
41
- # run the main coroutine
42
- asyncio.get_event_loop().create_task(main())
43
- # run the ironflock component
44
- rw.run()
45
- ```
46
-
47
- ## Options
48
-
49
- The `IronFlock` `__init__` function can be configured with the following options:
50
-
51
- ```ts
52
- {
53
- serial_number: string;
54
- }
55
- ```
56
-
57
- **serial_number**: Used to set the serial_number of the device if the `DEVICE_SERIAL_NUMBER` environment variable does not exist. It can also be used if the user wishes to authenticate as another device.
58
-
59
- ## Advanced Usage
60
-
61
- If you need more control, e.g. acting on lifecycle events (`onJoin`, `onLeave`) take a look at
62
- the [examples](./examples/) folder.
63
-
64
-
65
- ## Development
66
-
67
- Install the necessary components if you don't have them already:
68
-
69
- ```shell
70
- pip install --upgrade setuptools wheel twine
71
- ```
72
-
73
- Build and publish a new pypi package:
74
-
75
- ```shell
76
- python setup.py sdist bdist_wheel
77
- twine upload dist/*
78
- ```
79
-
80
- Check the package at https://pypi.org/project/ironflock/.
@@ -1,80 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: ironflock
3
- Version: 1.0.0
4
- Summary: Publishing data to a IronFlock Fleet Storage
5
- Home-page: https://github.com/RecordEvolution/ironflock-python
6
- Author: Record Evolution GmbH
7
- Author-email: marko.petzold@record-evolution.de
8
- License: MIT
9
- Requires-Python: >=3.6
10
- Description-Content-Type: text/markdown
11
- License-File: LICENSE
12
- Requires-Dist: autobahn[asyncio,compression,serialization]==22.3.2
13
-
14
- # ironflock
15
-
16
- ## About
17
-
18
- With this library you can publishing data to IronFlock fleet storage. When this library is used on a certain device the library automatically uses the private messaging realm (Unified Name Space) of the device's fleet and the data is collected in the respective fleet database.
19
-
20
- So if you use the library in your app, the data collection will always be private to the app user's fleet.
21
-
22
- ## Usage
23
-
24
- ```python
25
- import asyncio
26
- from ironflock import IronFlock
27
-
28
- # create a ironflock instance, which auto connects to the IronFlock Platform
29
- # the ironflock instance handles authentication and reconnects when the connection is lost
30
- rw = IronFlock()
31
-
32
- async def main():
33
- while True:
34
- # publish an event (if connection is not established the publish is skipped)
35
- publication = await rw.publish("test.publish.com", {"temperature": 20})
36
- print(publication)
37
- await asyncio.sleep(3)
38
-
39
-
40
- if __name__ == "__main__":
41
- # run the main coroutine
42
- asyncio.get_event_loop().create_task(main())
43
- # run the ironflock component
44
- rw.run()
45
- ```
46
-
47
- ## Options
48
-
49
- The `IronFlock` `__init__` function can be configured with the following options:
50
-
51
- ```ts
52
- {
53
- serial_number: string;
54
- }
55
- ```
56
-
57
- **serial_number**: Used to set the serial_number of the device if the `DEVICE_SERIAL_NUMBER` environment variable does not exist. It can also be used if the user wishes to authenticate as another device.
58
-
59
- ## Advanced Usage
60
-
61
- If you need more control, e.g. acting on lifecycle events (`onJoin`, `onLeave`) take a look at
62
- the [examples](./examples/) folder.
63
-
64
-
65
- ## Development
66
-
67
- Install the necessary components if you don't have them already:
68
-
69
- ```shell
70
- pip install --upgrade setuptools wheel twine
71
- ```
72
-
73
- Build and publish a new pypi package:
74
-
75
- ```shell
76
- python setup.py sdist bdist_wheel
77
- twine upload dist/*
78
- ```
79
-
80
- Check the package at https://pypi.org/project/ironflock/.
@@ -1 +0,0 @@
1
- autobahn[asyncio,compression,serialization]==22.3.2
@@ -1,6 +0,0 @@
1
- [build-system]
2
- requires = [
3
- "setuptools>=42",
4
- "wheel"
5
- ]
6
- build-backend = "setuptools.build_meta"
@@ -1 +0,0 @@
1
- autobahn[asyncio, serialization, compression]==22.3.2
File without changes
File without changes
File without changes