hat-event 0.9.27__cp310.cp311.cp312.cp313-abi3-win_amd64.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.
Files changed (73) hide show
  1. hat/event/__init__.py +1 -0
  2. hat/event/adminer/__init__.py +18 -0
  3. hat/event/adminer/client.py +124 -0
  4. hat/event/adminer/common.py +27 -0
  5. hat/event/adminer/server.py +111 -0
  6. hat/event/backends/__init__.py +0 -0
  7. hat/event/backends/dummy.py +49 -0
  8. hat/event/backends/lmdb/__init__.py +9 -0
  9. hat/event/backends/lmdb/backend.py +319 -0
  10. hat/event/backends/lmdb/common.py +277 -0
  11. hat/event/backends/lmdb/conditions.py +102 -0
  12. hat/event/backends/lmdb/convert/__init__.py +0 -0
  13. hat/event/backends/lmdb/convert/__main__.py +8 -0
  14. hat/event/backends/lmdb/convert/convert_v06_to_v07.py +213 -0
  15. hat/event/backends/lmdb/convert/convert_v07_to_v09.py +175 -0
  16. hat/event/backends/lmdb/convert/main.py +88 -0
  17. hat/event/backends/lmdb/convert/v06.py +216 -0
  18. hat/event/backends/lmdb/convert/v07.py +508 -0
  19. hat/event/backends/lmdb/convert/v09.py +50 -0
  20. hat/event/backends/lmdb/convert/version.py +63 -0
  21. hat/event/backends/lmdb/environment.py +100 -0
  22. hat/event/backends/lmdb/latestdb.py +116 -0
  23. hat/event/backends/lmdb/manager/__init__.py +0 -0
  24. hat/event/backends/lmdb/manager/__main__.py +8 -0
  25. hat/event/backends/lmdb/manager/common.py +45 -0
  26. hat/event/backends/lmdb/manager/copy.py +92 -0
  27. hat/event/backends/lmdb/manager/main.py +34 -0
  28. hat/event/backends/lmdb/manager/query.py +215 -0
  29. hat/event/backends/lmdb/refdb.py +234 -0
  30. hat/event/backends/lmdb/systemdb.py +102 -0
  31. hat/event/backends/lmdb/timeseriesdb.py +486 -0
  32. hat/event/backends/memory.py +178 -0
  33. hat/event/common/__init__.py +144 -0
  34. hat/event/common/backend.py +91 -0
  35. hat/event/common/collection/__init__.py +8 -0
  36. hat/event/common/collection/common.py +28 -0
  37. hat/event/common/collection/list.py +19 -0
  38. hat/event/common/collection/tree.py +62 -0
  39. hat/event/common/common.py +176 -0
  40. hat/event/common/encoder.py +305 -0
  41. hat/event/common/json_schema_repo.json +1 -0
  42. hat/event/common/matches.py +44 -0
  43. hat/event/common/module.py +142 -0
  44. hat/event/common/sbs_repo.json +1 -0
  45. hat/event/common/subscription/__init__.py +22 -0
  46. hat/event/common/subscription/_csubscription.abi3.pyd +0 -0
  47. hat/event/common/subscription/common.py +145 -0
  48. hat/event/common/subscription/csubscription.py +47 -0
  49. hat/event/common/subscription/pysubscription.py +97 -0
  50. hat/event/component.py +284 -0
  51. hat/event/eventer/__init__.py +28 -0
  52. hat/event/eventer/client.py +260 -0
  53. hat/event/eventer/common.py +27 -0
  54. hat/event/eventer/server.py +286 -0
  55. hat/event/manager/__init__.py +0 -0
  56. hat/event/manager/__main__.py +8 -0
  57. hat/event/manager/common.py +48 -0
  58. hat/event/manager/main.py +387 -0
  59. hat/event/server/__init__.py +0 -0
  60. hat/event/server/__main__.py +8 -0
  61. hat/event/server/adminer_server.py +43 -0
  62. hat/event/server/engine.py +216 -0
  63. hat/event/server/engine_runner.py +127 -0
  64. hat/event/server/eventer_client.py +205 -0
  65. hat/event/server/eventer_client_runner.py +152 -0
  66. hat/event/server/eventer_server.py +119 -0
  67. hat/event/server/main.py +84 -0
  68. hat/event/server/main_runner.py +212 -0
  69. hat_event-0.9.27.dist-info/LICENSE +202 -0
  70. hat_event-0.9.27.dist-info/METADATA +108 -0
  71. hat_event-0.9.27.dist-info/RECORD +73 -0
  72. hat_event-0.9.27.dist-info/WHEEL +7 -0
  73. hat_event-0.9.27.dist-info/entry_points.txt +5 -0
@@ -0,0 +1,212 @@
1
+ import asyncio
2
+ import contextlib
3
+ import functools
4
+ import logging
5
+
6
+ from hat import aio
7
+ from hat import json
8
+ from hat import util
9
+ from hat.drivers import tcp
10
+ import hat.monitor.component
11
+
12
+ from hat.event import common
13
+ from hat.event.server.adminer_server import create_adminer_server
14
+ from hat.event.server.engine_runner import EngineRunner
15
+ from hat.event.server.eventer_client_runner import EventerClientRunner
16
+ from hat.event.server.eventer_server import create_eventer_server
17
+
18
+
19
+ mlog: logging.Logger = logging.getLogger(__name__)
20
+ """Module logger"""
21
+
22
+
23
+ class MainRunner(aio.Resource):
24
+
25
+ def __init__(self,
26
+ conf: json.Data,
27
+ reset_monitor_ready_timeout: float = 30):
28
+ self._conf = conf
29
+ self._reset_monitor_ready_timeout = reset_monitor_ready_timeout
30
+ self._loop = asyncio.get_running_loop()
31
+ self._async_group = aio.Group()
32
+ self._backend = None
33
+ self._eventer_server = None
34
+ self._adminer_server = None
35
+ self._monitor_component = None
36
+ self._eventer_client_runner = None
37
+ self._engine_runner = None
38
+ self._monitor_state_cbs = util.CallbackRegistry()
39
+ self._reset_monitor_ready = asyncio.Event()
40
+
41
+ self.async_group.spawn(self._run)
42
+
43
+ @property
44
+ def async_group(self) -> aio.Group:
45
+ return self._async_group
46
+
47
+ async def _run(self):
48
+ try:
49
+ mlog.debug("starting main runner loop")
50
+ await self._start()
51
+
52
+ if not self._monitor_component:
53
+ await self._loop.create_future()
54
+ return
55
+
56
+ await self._monitor_component.set_ready(True)
57
+
58
+ while True:
59
+ self._reset_monitor_ready.clear()
60
+ await self._reset_monitor_ready.wait()
61
+
62
+ await self._monitor_component.set_ready(False)
63
+
64
+ with contextlib.suppress(asyncio.TimeoutError):
65
+ await aio.wait_for(
66
+ self._wait_while_monitor_blessing_res_token(),
67
+ self._reset_monitor_ready_timeout)
68
+
69
+ await self._monitor_component.set_ready(True)
70
+
71
+ except Exception as e:
72
+ mlog.error("main runner loop error: %s", e, exc_info=e)
73
+
74
+ finally:
75
+ mlog.debug("closing main runner loop")
76
+ self.close()
77
+ await aio.uncancellable(self._stop())
78
+
79
+ async def _start(self):
80
+ mlog.debug("creating backend")
81
+ backend_conf = self._conf['backend']
82
+ backend_info = common.import_backend_info(backend_conf['module'])
83
+ self._backend = await aio.call(
84
+ backend_info.create, backend_conf,
85
+ functools.partial(self._on_backend_events, False),
86
+ functools.partial(self._on_backend_events, True))
87
+ _bind_resource(self.async_group, self._backend)
88
+
89
+ mlog.debug("creating eventer server")
90
+ self._eventer_server = await create_eventer_server(
91
+ addr=tcp.Address(self._conf['eventer_server']['host'],
92
+ self._conf['eventer_server']['port']),
93
+ backend=self._backend,
94
+ server_id=self._conf['server_id'],
95
+ server_token=self._conf.get('server_token'))
96
+ _bind_resource(self.async_group, self._eventer_server)
97
+
98
+ if 'adminer_server' in self._conf:
99
+ mlog.debug("creating adminer server")
100
+ self._adminer_server = await create_adminer_server(
101
+ addr=tcp.Address(self._conf['adminer_server']['host'],
102
+ self._conf['adminer_server']['port']),
103
+ log_conf=self._conf.get('log'))
104
+ _bind_resource(self.async_group, self._adminer_server)
105
+
106
+ if 'monitor_component' in self._conf:
107
+ mlog.debug("creating eventer client runner")
108
+ self._eventer_client_runner = EventerClientRunner(
109
+ conf=self._conf,
110
+ backend=self._backend,
111
+ synced_cb=self._on_eventer_client_synced)
112
+ _bind_resource(self.async_group, self._eventer_client_runner)
113
+
114
+ handle = self._monitor_state_cbs.register(
115
+ self._eventer_client_runner.set_monitor_state)
116
+ self._eventer_client_runner.async_group.spawn(
117
+ aio.call_on_cancel, handle.cancel)
118
+
119
+ mlog.debug("creating monitor component")
120
+ self._monitor_component = await hat.monitor.component.connect(
121
+ addr=tcp.Address(self._conf['monitor_component']['host'],
122
+ self._conf['monitor_component']['port']),
123
+ name=self._conf['name'],
124
+ group=self._conf['monitor_component']['group'],
125
+ runner_cb=self._create_monitor_runner,
126
+ data={'server_id': self._conf['server_id'],
127
+ 'eventer_server': self._conf['eventer_server'],
128
+ 'server_token': self._conf.get('server_token')},
129
+ state_cb=self._on_monitor_state,
130
+ close_req_cb=self._on_monitor_close_req)
131
+ _bind_resource(self.async_group, self._monitor_component)
132
+
133
+ self._eventer_client_runner.set_monitor_state(
134
+ self._monitor_component.state)
135
+
136
+ else:
137
+ mlog.debug("creating engine runner")
138
+ self._engine_runner = EngineRunner(
139
+ conf=self._conf,
140
+ backend=self._backend,
141
+ eventer_server=self._eventer_server,
142
+ eventer_client_runner=None,
143
+ reset_monitor_ready_cb=self._reset_monitor_ready.set)
144
+ _bind_resource(self.async_group, self._engine_runner)
145
+
146
+ async def _stop(self):
147
+ if self._engine_runner and not self._monitor_component:
148
+ await self._engine_runner.async_close()
149
+
150
+ if self._eventer_client_runner:
151
+ await self._eventer_client_runner.async_close()
152
+
153
+ if self._monitor_component:
154
+ await self._monitor_component.async_close()
155
+
156
+ if self._adminer_server:
157
+ await self._adminer_server.async_close()
158
+
159
+ if self._eventer_server:
160
+ with contextlib.suppress(Exception):
161
+ await self._backend.flush()
162
+
163
+ await self._eventer_server.async_close()
164
+
165
+ if self._backend:
166
+ await self._backend.async_close()
167
+
168
+ def _create_monitor_runner(self, monitor_component):
169
+ mlog.debug("creating engine runner")
170
+ self._engine_runner = EngineRunner(
171
+ conf=self._conf,
172
+ backend=self._backend,
173
+ eventer_server=self._eventer_server,
174
+ eventer_client_runner=self._eventer_client_runner,
175
+ reset_monitor_ready_cb=self._reset_monitor_ready.set)
176
+ return self._engine_runner
177
+
178
+ def _on_monitor_state(self, monitor_component, state):
179
+ self._monitor_state_cbs.notify(state)
180
+
181
+ async def _on_monitor_close_req(self, monitor_component):
182
+ if not self._engine_runner:
183
+ return
184
+
185
+ await self._engine_runner.async_close()
186
+
187
+ async def _on_backend_events(self, persisted, events):
188
+ if not self._eventer_server:
189
+ return
190
+
191
+ await self._eventer_server.notify_events(events, persisted)
192
+
193
+ async def _on_eventer_client_synced(self, server_id, state, count):
194
+ if not self._engine_runner:
195
+ return
196
+
197
+ await self._engine_runner.set_synced(server_id, state, count)
198
+
199
+ async def _wait_while_monitor_blessing_res_token(self):
200
+ if not self._monitor_component:
201
+ return
202
+
203
+ while (self._monitor_component.state.info and
204
+ self._monitor_component.state.info.blessing_res.token):
205
+ event = asyncio.Event()
206
+ with self._monitor_state_cbs.register(lambda _: event.set()):
207
+ await event.wait()
208
+
209
+
210
+ def _bind_resource(async_group, resource):
211
+ async_group.spawn(aio.call_on_done, resource.wait_closing(),
212
+ async_group.close)
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,108 @@
1
+ Metadata-Version: 2.1
2
+ Name: hat-event
3
+ Version: 0.9.27
4
+ Summary: Hat event
5
+ Description-Content-Type: text/x-rst
6
+ License: Apache-2.0
7
+ Provides-Extra: dev
8
+ Requires-Dist: appdirs ~=1.4.4
9
+ Requires-Dist: hat-aio ~=0.7.11
10
+ Requires-Dist: hat-drivers ~=0.8.13
11
+ Requires-Dist: hat-json ~=0.5.29
12
+ Requires-Dist: hat-monitor ~=0.8.16
13
+ Requires-Dist: hat-sbs ~=0.7.4
14
+ Requires-Dist: hat-util ~=0.6.17
15
+ Requires-Dist: lmdb >=1.4.1, <1.7
16
+ Requires-Dist: hat-doit ~=0.15.18; extra == 'dev'
17
+ Requires-Dist: peru >=1.3.1; extra == 'dev'
18
+ Requires-Dist: psutil >=5.9.5; extra == 'dev'
19
+ Requires-Dist: sphinxcontrib-plantuml >=0.23; extra == 'dev'
20
+ Requires-Dist: sphinxcontrib-programoutput >=0.17; extra == 'dev'
21
+ Requires-Python: >=3.10
22
+ Project-URL: Homepage, http://hat-open.com
23
+ Project-URL: Repository, https://github.com/hat-open/hat-event.git
24
+ Project-URL: Documentation, http://hat-event.hat-open.com
25
+
26
+ .. _online documentation: https://hat-event.hat-open.com
27
+ .. _git repository: https://github.com/hat-open/hat-event.git
28
+ .. _PyPI project: https://pypi.org/project/hat-event
29
+ .. _pydoit: https://pydoit.org
30
+ .. _Hat Open: https://hat-open.com
31
+ .. _Končar Digital: https://www.koncar.hr/en
32
+
33
+
34
+ hat-event - Event server and communication libraries
35
+ ====================================================
36
+
37
+ For more information see:
38
+
39
+ * `online documentation`_
40
+ * `git repository`_
41
+
42
+
43
+ Runtime requirements
44
+ --------------------
45
+
46
+ * python >=3.10
47
+
48
+
49
+ Install
50
+ -------
51
+
52
+ `hat-event` is available as `PyPI project`_::
53
+
54
+ $ pip install hat-event
55
+
56
+
57
+ Build
58
+ -----
59
+
60
+ To install editable installation, together with python development
61
+ dependencies, run::
62
+
63
+ $ pip install -e '.[dev]'
64
+
65
+ To install only python development dependencies, run::
66
+
67
+ $ pip install -r requirements.pip.txt
68
+
69
+ Build tool used for `hat-event` is `pydoit`_. For listing available doit tasks,
70
+ use::
71
+
72
+ $ doit list
73
+
74
+ Default task::
75
+
76
+ $ doit
77
+
78
+ creates wheel package inside `build` directory.
79
+
80
+
81
+ Hat Open
82
+ --------
83
+
84
+ `hat-event` is part of `Hat Open`_ project - open-source framework of
85
+ tools and libraries for developing applications used for remote monitoring,
86
+ control and management of intelligent electronic devices such as IoT devices,
87
+ PLCs, industrial automation or home automation systems.
88
+
89
+ Development of Hat Open and associated repositories is sponsored by
90
+ `Končar Digital`_.
91
+
92
+
93
+ License
94
+ -------
95
+
96
+ Copyright 2020-2025 Hat Open AUTHORS
97
+
98
+ Licensed under the Apache License, Version 2.0 (the "License");
99
+ you may not use this file except in compliance with the License.
100
+ You may obtain a copy of the License at
101
+
102
+ http://www.apache.org/licenses/LICENSE-2.0
103
+
104
+ Unless required by applicable law or agreed to in writing, software
105
+ distributed under the License is distributed on an "AS IS" BASIS,
106
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
107
+ See the License for the specific language governing permissions and
108
+ limitations under the License.
@@ -0,0 +1,73 @@
1
+ hat/event/eventer/__init__.py,sha256=mSRDlpIqpVKml8_SbC6s1EI168OBb4dMgB7sz0uJ2Ks,924
2
+ hat/event/backends/lmdb/common.py,sha256=x8Kc3RciJ5ulwifC4GfPEDj8JlPlRQsVPYbEsvyIw9k,8880
3
+ hat/event/backends/lmdb/manager/main.py,sha256=tMpK12a0LvPgQX0XjZYjKQCB5x6jU7-t10hpeOeo8I8,752
4
+ hat/event/manager/common.py,sha256=q3JLxATG2_u6Cp9vNgtBJtqGdwfcXJmiJ-lTC_vmjO8,1517
5
+ hat/event/backends/lmdb/convert/v07.py,sha256=y4N1hQzQ4rIYs3vw6jzpQrrwZw_1gun6aFr6x1v1-zo,12740
6
+ hat/event/backends/lmdb/manager/copy.py,sha256=4GRjMVBGCQNo-BGJmxAHP-sLRPQsAdUxA-aycu3pxJk,3410
7
+ hat/event/backends/lmdb/convert/v06.py,sha256=LZfRo7nrHYCHka_KvZAMJYJl00m4fWivFzrXnRnARcc,5116
8
+ hat/event/backends/lmdb/refdb.py,sha256=NDj7e7YLSCwkD_n6PlHePWV9ebKf_iI_oBDGv49_2rU,7858
9
+ hat/event/backends/lmdb/convert/convert_v07_to_v09.py,sha256=AqmZlNbigbixwKlmVmbQKeWjcnMxZRShAhT6CmkYfCM,6933
10
+ hat/event/backends/lmdb/manager/__main__.py,sha256=RuvZt3NE2bZ4kxSOBZX136j_ZSERxkjGlMwrniNelLk,159
11
+ hat/event/common/collection/list.py,sha256=6_-rZFlMQnQ9KWAKXiMFu-5NBsYsIcyYChiareBTZVk,580
12
+ hat/event/manager/__main__.py,sha256=ra-h44I7YY7TCZgxVsUmhyvP4YjugxKCDGl136ybgUE,140
13
+ hat/event/common/subscription/common.py,sha256=lmjmhcs2LRewfKJVLgo7Bw5iZxAUT1xzukD2e7o50d8,4265
14
+ hat/event/server/adminer_server.py,sha256=6APfcQs7eKmpdK2zs6Q_GhTZGpp0E-ajdf1ty3y13HE,1122
15
+ hat/event/server/eventer_client_runner.py,sha256=p72W3YjUhGjlIUIeX-DQCtvRznCjFR4KwffvNI_O1R4,5296
16
+ hat/event/common/json_schema_repo.json,sha256=0ZCq1x7jNb4VmlK-elJkZymkimH-oL0jm9EEqJgMB7g,6385
17
+ hat/event/adminer/common.py,sha256=-pA86GhbY-oDyHypRXmJmaotOflxyMH-TykIy1r48cM,737
18
+ hat/event/server/engine.py,sha256=pDcK2khlpT8VUec8WrKoM2JqpTp4EuwSbrLxTelRinw,7516
19
+ hat/event/eventer/common.py,sha256=-pA86GhbY-oDyHypRXmJmaotOflxyMH-TykIy1r48cM,737
20
+ hat/event/common/collection/__init__.py,sha256=9C3GQY2Z1k0JKl_ENpl_ZI1gjtbiTfoFywf45dKZ72w,317
21
+ hat/event/eventer/server.py,sha256=kKuE65Wq_7GJrmxW4EDK3stgPdV6ochl1rK3MdHVqvE,9389
22
+ hat/event/common/sbs_repo.json,sha256=RwCPItSKK7d_8R_Njp8iISWbuC-sgArFAl5hX2p8x28,10639
23
+ hat/event/server/main_runner.py,sha256=FCYilVKYlVThLSaqjbbxReEVftT9kVs2tlmvY6s0n9c,7936
24
+ hat/event/adminer/__init__.py,sha256=B9kB-72XvbkrznTTLsITdOqqwXPw99g7ji_zwLhWqmA,553
25
+ hat/event/backends/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
26
+ hat/event/server/eventer_server.py,sha256=JFo9vZp-e-NPOIHFc_TgvpH-GuFnc6kZtyrroU3vBvY,3867
27
+ hat/event/backends/lmdb/convert/__main__.py,sha256=q0OhzxbrgrDOwngAlACg9ZiiDBNiR4YT9e1jbs8E0pE,159
28
+ hat/event/common/collection/common.py,sha256=PRfaVHCNy7h4SvwTX7gY6FO3GbsJxnMZWsNm2tpWPM0,595
29
+ hat/event/common/collection/tree.py,sha256=D6-qnmH2Psc-XVu6g5rhn5k-p5BiufWRzdSRKKZkp5Y,1570
30
+ hat/event/server/main.py,sha256=2BodeGH1TSrHPDOOusxFVrFeHUe_IvrZvu-GyQVNZWw,2210
31
+ hat/event/common/module.py,sha256=xKkHYr8wBc5aza5qTrib1xZW2LcAkhB3tL7s9cP8Smo,3659
32
+ hat/event/backends/lmdb/convert/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
33
+ hat/event/common/subscription/_csubscription.abi3.pyd,sha256=cjTIqDPYZpn55HHs88OMOgQSsyXBQIsFhIb5qiMQG-E,135406
34
+ hat/event/backends/lmdb/convert/main.py,sha256=oELuQcbjahVG6_Cln3XCfAR8u2TBO4EsOgvf_9P_awU,2407
35
+ hat/event/server/engine_runner.py,sha256=PM3BI0UykBpewrDJSaZzTMJjeseaR7slQYKv7fxMyKY,4332
36
+ hat/event/adminer/server.py,sha256=-BBgJC8xnpnxu1XSkDmDjaFkx8OPXDzu6R66XuGP56k,3331
37
+ hat/event/backends/lmdb/convert/v09.py,sha256=hxSWienOhOd59iCsQSmVgcXHkjhbgfOhd1SJ8X5tQtk,1332
38
+ hat/event/backends/lmdb/convert/version.py,sha256=ZLEUSXhcCStdclBzm4Ljn9KPngME1l4kllwOJXzxS8E,1682
39
+ hat/event/backends/memory.py,sha256=lOYwQmWkIAvNlG0drYX0Se3s-QkMDXv0E5Lh9P_n2-E,5394
40
+ hat/event/__init__.py,sha256=nIQrqyPevwuBP-5p0MrmV1iLnevMXoz8t5moAAl21HI,47
41
+ hat/event/eventer/client.py,sha256=BkoERobxhfqzwvIXo3FGJz6-vT6w4hoyxIFD-03podQ,8821
42
+ hat/event/common/matches.py,sha256=uV9juK5d2hNzFroFrrEbruVY0E30tTW9hpGoeTu3w_s,1556
43
+ hat/event/backends/lmdb/latestdb.py,sha256=PxKPm4bhRBmqGMFObGWwssj-25RJjKhSB3Dv5v4Ma8w,3926
44
+ hat/event/server/__main__.py,sha256=1Wul_omw9id6MncwkZAn-iFK-FaEirfTJ2JcxZzrcig,138
45
+ hat/event/backends/lmdb/systemdb.py,sha256=y5ZmrRryQMtBVKils7ImGkqMRcydC03MyEoQB_TNH_8,3227
46
+ hat/event/backends/lmdb/environment.py,sha256=b8DCflvMfjSVZo-F2kgfdZyYgcBFb1uEtqFKoMLfLIo,3194
47
+ hat/event/common/encoder.py,sha256=zJzf_qhcod7fych42L66YjLiMIkI-5an_PrVAaxh_r0,10715
48
+ hat/event/backends/lmdb/backend.py,sha256=wX68VPm3bWMi_ChG-yFYNwRrVj7DW2hZMEY_Kr32akg,10502
49
+ hat/event/manager/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
50
+ hat/event/component.py,sha256=cViBsgLfFjiKHinJljaY4HAAgUO4cK0ED0GfxWsZBrI,10003
51
+ hat/event/backends/lmdb/manager/common.py,sha256=y6UkyobFGTQ1yh7OElOzT8xYyupM8hpiWaL_Km3Ehs4,1488
52
+ hat/event/common/subscription/csubscription.py,sha256=0a2Ict21wXFYr6vyLCQfVAZyjV3v2da3oxqx_qqzN-0,1526
53
+ hat/event/backends/lmdb/timeseriesdb.py,sha256=lF4xslHRuQABTDw7SAoJntfHW6a98eSiY68rVT5sP5c,17350
54
+ hat/event/backends/dummy.py,sha256=b8K4dM0jpllR4XFEw19fURSfWiWkHXmLyPyTc5X-fks,1304
55
+ hat/event/backends/lmdb/manager/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
56
+ hat/event/backends/lmdb/convert/convert_v06_to_v07.py,sha256=z-msv8ATRi7UoaB-F-IonIXo-PlCsFXgN4RMXn3tQwY,8556
57
+ hat/event/common/subscription/pysubscription.py,sha256=qh-PH3R7EcuEIi6zzKk_ytw3rX3c9uGFEgH4eupjqhI,2666
58
+ hat/event/server/eventer_client.py,sha256=-iVREhxe38FZ-im_uCSPaD8hdWsENGZXKcdN5QytMSw,6627
59
+ hat/event/common/__init__.py,sha256=M9kY8jS-5KJJboGmMXFfBPsLJ2KFeCPZEPUgxNQolXQ,5782
60
+ hat/event/common/backend.py,sha256=5oPzQU9zHxFoSkpT1rqYIElOyItdD6gh_UZrkIiChwE,2493
61
+ hat/event/backends/lmdb/manager/query.py,sha256=NOjqDK0ucfUzgshV8A7ytuV6pQNSQDDPYsSS8wroeFc,7747
62
+ hat/event/common/subscription/__init__.py,sha256=FSY4gMwqiNPlBO_-d_D9m--oAG80HZznXpPOQWBc8Es,600
63
+ hat/event/server/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
64
+ hat/event/common/common.py,sha256=EBOSfvtIHPuGtAjbXczbzcjTQeHdvOOD_jnalJm1498,4504
65
+ hat/event/adminer/client.py,sha256=CRjpP-BZOHIPe7UbZ2jqDrk8uXxE7LS7xFmyHoP-jpA,3444
66
+ hat/event/backends/lmdb/__init__.py,sha256=a5iZ3x2iydpNHkcs3sTFjZWFAfA9XVHHBGN259cD7Ek,300
67
+ hat/event/manager/main.py,sha256=WvpB9Q1siYhrGEeezvCx-wFACUIvHmnPi0siaiZKp-A,13019
68
+ hat/event/backends/lmdb/conditions.py,sha256=NBdT1wK-MkALWLnpLX3hY2EiINE2EwFm5-nkReMi5vI,2777
69
+ hat_event-0.9.27.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
70
+ hat_event-0.9.27.dist-info/entry_points.txt,sha256=Of7Fu1XiBF4KNqyBZplvWmrh1Dqqy04BnyKwXB1LlzI,246
71
+ hat_event-0.9.27.dist-info/METADATA,sha256=S0i_il6Qas1COS2qrrU8sj2VfUzQfzs_lAT0kh4EKqI,2881
72
+ hat_event-0.9.27.dist-info/WHEEL,sha256=USO4PHR1qy7ciTQT7q3Lqq-jY8SysTeS324wMqD8tqo,163
73
+ hat_event-0.9.27.dist-info/RECORD,,
@@ -0,0 +1,7 @@
1
+ Wheel-Version: 1.0
2
+ Generator: mkwhl
3
+ Root-Is-Purelib: false
4
+ Tag: cp313-abi3-win_amd64
5
+ Tag: cp311-abi3-win_amd64
6
+ Tag: cp312-abi3-win_amd64
7
+ Tag: cp310-abi3-win_amd64
@@ -0,0 +1,5 @@
1
+ [console_scripts]
2
+ hat-event-server = hat.event.server.main:main
3
+ hat-event-manager = hat.event.manager.main:main
4
+ hat-event-lmdb-convert = hat.event.backends.lmdb.convert.main:main
5
+ hat-event-lmdb-manager = hat.event.backends.lmdb.manager.main:main