foxglove-sdk 0.6.2__cp312-cp312-win32.whl → 0.16.6__cp312-cp312-win32.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,77 +1,85 @@
1
- import datetime
2
- from typing import Optional
3
-
4
- class Duration:
5
- """
6
- A duration in seconds and nanoseconds
7
- """
8
-
9
- def __new__(
10
- cls,
11
- sec: int,
12
- nsec: Optional[int] = None,
13
- ) -> "Duration": ...
14
- @property
15
- def sec(self) -> int: ...
16
- @property
17
- def nsec(self) -> int: ...
18
- @staticmethod
19
- def from_secs(secs: float) -> "Duration":
20
- """
21
- Creates a :py:class:`Duration` from seconds.
22
-
23
- Raises `OverflowError` if the duration cannot be represented.
24
-
25
- :param secs: Seconds
26
- """
27
- ...
28
-
29
- @staticmethod
30
- def from_timedelta(td: datetime.timedelta) -> "Duration":
31
- """
32
- Creates a :py:class:`Duration` from a timedelta.
33
-
34
- Raises `OverflowError` if the duration cannot be represented.
35
-
36
- :param td: Timedelta
37
- """
38
- ...
39
-
40
- class Timestamp:
41
- """
42
- A timestamp in seconds and nanoseconds
43
- """
44
-
45
- def __new__(
46
- cls,
47
- sec: int,
48
- nsec: Optional[int] = None,
49
- ) -> "Timestamp": ...
50
- @property
51
- def sec(self) -> int: ...
52
- @property
53
- def nsec(self) -> int: ...
54
- @staticmethod
55
- def from_epoch_secs(timestamp: float) -> "Timestamp":
56
- """
57
- Creates a :py:class:`Timestamp` from an epoch timestamp, such as is
58
- returned by :py:func:`time.time` or :py:func:`datetime.datetime.timestamp`.
59
-
60
- Raises `OverflowError` if the timestamp cannot be represented.
61
-
62
- :param timestamp: Seconds since epoch
63
- """
64
- ...
65
-
66
- @staticmethod
67
- def from_datetime(dt: datetime.datetime) -> "Timestamp":
68
- """
69
- Creates a UNIX epoch :py:class:`Timestamp` from a datetime object.
70
-
71
- Naive datetime objects are presumed to be in the local timezone.
72
-
73
- Raises `OverflowError` if the timestamp cannot be represented.
74
-
75
- :param dt: Datetime
76
- """
77
- ...
1
+ import datetime
2
+
3
+ class Duration:
4
+ """
5
+ A duration in seconds and nanoseconds
6
+ """
7
+
8
+ def __init__(
9
+ self,
10
+ sec: int,
11
+ nsec: int | None = None,
12
+ ) -> None: ...
13
+ @property
14
+ def sec(self) -> int: ...
15
+ @property
16
+ def nsec(self) -> int: ...
17
+ @staticmethod
18
+ def from_secs(secs: float) -> "Duration":
19
+ """
20
+ Creates a :py:class:`Duration` from seconds.
21
+
22
+ Raises `OverflowError` if the duration cannot be represented.
23
+
24
+ :param secs: Seconds
25
+ """
26
+ ...
27
+
28
+ @staticmethod
29
+ def from_timedelta(td: datetime.timedelta) -> "Duration":
30
+ """
31
+ Creates a :py:class:`Duration` from a timedelta.
32
+
33
+ Raises `OverflowError` if the duration cannot be represented.
34
+
35
+ :param td: Timedelta
36
+ """
37
+ ...
38
+
39
+ class Timestamp:
40
+ """
41
+ A timestamp in seconds and nanoseconds
42
+ """
43
+
44
+ def __init__(
45
+ self,
46
+ sec: int,
47
+ nsec: int | None = None,
48
+ ) -> None: ...
49
+ @property
50
+ def sec(self) -> int: ...
51
+ @property
52
+ def nsec(self) -> int: ...
53
+ @staticmethod
54
+ def from_epoch_secs(timestamp: float) -> "Timestamp":
55
+ """
56
+ Creates a :py:class:`Timestamp` from an epoch timestamp, such as is
57
+ returned by :py:func:`time.time` or :py:func:`datetime.datetime.timestamp`.
58
+
59
+ Raises `OverflowError` if the timestamp cannot be represented.
60
+
61
+ :param timestamp: Seconds since epoch
62
+ """
63
+ ...
64
+
65
+ @staticmethod
66
+ def from_datetime(dt: datetime.datetime) -> "Timestamp":
67
+ """
68
+ Creates a UNIX epoch :py:class:`Timestamp` from a datetime object.
69
+
70
+ Naive datetime objects are presumed to be in the local timezone.
71
+
72
+ Raises `OverflowError` if the timestamp cannot be represented.
73
+
74
+ :param dt: Datetime
75
+ """
76
+ ...
77
+
78
+ @staticmethod
79
+ def now() -> "Timestamp":
80
+ """
81
+ Creates a :py:class:`Timestamp` from the current system time.
82
+
83
+ Raises `OverflowError` if the timestamp cannot be represented.
84
+ """
85
+ ...