foxglove-sdk 0.14.1__cp312-cp312-musllinux_1_2_i686.whl → 0.16.6__cp312-cp312-musllinux_1_2_i686.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.
- foxglove/__init__.py +164 -52
- foxglove/_foxglove_py/__init__.pyi +94 -32
- foxglove/_foxglove_py/channels.pyi +396 -330
- foxglove/_foxglove_py/cloud.pyi +9 -0
- foxglove/_foxglove_py/mcap.pyi +53 -12
- foxglove/_foxglove_py/schemas.pyi +311 -318
- foxglove/_foxglove_py/schemas_wkt.pyi +8 -9
- foxglove/_foxglove_py/websocket.pyi +120 -76
- foxglove/_foxglove_py.cpython-312-i386-linux-musl.so +0 -0
- foxglove/channel.py +24 -22
- foxglove/channels/__init__.py +2 -0
- foxglove/cloud.py +61 -0
- foxglove/layouts/__init__.py +17 -0
- foxglove/notebook/__init__.py +0 -0
- foxglove/notebook/foxglove_widget.py +82 -0
- foxglove/notebook/notebook_buffer.py +114 -0
- foxglove/notebook/static/widget.js +1 -0
- foxglove/schemas/__init__.py +3 -0
- foxglove/tests/test_context.py +10 -0
- foxglove/tests/test_logging.py +46 -0
- foxglove/tests/test_mcap.py +363 -2
- foxglove/tests/test_server.py +33 -2
- foxglove/websocket.py +40 -18
- foxglove.libs/libgcc_s-8c2f5de4.so.1 +0 -0
- foxglove_sdk-0.16.6.dist-info/METADATA +53 -0
- foxglove_sdk-0.16.6.dist-info/RECORD +35 -0
- {foxglove_sdk-0.14.1.dist-info → foxglove_sdk-0.16.6.dist-info}/WHEEL +1 -1
- foxglove.libs/libgcc_s-27e5a392.so.1 +0 -0
- foxglove_sdk-0.14.1.dist-info/METADATA +0 -29
- foxglove_sdk-0.14.1.dist-info/RECORD +0 -27
foxglove/_foxglove_py/mcap.pyi
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from enum import Enum
|
|
2
|
-
from typing import Any
|
|
2
|
+
from typing import Any
|
|
3
3
|
|
|
4
4
|
class MCAPCompression(Enum):
|
|
5
5
|
"""
|
|
@@ -23,6 +23,10 @@ class MCAPWriteOptions:
|
|
|
23
23
|
:param emit_message_indexes: Specifies whether to write message index records after each chunk.
|
|
24
24
|
:param emit_chunk_indexes: Specifies whether to write chunk index records in the summary
|
|
25
25
|
section.
|
|
26
|
+
:param disable_seeking: Specifies whether to disable seeking backwards/forwards when writing.
|
|
27
|
+
Use this when writing to a non-seekable file-like object (e.g. a wrapped pipe or network
|
|
28
|
+
socket). The seek() implementation must still support `seek(0, SEEK_CUR)` and
|
|
29
|
+
`seek(current_position, SEEK_SET)`.
|
|
26
30
|
:param repeat_channels: Specifies whether to repeat each channel record from the data section
|
|
27
31
|
in the summary section.
|
|
28
32
|
:param repeat_schemas: Specifies whether to repeat each schema record from the data section in
|
|
@@ -34,23 +38,24 @@ class MCAPWriteOptions:
|
|
|
34
38
|
CRC into the Footer record.
|
|
35
39
|
"""
|
|
36
40
|
|
|
37
|
-
def
|
|
38
|
-
|
|
41
|
+
def __init__(
|
|
42
|
+
self,
|
|
39
43
|
*,
|
|
40
|
-
compression:
|
|
41
|
-
profile:
|
|
42
|
-
chunk_size:
|
|
44
|
+
compression: MCAPCompression | None = MCAPCompression.Zstd,
|
|
45
|
+
profile: str | None = None,
|
|
46
|
+
chunk_size: int | None = None,
|
|
43
47
|
use_chunks: bool = False,
|
|
44
48
|
emit_statistics: bool = True,
|
|
45
49
|
emit_summary_offsets: bool = True,
|
|
46
50
|
emit_message_indexes: bool = True,
|
|
47
51
|
emit_chunk_indexes: bool = True,
|
|
52
|
+
disable_seeking: bool = False,
|
|
48
53
|
repeat_channels: bool = True,
|
|
49
54
|
repeat_schemas: bool = True,
|
|
50
55
|
calculate_chunk_crcs: bool = True,
|
|
51
56
|
calculate_data_section_crc: bool = True,
|
|
52
57
|
calculate_summary_section_crc: bool = True,
|
|
53
|
-
) ->
|
|
58
|
+
) -> None: ...
|
|
54
59
|
|
|
55
60
|
class MCAPWriter:
|
|
56
61
|
"""
|
|
@@ -65,12 +70,12 @@ class MCAPWriter:
|
|
|
65
70
|
closed automatically, and any errors will be logged.
|
|
66
71
|
"""
|
|
67
72
|
|
|
68
|
-
def
|
|
69
|
-
|
|
73
|
+
def __init__(
|
|
74
|
+
self,
|
|
70
75
|
*,
|
|
71
|
-
allow_overwrite:
|
|
72
|
-
writer_options:
|
|
73
|
-
) ->
|
|
76
|
+
allow_overwrite: bool | None = False,
|
|
77
|
+
writer_options: MCAPWriteOptions | None = None,
|
|
78
|
+
) -> None: ...
|
|
74
79
|
def __enter__(self) -> "MCAPWriter": ...
|
|
75
80
|
def __exit__(self, exc_type: Any, exc_value: Any, traceback: Any) -> None: ...
|
|
76
81
|
def close(self) -> None:
|
|
@@ -82,3 +87,39 @@ class MCAPWriter:
|
|
|
82
87
|
exiting the context manager.
|
|
83
88
|
"""
|
|
84
89
|
...
|
|
90
|
+
|
|
91
|
+
def write_metadata(self, name: str, metadata: dict[str, str]) -> None:
|
|
92
|
+
"""
|
|
93
|
+
Write metadata to the MCAP file.
|
|
94
|
+
|
|
95
|
+
Metadata consists of key-value string pairs associated with a name.
|
|
96
|
+
If the metadata dictionary is empty, this method does nothing.
|
|
97
|
+
|
|
98
|
+
:param name: Name identifier for this metadata record
|
|
99
|
+
:param metadata: Dictionary of key-value pairs to store
|
|
100
|
+
"""
|
|
101
|
+
...
|
|
102
|
+
|
|
103
|
+
def attach(
|
|
104
|
+
self,
|
|
105
|
+
*,
|
|
106
|
+
log_time: int,
|
|
107
|
+
create_time: int,
|
|
108
|
+
name: str,
|
|
109
|
+
media_type: str,
|
|
110
|
+
data: bytes,
|
|
111
|
+
) -> None:
|
|
112
|
+
"""
|
|
113
|
+
Write an attachment to the MCAP file.
|
|
114
|
+
|
|
115
|
+
Attachments are arbitrary binary data that can be stored alongside messages.
|
|
116
|
+
Common uses include storing configuration files, calibration data, or other
|
|
117
|
+
reference material related to the recording.
|
|
118
|
+
|
|
119
|
+
:param log_time: Time at which the attachment was logged, in nanoseconds since epoch.
|
|
120
|
+
:param create_time: Time at which the attachment data was created, in nanoseconds since epoch.
|
|
121
|
+
:param name: Name of the attachment (e.g., "config.json").
|
|
122
|
+
:param media_type: MIME type of the attachment (e.g., "application/json").
|
|
123
|
+
:param data: Binary content of the attachment.
|
|
124
|
+
"""
|
|
125
|
+
...
|