databento-dbn 0.44.0__cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.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.
- databento_dbn/__init__.py +56 -0
- databento_dbn/_lib.cpython-311-aarch64-linux-gnu.so +0 -0
- databento_dbn/_lib.pyi +7533 -0
- databento_dbn/py.typed +0 -0
- databento_dbn/v1.py +25 -0
- databento_dbn/v2.py +25 -0
- databento_dbn/v3.py +25 -0
- databento_dbn-0.44.0.dist-info/METADATA +60 -0
- databento_dbn-0.44.0.dist-info/RECORD +10 -0
- databento_dbn-0.44.0.dist-info/WHEEL +5 -0
|
@@ -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]
|
|
Binary file
|