OpenZilo 0.6.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.
openzilo/__init__.py ADDED
@@ -0,0 +1,302 @@
1
+ # SPDX-License-Identifier: MPL-2.0
2
+ """OpenZilo Python SDK for compatible BLE rings.
3
+
4
+ Everything listed in ``__all__`` is the supported public API. Submodules are
5
+ private implementation details and may change without notice.
6
+ """
7
+
8
+ from ._version import __version__
9
+ from ._identity import SdkIdentity, get_sdk_identity
10
+ from ._compatibility import (
11
+ DeviceCapabilities, FeatureVersion, RecordingLimits,
12
+ get_device_capabilities, parse_device_capabilities,
13
+ )
14
+
15
+ from ._errors import (
16
+ AudioDecodeError,
17
+ CompatibilityError,
18
+ DeviceError,
19
+ OpenZiloError,
20
+ OpusDecoderUnavailable,
21
+ ProtocolError,
22
+ SpeexDecoderUnavailable,
23
+ TimeoutError,
24
+ TransportError,
25
+ )
26
+ from ._protocol import (
27
+ BinaryReader,
28
+ BinaryWriter,
29
+ crc16_compute,
30
+ decode_packet,
31
+ encode_packet,
32
+ Packet,
33
+ PacketStream,
34
+ )
35
+ from ._transport import (
36
+ BleDeviceInfo,
37
+ NusClient,
38
+ )
39
+ from ._client import (
40
+ OpenZiloClient,
41
+ )
42
+ from ._device import (
43
+ connect_ring,
44
+ enable_time_sync,
45
+ get_log_storage,
46
+ get_system_info,
47
+ get_connection_rssi,
48
+ LogStorageInfo,
49
+ parse_system_info,
50
+ read_log_chunk,
51
+ scan_rings,
52
+ send_time_response,
53
+ SystemInfo,
54
+ )
55
+ from ._firmware_bundle import FirmwareBundle, inspect_firmware_bundle
56
+ from ._ota import (
57
+ update_firmware,
58
+ )
59
+ from ._recording import (
60
+ AudioDisconnectPolicy,
61
+ AudioOutput,
62
+ AudioRecordingConfig,
63
+ AudioRecordingState,
64
+ AudioRecordingStatus,
65
+ get_audio_recording_config,
66
+ get_audio_recording_status,
67
+ set_audio_recording_config,
68
+ start_audio_recording,
69
+ stop_audio_recording,
70
+ wait_audio_recording_finished,
71
+ )
72
+ from ._codec import (
73
+ AudioBundle,
74
+ build_audio_bundle_paths,
75
+ build_base_name,
76
+ build_ogg_speex,
77
+ build_opus_recording,
78
+ build_playable_audio,
79
+ build_wav_from_pcm,
80
+ decode_audio_to_wav,
81
+ decode_ogg_speex_with_ffmpeg,
82
+ decode_opus_to_pcm,
83
+ decode_speex_to_pcm,
84
+ format_pcm_config,
85
+ is_ogg_speex,
86
+ is_wav,
87
+ normalize_decoded_speex_pcm,
88
+ normalize_pcm_config,
89
+ OpusDecodeResult,
90
+ parse_opus_recording,
91
+ parse_packetized_speex_stream,
92
+ PcmConfig,
93
+ pick_bits_size,
94
+ pick_frame_size,
95
+ pick_speex_mode,
96
+ PlayableAudio,
97
+ save_audio_bundle,
98
+ SpeexDecodeResult,
99
+ split_raw_speex_packets,
100
+ )
101
+ from ._audio import (
102
+ AudioDataFrame,
103
+ AudioFileInfo,
104
+ AudioRecordResult,
105
+ clear_audio_files,
106
+ download_audio_file,
107
+ end_audio_extract,
108
+ get_audio_file_count,
109
+ get_audio_file_info,
110
+ parse_audio_data_frame,
111
+ parse_audio_file_info,
112
+ parse_audio_record_result,
113
+ ProgressPrinter,
114
+ read_audio_frame,
115
+ receive_auto_audio_file,
116
+ wait_audio_record_result,
117
+ )
118
+ from ._live_audio import (
119
+ LiveAudioData,
120
+ LiveAudioEnd,
121
+ LiveAudioRecording,
122
+ LiveAudioStart,
123
+ LiveAudioStream,
124
+ LiveAudioSubscription,
125
+ LivePcmFrame,
126
+ open_live_audio_stream,
127
+ parse_live_audio_data,
128
+ parse_live_audio_end,
129
+ parse_live_audio_start,
130
+ receive_live_audio_file,
131
+ set_live_audio_subscription,
132
+ )
133
+ from ._sensor import (
134
+ parse_sensor_data_batch,
135
+ parse_sensor_double_tap_event,
136
+ parse_sensor_gesture_event,
137
+ parse_sensor_key_double_press_event,
138
+ parse_sensor_key_single_press_event,
139
+ sensor_gesture_name,
140
+ SensorDataBatch,
141
+ SensorDataSample,
142
+ SensorDoubleTapEvent,
143
+ SensorGestureEvent,
144
+ SensorGestureId,
145
+ SensorKeyDoublePressEvent,
146
+ SensorKeySinglePressEvent,
147
+ SensorStartInfo,
148
+ SensorStopInfo,
149
+ start_sensor_report,
150
+ stop_sensor_report,
151
+ wait_sensor_data,
152
+ wait_sensor_double_tap_event,
153
+ wait_sensor_gesture_event,
154
+ wait_sensor_key_double_press_event,
155
+ wait_sensor_key_single_press_event,
156
+ )
157
+
158
+ from ._imu_calibration import (
159
+ ImuCalibration, ImuStaticWindow, CalibratedImuSample, CalibratedImuBatch, apply_imu_calibration,
160
+ collect_imu_static_window, analyze_imu_static_window, fit_imu_gyro_bias,
161
+ fit_imu_six_face_calibration, validate_imu_calibration,
162
+ )
163
+ from ._imu_profiles import (
164
+ ImuCalibrationProfile, CalibratedImuStream, imu_device_key, imu_calibration_path,
165
+ load_imu_calibration_profile, save_imu_calibration_profile, open_calibrated_imu_stream,
166
+ )
167
+
168
+ __all__ = [
169
+ "get_connection_rssi",
170
+ "ImuCalibration", "ImuStaticWindow", "CalibratedImuSample", "CalibratedImuBatch",
171
+ "ImuCalibrationProfile", "CalibratedImuStream", "apply_imu_calibration", "imu_device_key",
172
+ "imu_calibration_path", "load_imu_calibration_profile", "save_imu_calibration_profile",
173
+ "open_calibrated_imu_stream", "collect_imu_static_window", "analyze_imu_static_window",
174
+ "fit_imu_gyro_bias", "fit_imu_six_face_calibration", "validate_imu_calibration",
175
+ "SdkIdentity",
176
+ "get_sdk_identity",
177
+ "CompatibilityError",
178
+ "DeviceCapabilities",
179
+ "FeatureVersion",
180
+ "RecordingLimits",
181
+ "get_device_capabilities",
182
+ "parse_device_capabilities",
183
+ "AudioDisconnectPolicy",
184
+ "AudioOutput",
185
+ "AudioRecordingConfig",
186
+ "AudioRecordingState",
187
+ "AudioRecordingStatus",
188
+ "get_audio_recording_config",
189
+ "get_audio_recording_status",
190
+ "set_audio_recording_config",
191
+ "start_audio_recording",
192
+ "stop_audio_recording",
193
+ "wait_audio_recording_finished",
194
+ "AudioBundle",
195
+ "AudioDataFrame",
196
+ "AudioDecodeError",
197
+ "AudioFileInfo",
198
+ "AudioRecordResult",
199
+ "BinaryReader",
200
+ "BinaryWriter",
201
+ "BleDeviceInfo",
202
+ "build_audio_bundle_paths",
203
+ "build_base_name",
204
+ "build_ogg_speex",
205
+ "build_opus_recording",
206
+ "build_playable_audio",
207
+ "build_wav_from_pcm",
208
+ "clear_audio_files",
209
+ "connect_ring",
210
+ "crc16_compute",
211
+ "decode_audio_to_wav",
212
+ "decode_ogg_speex_with_ffmpeg",
213
+ "decode_opus_to_pcm",
214
+ "decode_packet",
215
+ "decode_speex_to_pcm",
216
+ "DeviceError",
217
+ "download_audio_file",
218
+ "enable_time_sync",
219
+ "encode_packet",
220
+ "end_audio_extract",
221
+ "format_pcm_config",
222
+ "get_audio_file_count",
223
+ "get_audio_file_info",
224
+ "get_log_storage",
225
+ "get_system_info",
226
+ "is_ogg_speex",
227
+ "is_wav",
228
+ "LiveAudioData",
229
+ "LiveAudioEnd",
230
+ "LiveAudioRecording",
231
+ "LiveAudioStart",
232
+ "LiveAudioStream",
233
+ "LiveAudioSubscription",
234
+ "LivePcmFrame",
235
+ "LogStorageInfo",
236
+ "normalize_decoded_speex_pcm",
237
+ "normalize_pcm_config",
238
+ "NusClient",
239
+ "OpenZiloClient",
240
+ "OpenZiloError",
241
+ "open_live_audio_stream",
242
+ "OpusDecodeResult",
243
+ "OpusDecoderUnavailable",
244
+ "Packet",
245
+ "PacketStream",
246
+ "parse_audio_data_frame",
247
+ "parse_audio_file_info",
248
+ "parse_audio_record_result",
249
+ "parse_live_audio_data",
250
+ "parse_live_audio_end",
251
+ "parse_live_audio_start",
252
+ "parse_opus_recording",
253
+ "parse_packetized_speex_stream",
254
+ "parse_sensor_data_batch",
255
+ "parse_sensor_double_tap_event",
256
+ "parse_sensor_gesture_event",
257
+ "parse_sensor_key_double_press_event",
258
+ "parse_sensor_key_single_press_event",
259
+ "parse_system_info",
260
+ "PcmConfig",
261
+ "pick_bits_size",
262
+ "pick_frame_size",
263
+ "pick_speex_mode",
264
+ "PlayableAudio",
265
+ "ProgressPrinter",
266
+ "ProtocolError",
267
+ "read_audio_frame",
268
+ "read_log_chunk",
269
+ "receive_auto_audio_file",
270
+ "receive_live_audio_file",
271
+ "save_audio_bundle",
272
+ "scan_rings",
273
+ "send_time_response",
274
+ "sensor_gesture_name",
275
+ "SensorDataBatch",
276
+ "SensorDataSample",
277
+ "SensorDoubleTapEvent",
278
+ "SensorGestureEvent",
279
+ "SensorGestureId",
280
+ "SensorKeyDoublePressEvent",
281
+ "SensorKeySinglePressEvent",
282
+ "SensorStartInfo",
283
+ "SensorStopInfo",
284
+ "set_live_audio_subscription",
285
+ "SpeexDecodeResult",
286
+ "SpeexDecoderUnavailable",
287
+ "split_raw_speex_packets",
288
+ "start_sensor_report",
289
+ "stop_sensor_report",
290
+ "SystemInfo",
291
+ "TimeoutError",
292
+ "TransportError",
293
+ "update_firmware",
294
+ "FirmwareBundle",
295
+ "inspect_firmware_bundle",
296
+ "wait_audio_record_result",
297
+ "wait_sensor_data",
298
+ "wait_sensor_double_tap_event",
299
+ "wait_sensor_gesture_event",
300
+ "wait_sensor_key_double_press_event",
301
+ "wait_sensor_key_single_press_event",
302
+ ]
openzilo/__main__.py ADDED
@@ -0,0 +1,4 @@
1
+ # SPDX-License-Identifier: MPL-2.0
2
+ from ._cli import run
3
+
4
+ run()