databento-dbn 0.44.0__cp313-cp313-musllinux_1_2_x86_64.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,56 @@
1
+ import datetime as dt
2
+ from collections.abc import Sequence
3
+ from typing import Protocol
4
+ from typing import TypedDict
5
+
6
+ # Import native module
7
+ from ._lib import * # noqa: F403
8
+
9
+
10
+ class MappingInterval(Protocol):
11
+ """
12
+ Represents a symbol mapping over a start and end date range interval.
13
+
14
+ Parameters
15
+ ----------
16
+ start_date : dt.date
17
+ The start of the mapping period.
18
+ end_date : dt.date
19
+ The end of the mapping period.
20
+ symbol : str
21
+ The symbol value.
22
+
23
+ """
24
+
25
+ start_date: dt.date
26
+ end_date: dt.date
27
+ symbol: str
28
+
29
+
30
+ class MappingIntervalDict(TypedDict):
31
+ """
32
+ Represents a symbol mapping over a start and end date range interval.
33
+
34
+ Parameters
35
+ ----------
36
+ start_date : dt.date
37
+ The start of the mapping period.
38
+ end_date : dt.date
39
+ The end of the mapping period.
40
+ symbol : str
41
+ The symbol value.
42
+
43
+ """
44
+
45
+ start_date: dt.date
46
+ end_date: dt.date
47
+ symbol: str
48
+
49
+
50
+ class SymbolMapping(Protocol):
51
+ """
52
+ Represents the mappings for one native symbol.
53
+ """
54
+
55
+ raw_symbol: str
56
+ intervals: Sequence[MappingInterval]