nominal-streaming 0.5.8__cp310-abi3-macosx_11_0_arm64.whl → 0.7.8__cp310-abi3-macosx_11_0_arm64.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.
- nominal_streaming/_nominal_streaming.abi3.so +0 -0
- {nominal_streaming-0.5.8.dist-info → nominal_streaming-0.7.8.dist-info}/METADATA +7 -8
- {nominal_streaming-0.5.8.dist-info → nominal_streaming-0.7.8.dist-info}/RECORD +4 -4
- {nominal_streaming-0.5.8.dist-info → nominal_streaming-0.7.8.dist-info}/WHEEL +0 -0
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nominal-streaming
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.7.8
|
|
4
4
|
Classifier: Programming Language :: Python :: 3
|
|
5
5
|
Classifier: Programming Language :: Rust
|
|
6
6
|
Classifier: License :: OSI Approved :: MIT License
|
|
@@ -30,7 +30,7 @@ It also provides configuration to manage the tradeoff between above listed conce
|
|
|
30
30
|
> [!WARNING]
|
|
31
31
|
> This library is still under active development and may make breaking changes.
|
|
32
32
|
|
|
33
|
-
##
|
|
33
|
+
## Usage example: streaming from memory to Nominal Core with file fallback
|
|
34
34
|
|
|
35
35
|
```python
|
|
36
36
|
import pathlib
|
|
@@ -43,7 +43,7 @@ if __name__ == "__main__":
|
|
|
43
43
|
num_points = 100_000
|
|
44
44
|
stream = (
|
|
45
45
|
NominalDatasetStream(
|
|
46
|
-
auth_header="<api key>",
|
|
46
|
+
auth_header="<api key>",
|
|
47
47
|
opts=PyNominalStreamOpts(),
|
|
48
48
|
)
|
|
49
49
|
.enable_logging("info") # can set debug, warn, etc.
|
|
@@ -57,18 +57,17 @@ if __name__ == "__main__":
|
|
|
57
57
|
time_ns = int(time.time() * 1e9)
|
|
58
58
|
value = (idx % 50) + 0.5
|
|
59
59
|
stream.enqueue("channel_name", time_ns, value, tags={"tag_key": "tag_value"})
|
|
60
|
-
|
|
60
|
+
|
|
61
61
|
# Stream 100_000 points in one batch
|
|
62
62
|
start_time = int(time.time() * 1e9)
|
|
63
63
|
timestamp_offsets = int(1e9 / 1600)
|
|
64
64
|
timestamps = [start_time + timestamp_offsets * idx for idx in range(num_points)]
|
|
65
65
|
values = [(idx % 50) + 0.5 for idx in range(num_points)]
|
|
66
66
|
stream.enqueue_batch(
|
|
67
|
-
"channel_name",
|
|
68
|
-
timestamps,
|
|
69
|
-
values,
|
|
67
|
+
"channel_name",
|
|
68
|
+
timestamps,
|
|
69
|
+
values,
|
|
70
70
|
tags={"tag_key": "tag_value"}
|
|
71
71
|
)
|
|
72
|
-
|
|
73
72
|
```
|
|
74
73
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
nominal_streaming-0.
|
|
2
|
-
nominal_streaming-0.
|
|
1
|
+
nominal_streaming-0.7.8.dist-info/METADATA,sha256=mL64CcpCUH8BBhzZtiHAC_lWMLt-qxoJFWWYoRTz80k,2814
|
|
2
|
+
nominal_streaming-0.7.8.dist-info/WHEEL,sha256=Mdosfxua6Dx1zYgObRH97e3wyiELqBbLtoRJj4RUSQE,103
|
|
3
3
|
nominal_streaming/__init__.py,sha256=7isEI7NFTEnTNEmxjtDgehQQPPRM-ByrH903VBWrulQ,202
|
|
4
|
-
nominal_streaming/_nominal_streaming.abi3.so,sha256=
|
|
4
|
+
nominal_streaming/_nominal_streaming.abi3.so,sha256=wLS2GyY2SvwrgIRB-cQZZFsET8E2bDvioc6gQn7khbw,7062560
|
|
5
5
|
nominal_streaming/_nominal_streaming.pyi,sha256=hZ5TpAFFMZzajSu13yh-klEh81ItvF5C5f_3i0rMfkM,12093
|
|
6
6
|
nominal_streaming/nominal_dataset_stream.py,sha256=0OXLiGDhyT9Q4z0QJlXaV7H3Nd3OWMPi2bjQJKcM5eE,11507
|
|
7
7
|
nominal_streaming/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
|
-
nominal_streaming-0.
|
|
8
|
+
nominal_streaming-0.7.8.dist-info/RECORD,,
|
|
File without changes
|