datahub_binary 1.7.5__cp312-cp312-win_amd64.whl → 1.7.6__cp312-cp312-win_amd64.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.
- datahub/datahub.pyi +3 -0
- datahub/dbo/sr.pyi +2 -0
- datahub.cp312-win_amd64.pyd +0 -0
- datahub.pyi +1 -0
- {datahub_binary-1.7.5.dist-info → datahub_binary-1.7.6.dist-info}/METADATA +3 -2
- {datahub_binary-1.7.5.dist-info → datahub_binary-1.7.6.dist-info}/RECORD +8 -8
- {datahub_binary-1.7.5.dist-info → datahub_binary-1.7.6.dist-info}/WHEEL +0 -0
- {datahub_binary-1.7.5.dist-info → datahub_binary-1.7.6.dist-info}/top_level.txt +0 -0
datahub/datahub.pyi
CHANGED
|
@@ -103,6 +103,8 @@ class DataHub:
|
|
|
103
103
|
def get_last_seq_snapshot(self, end_time: datetime, instruments: Sequence[str] = (), is_filter_limit: bool = False) -> pl.DataFrame: ...
|
|
104
104
|
def get_predictor_basket_series(self, start_date: date, end_date: date, predictors: Sequence[int] = (), instruments: Sequence[str] = ()) -> pl.DataFrame: ...
|
|
105
105
|
def get_trading_days(self, start_date: date, end_date: date, market: str = 'XSHG') -> list[date]: ...
|
|
106
|
+
def get_etf_component(self, start_date: date, end_date: date, instrument_ids: Sequence[str] = (), com_instrument_ids: Sequence[str] = ()) -> pl.DataFrame: ...
|
|
107
|
+
def get_etf_cash_component(self, start_date: date, end_date: date, instrument_ids: Sequence[str] = ()) -> pl.DataFrame: ...
|
|
106
108
|
def upsert_from_file(self, database: str, table: str, file_path: str): ...
|
|
107
109
|
def get_blacklist(self, blacklist_ids: Sequence[str], end_date: date = None) -> pl.DataFrame: ...
|
|
108
110
|
def get_sbl_list(self, brokers: Sequence[str] = (), sbl_ids: Sequence[str] = (), start_date: date | None = None, end_date: date | None = None) -> pl.DataFrame: ...
|
|
@@ -122,5 +124,6 @@ class Calendar:
|
|
|
122
124
|
@staticmethod
|
|
123
125
|
def datetime2date(dt: datetime) -> date: ...
|
|
124
126
|
def get_latest_trade_date(self, dt: date | None = None) -> date: ...
|
|
127
|
+
def get_kst_trading_date_of_month(self, trade_date: date, k: int = 0) -> date: ...
|
|
125
128
|
@staticmethod
|
|
126
129
|
def get_trading_hours(trade_date: date, freq: str, morning_time_range: tuple[time, time] = ..., afternoon_time_range: tuple[time, time] = ...) -> list[datetime]: ...
|
datahub/dbo/sr.pyi
CHANGED
|
@@ -55,6 +55,8 @@ class StarRocks(Database):
|
|
|
55
55
|
def get_last_seq_snapshot(self, end_time: datetime, instruments: Sequence[str] = (), is_filter_limit: bool = False) -> pl.DataFrame: ...
|
|
56
56
|
def get_predictor_basket_series(self, start_date: date, end_date: date, predictors: Sequence[int] = (), instruments: Sequence[str] = ()) -> pl.DataFrame: ...
|
|
57
57
|
def get_index_weight(self, start_date: date, end_date: date, index_ids: Sequence[str] = (), instruments: Sequence[str] = ()) -> pl.DataFrame: ...
|
|
58
|
+
def get_etf_component(self, start_date: date, end_date: date, instrument_ids: Sequence[str] = (), com_instrument_ids: Sequence[str] = ()) -> pl.DataFrame: ...
|
|
59
|
+
def get_etf_cash_component(self, start_date: date, end_date: date, instrument_ids: Sequence[str] = ()) -> pl.DataFrame: ...
|
|
58
60
|
def get_loads(self, label: str) -> pl.DataFrame: ...
|
|
59
61
|
def stream_load(self, database: str, table: str, file_path: str): ...
|
|
60
62
|
def broker_load_parquet(self, database: str, table: str, fields: Sequence[str], file_path: str, timeout: int = 3600, label: str | None = None, is_sync: bool = False) -> str: ...
|
datahub.cp312-win_amd64.pyd
CHANGED
|
Binary file
|
datahub.pyi
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: datahub_binary
|
|
3
|
-
Version: 1.7.
|
|
3
|
+
Version: 1.7.6
|
|
4
4
|
Summary: A comprehensive Python library for data processing, integration, and management.
|
|
5
5
|
Requires-Python: <3.13,>=3.9
|
|
6
6
|
Description-Content-Type: text/markdown
|
|
@@ -17,9 +17,10 @@ Requires-Dist: psycopg2-binary>=2.9.10
|
|
|
17
17
|
Requires-Dist: paramiko>=3.5.1
|
|
18
18
|
Requires-Dist: toml>=0.10.0
|
|
19
19
|
Requires-Dist: pydantic>=2.11.3
|
|
20
|
-
Requires-Dist: lark-oapi>=1.4.
|
|
20
|
+
Requires-Dist: lark-oapi>=1.4.22
|
|
21
21
|
Requires-Dist: pyzmq>=26.4.0
|
|
22
22
|
Requires-Dist: sortedcontainers>=2.4.0
|
|
23
|
+
Requires-Dist: mypy>=1.18.1
|
|
23
24
|
|
|
24
25
|
### 使用示例
|
|
25
26
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
datahub.cp312-win_amd64.pyd,sha256=
|
|
2
|
-
datahub.pyi,sha256
|
|
1
|
+
datahub.cp312-win_amd64.pyd,sha256=8I8Atplw8hreeR11z77bGSVjufSsV5cGG2grN4O2C9o,1883648
|
|
2
|
+
datahub.pyi,sha256=-gTlJbRVvAJFaQs-lo9Atxu0qPruT2CSEr9qFczbKko,1466
|
|
3
3
|
datahub/__init__.pyi,sha256=hX8D9Qd6uPjZiUBd6rIq7Llkt_H4l_RvRXsws3sdYbI,630
|
|
4
4
|
datahub/datacache.pyi,sha256=rVDkzr0nLn54RT6EkYMDBh41t788XfVFyL4XKTJ2eSM,3587
|
|
5
|
-
datahub/datahub.pyi,sha256=
|
|
5
|
+
datahub/datahub.pyi,sha256=1x51xh3x8fGM6M7fBeqHS3xKERKW893Q0oE5VDmWZFA,10067
|
|
6
6
|
datahub/setting.pyi,sha256=u6gYjjF6r1thSpp2XNMvg_1JUcqB64dRTkNoHlOoKUQ,889
|
|
7
7
|
datahub/ats/client_sdk.pyi,sha256=3g6pnbQIZSTIgfyTQ-MvjcMb0aRNMQ3atXeMrEBdfS8,3929
|
|
8
8
|
datahub/dbo/database.pyi,sha256=O8Gp0Os3tzznLa6hdmCaXnq7Iw4xAAkW4YcjK0jUSUY,1024
|
|
9
9
|
datahub/dbo/pg.pyi,sha256=zSr5GAiPVwvqXSN6qctkUh1My7c2tMyGETJB0Ir1Uvo,871
|
|
10
10
|
datahub/dbo/redis_stream.pyi,sha256=B3DJ5GQ_gnGqaPAGwgHwvTAVubMz99mAaoS8EK_2VaQ,734
|
|
11
|
-
datahub/dbo/sr.pyi,sha256=
|
|
11
|
+
datahub/dbo/sr.pyi,sha256=_0-h9rls8VPnUWQ6JJIdpL833eRut4JYzLo6EBqMjns,6782
|
|
12
12
|
datahub/protos/client_pb2.pyi,sha256=CZTEbNX3LduN31Ir1gNb4iK9GFEbP75kc4yeuAwg-dA,220830
|
|
13
13
|
datahub/protos/common_pb2.pyi,sha256=KCzIIakHr0iViKFNFcK1ZotkqcQuZ9_XTNIfvyvcSbM,32839
|
|
14
14
|
datahub/protos/management_pb2.pyi,sha256=DtHNxR31C1T4HTUWT7KSsFPMvHiq37u_3G3aO__McA8,23183
|
|
@@ -25,7 +25,7 @@ datahub/utils/monitor/__init__.pyi,sha256=EOwgf8CbJ4g3iUAaFoR6O-mYemJ9xjP42zlBj2
|
|
|
25
25
|
datahub/utils/monitor/base.pyi,sha256=n1dKYK73JJ_7QPkCWFc-6Aj_a16j2z_VBaQ9zkN9A3E,310
|
|
26
26
|
datahub/utils/monitor/feishu.pyi,sha256=GgvJXYeX3cPOQjqpV0GJUr_Ri1_cZe2-viRBkpe6O_g,402
|
|
27
27
|
datahub.build/.gitignore,sha256=aEiIwOuxfzdCmLZe4oB1JsBmCUxwG8x-u-HBCV9JT8E,1
|
|
28
|
-
datahub_binary-1.7.
|
|
29
|
-
datahub_binary-1.7.
|
|
30
|
-
datahub_binary-1.7.
|
|
31
|
-
datahub_binary-1.7.
|
|
28
|
+
datahub_binary-1.7.6.dist-info/METADATA,sha256=UPYovdAj0nfZTnkdr4yZwPOPpzFS9iceiesgZEXZRFg,7871
|
|
29
|
+
datahub_binary-1.7.6.dist-info/WHEEL,sha256=HT5wMepVT3_fC8RyaY7h_bho8yBhlmmR1GN-7bjpAPw,97
|
|
30
|
+
datahub_binary-1.7.6.dist-info/top_level.txt,sha256=J0rzqYfZghMgpObWaPGhQtV88I-KXrgArDvi_ddf6ZA,8
|
|
31
|
+
datahub_binary-1.7.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|