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.
@@ -0,0 +1,9 @@
1
+ class CloudSink:
2
+ """
3
+ A cloud sink for remote visualization and teleop.
4
+ """
5
+
6
+ def __init__(self) -> None: ...
7
+ def stop(self) -> None:
8
+ """Gracefully disconnect from the cloud sink, waiting for shutdown to complete."""
9
+ ...
@@ -1,5 +1,5 @@
1
1
  from enum import Enum
2
- from typing import Any, Optional
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 __new__(
38
- cls,
41
+ def __init__(
42
+ self,
39
43
  *,
40
- compression: Optional[MCAPCompression] = MCAPCompression.Zstd,
41
- profile: Optional[str] = None,
42
- chunk_size: Optional[int] = None,
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
- ) -> "MCAPWriteOptions": ...
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 __new__(
69
- cls,
73
+ def __init__(
74
+ self,
70
75
  *,
71
- allow_overwrite: Optional[bool] = False,
72
- writer_options: Optional[MCAPWriteOptions] = None,
73
- ) -> "MCAPWriter": ...
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
+ ...