sift-stream-bindings 0.1.1__cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl → 0.2.0rc1__cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.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,29 +1,53 @@
1
1
  # This file is automatically generated by pyo3_stub_gen
2
2
 
3
3
  __all__ = [
4
+ "BackupMetricsSnapshotPy",
4
5
  "ChannelBitFieldElementPy",
5
6
  "ChannelConfigPy",
6
7
  "ChannelDataTypePy",
8
+ "ChannelEnumPy",
7
9
  "ChannelEnumTypePy",
8
10
  "ChannelValuePy",
9
11
  "ChannelValueTypePy",
12
+ "CheckpointMetricsSnapshotPy",
13
+ "DiskBackupPolicyPy",
10
14
  "DurationPy",
11
15
  "FlowConfigPy",
12
16
  "FlowPy",
17
+ "IngestWithConfigDataChannelValuePy",
13
18
  "IngestWithConfigDataStreamRequestPy",
14
19
  "IngestionConfigFormPy",
20
+ "MetadataPy",
21
+ "MetadataValuePy",
15
22
  "RecoveryStrategyPy",
16
23
  "RetryPolicyPy",
24
+ "RollingFilePolicyPy",
17
25
  "RunFormPy",
26
+ "RunSelectorPy",
18
27
  "SiftStreamBuilderPy",
28
+ "SiftStreamMetricsSnapshotPy",
19
29
  "SiftStreamPy",
20
30
  "TimeValuePy",
31
+ "ValuePy",
21
32
  ]
22
33
 
23
34
  import builtins
24
35
  import typing
25
36
  from enum import Enum
26
37
 
38
+ @typing.final
39
+ class BackupMetricsSnapshotPy:
40
+ cur_checkpoint_file_count: builtins.int
41
+ cur_checkpoint_cur_file_size: builtins.int
42
+ cur_checkpoint_bytes: builtins.int
43
+ cur_checkpoint_messages: builtins.int
44
+ total_file_count: builtins.int
45
+ total_bytes: builtins.int
46
+ total_messages: builtins.int
47
+ files_pending_ingestion: builtins.int
48
+ files_ingested: builtins.int
49
+ cur_ingest_retries: builtins.int
50
+
27
51
  @typing.final
28
52
  class ChannelBitFieldElementPy:
29
53
  name: builtins.str
@@ -41,6 +65,10 @@ class ChannelConfigPy:
41
65
  bit_field_elements: builtins.list[ChannelBitFieldElementPy]
42
66
  def __new__(cls, name:builtins.str, unit:builtins.str, description:builtins.str, data_type:ChannelDataTypePy, enum_types:typing.Sequence[ChannelEnumTypePy], bit_field_elements:typing.Sequence[ChannelBitFieldElementPy]) -> ChannelConfigPy: ...
43
67
 
68
+ @typing.final
69
+ class ChannelEnumPy:
70
+ def __new__(cls, val:builtins.int) -> ChannelEnumPy: ...
71
+
44
72
  @typing.final
45
73
  class ChannelEnumTypePy:
46
74
  name: builtins.str
@@ -49,26 +77,9 @@ class ChannelEnumTypePy:
49
77
 
50
78
  @typing.final
51
79
  class ChannelValuePy:
52
- @staticmethod
53
- def bool(name:builtins.str, value:builtins.bool) -> ChannelValuePy: ...
54
- @staticmethod
55
- def string(name:builtins.str, value:builtins.str) -> ChannelValuePy: ...
56
- @staticmethod
57
- def float(name:builtins.str, value:builtins.float) -> ChannelValuePy: ...
58
- @staticmethod
59
- def double(name:builtins.str, value:builtins.float) -> ChannelValuePy: ...
60
- @staticmethod
61
- def int32(name:builtins.str, value:builtins.int) -> ChannelValuePy: ...
62
- @staticmethod
63
- def uint32(name:builtins.str, value:builtins.int) -> ChannelValuePy: ...
64
- @staticmethod
65
- def int64(name:builtins.str, value:builtins.int) -> ChannelValuePy: ...
66
- @staticmethod
67
- def uint64(name:builtins.str, value:builtins.int) -> ChannelValuePy: ...
68
- @staticmethod
69
- def enum_value(name:builtins.str, value:ChannelEnumTypePy) -> ChannelValuePy: ...
70
- @staticmethod
71
- def bitfield(name:builtins.str, value:typing.Sequence[builtins.int]) -> ChannelValuePy: ...
80
+ name: builtins.str
81
+ value: ValuePy
82
+ def __new__(cls, name:builtins.str, value:ValuePy) -> ChannelValuePy: ...
72
83
 
73
84
  @typing.final
74
85
  class ChannelValueTypePy:
@@ -94,6 +105,30 @@ class ChannelValueTypePy:
94
105
  def bitfield(value:typing.Sequence[builtins.int]) -> ChannelValueTypePy: ...
95
106
  @staticmethod
96
107
  def bytes(value:typing.Sequence[builtins.int]) -> ChannelValueTypePy: ...
108
+ @staticmethod
109
+ def empty() -> ChannelValueTypePy: ...
110
+
111
+ @typing.final
112
+ class CheckpointMetricsSnapshotPy:
113
+ checkpoint_count: builtins.int
114
+ failed_checkpoint_count: builtins.int
115
+ checkpoint_timer_reached_cnt: builtins.int
116
+ checkpoint_manually_reached_cnt: builtins.int
117
+ cur_elapsed_secs: builtins.float
118
+ cur_messages_sent: builtins.int
119
+ cur_message_rate: builtins.float
120
+ cur_bytes_sent: builtins.int
121
+ cur_byte_rate: builtins.float
122
+
123
+ @typing.final
124
+ class DiskBackupPolicyPy:
125
+ backups_dir: typing.Optional[builtins.str]
126
+ max_backup_file_size: builtins.int
127
+ rolling_file_policy: RollingFilePolicyPy
128
+ retain_backups: builtins.bool
129
+ def __new__(cls, backups_dir:typing.Optional[builtins.str], max_backup_file_size:builtins.int, rolling_file_policy:RollingFilePolicyPy, retain_backups:builtins.bool) -> DiskBackupPolicyPy: ...
130
+ @staticmethod
131
+ def default() -> DiskBackupPolicyPy: ...
97
132
 
98
133
  @typing.final
99
134
  class DurationPy:
@@ -111,16 +146,42 @@ class FlowConfigPy:
111
146
  class FlowPy:
112
147
  def __new__(cls, flow_name:builtins.str, timestamp:TimeValuePy, values:typing.Sequence[ChannelValuePy]) -> FlowPy: ...
113
148
 
149
+ @typing.final
150
+ class IngestWithConfigDataChannelValuePy:
151
+ ty: ChannelValueTypePy
152
+ @staticmethod
153
+ def bool(value:builtins.bool) -> IngestWithConfigDataChannelValuePy: ...
154
+ @staticmethod
155
+ def string(value:builtins.str) -> IngestWithConfigDataChannelValuePy: ...
156
+ @staticmethod
157
+ def float(value:builtins.float) -> IngestWithConfigDataChannelValuePy: ...
158
+ @staticmethod
159
+ def double(value:builtins.float) -> IngestWithConfigDataChannelValuePy: ...
160
+ @staticmethod
161
+ def int32(value:builtins.int) -> IngestWithConfigDataChannelValuePy: ...
162
+ @staticmethod
163
+ def uint32(value:builtins.int) -> IngestWithConfigDataChannelValuePy: ...
164
+ @staticmethod
165
+ def int64(value:builtins.int) -> IngestWithConfigDataChannelValuePy: ...
166
+ @staticmethod
167
+ def uint64(value:builtins.int) -> IngestWithConfigDataChannelValuePy: ...
168
+ @staticmethod
169
+ def enum_value(value:builtins.int) -> IngestWithConfigDataChannelValuePy: ...
170
+ @staticmethod
171
+ def bitfield(value:typing.Sequence[builtins.int]) -> IngestWithConfigDataChannelValuePy: ...
172
+ @staticmethod
173
+ def empty() -> IngestWithConfigDataChannelValuePy: ...
174
+
114
175
  @typing.final
115
176
  class IngestWithConfigDataStreamRequestPy:
116
177
  ingestion_config_id: builtins.str
117
178
  flow: builtins.str
118
179
  timestamp: typing.Optional[TimeValuePy]
119
- channel_values: builtins.list[ChannelValuePy]
180
+ channel_values: builtins.list[IngestWithConfigDataChannelValuePy]
120
181
  run_id: builtins.str
121
182
  end_stream_on_validation_error: builtins.bool
122
183
  organization_id: builtins.str
123
- def __new__(cls, ingestion_config_id:builtins.str, flow:builtins.str, timestamp:typing.Optional[TimeValuePy], channel_values:typing.Sequence[ChannelValuePy], run_id:builtins.str, end_stream_on_validation_error:builtins.bool, organization_id:builtins.str) -> IngestWithConfigDataStreamRequestPy: ...
184
+ def __new__(cls, ingestion_config_id:builtins.str, flow:builtins.str, timestamp:typing.Optional[TimeValuePy], channel_values:typing.Sequence[IngestWithConfigDataChannelValuePy], run_id:builtins.str, end_stream_on_validation_error:builtins.bool, organization_id:builtins.str) -> IngestWithConfigDataStreamRequestPy: ...
124
185
 
125
186
  @typing.final
126
187
  class IngestionConfigFormPy:
@@ -129,26 +190,20 @@ class IngestionConfigFormPy:
129
190
  client_key: builtins.str
130
191
  def __new__(cls, asset_name:builtins.str, client_key:builtins.str, flows:typing.Sequence[FlowConfigPy]) -> IngestionConfigFormPy: ...
131
192
 
193
+ @typing.final
194
+ class MetadataPy:
195
+ key: builtins.str
196
+ value: MetadataValuePy
197
+ def __new__(cls, key:builtins.str, value:MetadataValuePy) -> MetadataPy: ...
198
+
132
199
  @typing.final
133
200
  class RecoveryStrategyPy:
134
- strategy_type: builtins.str
135
- retry_policy: typing.Optional[RetryPolicyPy]
136
- max_buffer_size: typing.Optional[builtins.int]
137
- backups_dir: typing.Optional[builtins.str]
138
- max_backups_file_size: typing.Optional[builtins.int]
139
- def __new__(cls, strategy_type:builtins.str, retry_policy:typing.Optional[RetryPolicyPy], max_buffer_size:typing.Optional[builtins.int], backups_dir:typing.Optional[builtins.str], max_backups_file_size:typing.Optional[builtins.int]) -> RecoveryStrategyPy: ...
140
201
  @staticmethod
141
202
  def retry_only(retry_policy:RetryPolicyPy) -> RecoveryStrategyPy: ...
142
203
  @staticmethod
143
- def retry_with_in_memory_backups(retry_policy:RetryPolicyPy, max_buffer_size:typing.Optional[builtins.int]) -> RecoveryStrategyPy: ...
144
- @staticmethod
145
- def retry_with_disk_backups(retry_policy:RetryPolicyPy, backups_dir:typing.Optional[builtins.str], max_backups_file_size:typing.Optional[builtins.int]) -> RecoveryStrategyPy: ...
204
+ def retry_with_backups(retry_policy:RetryPolicyPy, disk_backup_policy:DiskBackupPolicyPy) -> RecoveryStrategyPy: ...
146
205
  @staticmethod
147
206
  def default() -> RecoveryStrategyPy: ...
148
- @staticmethod
149
- def default_retry_policy_in_memory_backups() -> RecoveryStrategyPy: ...
150
- @staticmethod
151
- def default_retry_policy_disk_backups() -> RecoveryStrategyPy: ...
152
207
 
153
208
  @typing.final
154
209
  class RetryPolicyPy:
@@ -160,13 +215,27 @@ class RetryPolicyPy:
160
215
  @staticmethod
161
216
  def default() -> RetryPolicyPy: ...
162
217
 
218
+ @typing.final
219
+ class RollingFilePolicyPy:
220
+ def __new__(cls, max_file_count:typing.Optional[builtins.int]) -> RollingFilePolicyPy: ...
221
+ @staticmethod
222
+ def default() -> RollingFilePolicyPy: ...
223
+
163
224
  @typing.final
164
225
  class RunFormPy:
165
226
  name: builtins.str
166
227
  client_key: builtins.str
167
228
  description: typing.Optional[builtins.str]
168
229
  tags: typing.Optional[builtins.list[builtins.str]]
169
- def __new__(cls, name:builtins.str, client_key:builtins.str, description:typing.Optional[builtins.str], tags:typing.Optional[typing.Sequence[builtins.str]]) -> RunFormPy: ...
230
+ metadata: typing.Optional[builtins.list[MetadataPy]]
231
+ def __new__(cls, name:builtins.str, client_key:builtins.str, description:typing.Optional[builtins.str], tags:typing.Optional[typing.Sequence[builtins.str]], metadata:typing.Optional[typing.Sequence[MetadataPy]]) -> RunFormPy: ...
232
+
233
+ @typing.final
234
+ class RunSelectorPy:
235
+ @staticmethod
236
+ def by_id(run_id:builtins.str) -> RunSelectorPy: ...
237
+ @staticmethod
238
+ def by_form(form:RunFormPy) -> RunSelectorPy: ...
170
239
 
171
240
  @typing.final
172
241
  class SiftStreamBuilderPy:
@@ -175,16 +244,38 @@ class SiftStreamBuilderPy:
175
244
  enable_tls: builtins.bool
176
245
  ingestion_config: typing.Optional[IngestionConfigFormPy]
177
246
  recovery_strategy: typing.Optional[RecoveryStrategyPy]
178
- checkpoint_interval: DurationPy
247
+ checkpoint_interval: typing.Optional[DurationPy]
179
248
  run: typing.Optional[RunFormPy]
180
249
  run_id: typing.Optional[builtins.str]
250
+ asset_tags: typing.Optional[builtins.list[builtins.str]]
251
+ metadata: typing.Optional[builtins.list[MetadataPy]]
181
252
  def __new__(cls, uri:builtins.str, apikey:builtins.str) -> SiftStreamBuilderPy: ...
182
253
  def build(self) -> typing.Any: ...
183
254
 
255
+ @typing.final
256
+ class SiftStreamMetricsSnapshotPy:
257
+ elapsed_secs: builtins.float
258
+ loaded_flows: builtins.int
259
+ unique_flows_received: builtins.int
260
+ messages_received: builtins.int
261
+ messages_sent: builtins.int
262
+ message_rate: builtins.float
263
+ bytes_sent: builtins.int
264
+ byte_rate: builtins.float
265
+ messages_sent_to_backup: builtins.int
266
+ cur_retry_count: builtins.int
267
+ checkpoint: CheckpointMetricsSnapshotPy
268
+ backups: BackupMetricsSnapshotPy
269
+
184
270
  @typing.final
185
271
  class SiftStreamPy:
186
272
  def send(self, flow:FlowPy) -> typing.Any: ...
187
273
  def send_requests(self, requests:typing.Sequence[IngestWithConfigDataStreamRequestPy]) -> typing.Any: ...
274
+ def get_metrics_snapshot(self) -> SiftStreamMetricsSnapshotPy: ...
275
+ def add_new_flows(self, flow_configs:typing.Sequence[FlowConfigPy]) -> typing.Any: ...
276
+ def attach_run(self, run_selector:RunSelectorPy) -> typing.Any: ...
277
+ def detach_run(self) -> None: ...
278
+ def run(self) -> typing.Optional[builtins.str]: ...
188
279
  def finish(self) -> typing.Any: ...
189
280
 
190
281
  @typing.final
@@ -201,6 +292,49 @@ class TimeValuePy:
201
292
  @staticmethod
202
293
  def from_rfc3339(val:builtins.str) -> TimeValuePy: ...
203
294
 
295
+ @typing.final
296
+ class ValuePy:
297
+ @staticmethod
298
+ def Bool(value:builtins.bool) -> ValuePy: ...
299
+ @staticmethod
300
+ def String(value:builtins.str) -> ValuePy: ...
301
+ @staticmethod
302
+ def Float(value:builtins.float) -> ValuePy: ...
303
+ @staticmethod
304
+ def Double(value:builtins.float) -> ValuePy: ...
305
+ @staticmethod
306
+ def Int32(value:builtins.int) -> ValuePy: ...
307
+ @staticmethod
308
+ def Int64(value:builtins.int) -> ValuePy: ...
309
+ @staticmethod
310
+ def Uint32(value:builtins.int) -> ValuePy: ...
311
+ @staticmethod
312
+ def Uint64(value:builtins.int) -> ValuePy: ...
313
+ @staticmethod
314
+ def Enum(value:builtins.int) -> ValuePy: ...
315
+ @staticmethod
316
+ def BitField(value:typing.Sequence[builtins.int]) -> ValuePy: ...
317
+ def is_bool(self) -> builtins.bool: ...
318
+ def is_string(self) -> builtins.bool: ...
319
+ def is_float(self) -> builtins.bool: ...
320
+ def is_double(self) -> builtins.bool: ...
321
+ def is_int32(self) -> builtins.bool: ...
322
+ def is_int64(self) -> builtins.bool: ...
323
+ def is_uint32(self) -> builtins.bool: ...
324
+ def is_uint64(self) -> builtins.bool: ...
325
+ def is_enum(self) -> builtins.bool: ...
326
+ def is_bitfield(self) -> builtins.bool: ...
327
+ def as_bool(self) -> builtins.bool: ...
328
+ def as_string(self) -> builtins.str: ...
329
+ def as_float(self) -> builtins.float: ...
330
+ def as_double(self) -> builtins.float: ...
331
+ def as_int32(self) -> builtins.int: ...
332
+ def as_int64(self) -> builtins.int: ...
333
+ def as_uint32(self) -> builtins.int: ...
334
+ def as_uint64(self) -> builtins.int: ...
335
+ def as_enum(self) -> builtins.int: ...
336
+ def as_bitfield(self) -> builtins.list[builtins.int]: ...
337
+
204
338
  @typing.final
205
339
  class ChannelDataTypePy(Enum):
206
340
  Unspecified = ...
@@ -215,3 +349,19 @@ class ChannelDataTypePy(Enum):
215
349
  Int64 = ...
216
350
  Uint64 = ...
217
351
  Bytes = ...
352
+
353
+ @typing.final
354
+ class MetadataValuePy(Enum):
355
+ String = ...
356
+ Number = ...
357
+ Boolean = ...
358
+
359
+ def __new__(cls, obj:typing.Any) -> MetadataValuePy: ...
360
+
361
+ def __str__(self) -> builtins.str: ...
362
+
363
+ def is_string(self) -> builtins.bool: ...
364
+
365
+ def is_number(self) -> builtins.bool: ...
366
+
367
+ def is_boolean(self) -> builtins.bool: ...
@@ -0,0 +1,9 @@
1
+ Metadata-Version: 2.4
2
+ Name: sift-stream-bindings
3
+ Version: 0.2.0rc1
4
+ Classifier: Programming Language :: Rust
5
+ Classifier: Programming Language :: Python :: Implementation :: CPython
6
+ Classifier: Programming Language :: Python :: Implementation :: PyPy
7
+ Home-Page: https://github.com/sift-stack/sift
8
+ Maintainer-email: Sift Software Engineers <engineering@siftstack.com>
9
+ Requires-Python: >=3.8
@@ -0,0 +1,7 @@
1
+ sift_stream_bindings-0.2.0rc1.dist-info/METADATA,sha256=efKr1hifjUdbqwSB5oTZs8sw-Prp-d3XijzgQ7qM8sI,388
2
+ sift_stream_bindings-0.2.0rc1.dist-info/WHEEL,sha256=0QZ9vB1QhYf3Cbt5ELiOo5Gqp4MX3lffmj6rvp0rkXc,147
3
+ sift_stream_bindings/__init__.py,sha256=ArkbnVmcnLHQiPvx9hffXgrxI4fERn19dnuruVB-iW8,163
4
+ sift_stream_bindings/__init__.pyi,sha256=uNe5tUT1Kok6krGl9tuFCZ6nCizUHwRovihczp0qW08,13069
5
+ sift_stream_bindings/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ sift_stream_bindings/sift_stream_bindings.cpython-311-arm-linux-gnueabihf.so,sha256=k_Gh3HMeMyTQijEtNutFt7eyscVP5AWocuu075tzV-U,8282684
7
+ sift_stream_bindings-0.2.0rc1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: maturin (1.10.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp311-cp311-manylinux_2_17_armv7l
5
+ Tag: cp311-cp311-manylinux2014_armv7l
@@ -1,23 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: sift-stream-bindings
3
- Version: 0.1.1
4
- Classifier: Programming Language :: Rust
5
- Classifier: Programming Language :: Python :: Implementation :: CPython
6
- Classifier: Programming Language :: Python :: Implementation :: PyPy
7
- Keywords: sift,siftstack,sift-stack,sift_rs,telemetry
8
- Home-Page: https://github.com/sift-stack/sift/tree/main/rust
9
- Author: Sift Software Engineers <engineering@siftstack.com>
10
- Author-email: Sift Software Engineers <engineering@siftstack.com>
11
- Maintainer-email: Sift Software Engineers <engineering@siftstack.com>
12
- License: MIT
13
- Requires-Python: >=3.8
14
- Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
15
- Project-URL: Source Code, https://github.com/sift-stack/sift/tree/main/rust
16
-
17
- # Sift Stream Python Bindings
18
-
19
- [![pypi](https://img.shields.io/pypi/v/sift-stream-bindings)](https://pypi.org/project/sift-stream-bindings/)
20
- [![pypi](https://img.shields.io/pypi/pyversions/sift-stream-bindings)](https://pypi.org/project/sift-stream-bindings/)
21
-
22
- This library provides Python bindings for the `sift_stream` crate, offering access to the core functionality offered by `sift_stream` via Python. It is built using [pyo3](https://docs.rs/pyo3/latest/pyo3/) and published using [maturin](https://github.com/PyO3/maturin). This library is built with the intention of being used within the underlying architecture of the sift-stack-py package.
23
-
@@ -1,7 +0,0 @@
1
- sift_stream_bindings-0.1.1.dist-info/METADATA,sha256=lSMv8vDZlmjliyr9CvOHenVFhAB8yws95zBmkcyLl3Q,1390
2
- sift_stream_bindings-0.1.1.dist-info/WHEEL,sha256=Jn41eqOpXTfj8UUJ2GUPmhg_9uADxquIrTCZj1rY9Hw,129
3
- sift_stream_bindings/__init__.py,sha256=ArkbnVmcnLHQiPvx9hffXgrxI4fERn19dnuruVB-iW8,163
4
- sift_stream_bindings/__init__.pyi,sha256=WSmaPmN3Y47jqEpJN818LqwDouSPewb-CDZgArJBXaI,8304
5
- sift_stream_bindings/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- sift_stream_bindings/sift_stream_bindings.cpython-311-arm-linux-gnueabihf.so,sha256=GqvI5pTwh6QkhQTvX0ZLUkjgEhbnLOnBcG3EkW6mu0Y,7304260
7
- sift_stream_bindings-0.1.1.dist-info/RECORD,,
@@ -1,4 +0,0 @@
1
- Wheel-Version: 1.0
2
- Generator: maturin (1.9.1)
3
- Root-Is-Purelib: false
4
- Tag: cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l