datahub_binary 1.8.2__cp312-cp312-win_amd64.whl → 1.8.3__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/utils/sftp.pyi CHANGED
@@ -1,3 +1,4 @@
1
+ import polars as pl
1
2
  import types
2
3
  from _typeshed import Incomplete
3
4
  from datahub.setting import SftpSetting
@@ -42,6 +43,15 @@ class SFTPClient:
42
43
  :param path: 目录路径
43
44
  :return: None
44
45
  """
46
+ def read_df(self, remote_dir: str, pattern: str) -> pl.DataFrame:
47
+ """
48
+ 读取远程parquet文件
49
+
50
+ :param remote_dir: 远程文件夹路径
51
+ :param pattern: 文件名匹配模式,支持正则, 如: data_2024*.parquet, *.parquet
52
+ (https://docs.python.org/zh-cn/3/library/fnmatch.html)
53
+ :return:
54
+ """
45
55
  def connect(self):
46
56
  """建立连接并返回sftp客户端"""
47
57
  def close(self) -> None:
Binary file
datahub.pyi CHANGED
@@ -53,7 +53,6 @@ import sqlalchemy.dialects.postgresql
53
53
  import redis
54
54
  import redis.exceptions
55
55
  import warnings
56
- import io
57
56
  import socket
58
57
  import google
59
58
  import google.protobuf
@@ -66,4 +65,6 @@ import lark_oapi
66
65
  import lark_oapi.api
67
66
  import lark_oapi.api.im
68
67
  import lark_oapi.api.im.v1
68
+ import fnmatch
69
+ import io
69
70
  import paramiko
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: datahub_binary
3
- Version: 1.8.2
3
+ Version: 1.8.3
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
@@ -1,5 +1,5 @@
1
- datahub.cp312-win_amd64.pyd,sha256=rIp59M_hwW1_nAsplHsgaOp2wNStnhYDym28B4AWVmc,1809408
2
- datahub.pyi,sha256=RCXeWHG7NPZBPCR6Kn2tGHTBvItWj8e3_Smus_1ZPGk,1507
1
+ datahub.cp312-win_amd64.pyd,sha256=wIEbloQmv1er5lqFlAOrdaMbPolvR2ZoazAMl30ihtU,1811968
2
+ datahub.pyi,sha256=sy345awOY4R8_DxrPBOg_oOhfOyNhlH60hJOrgUp4NQ,1522
3
3
  datahub/__init__.pyi,sha256=hX8D9Qd6uPjZiUBd6rIq7Llkt_H4l_RvRXsws3sdYbI,630
4
4
  datahub/datacache.pyi,sha256=Z2b3ktYv5t2y9Z1yXn0axbdoV06-GhjJhEIl_Ms-FjU,5044
5
5
  datahub/datahub.pyi,sha256=CUApKMxrupjWgB2kz7RyDq2Wl4vjFESmGWfoy9lplqA,50337
@@ -21,11 +21,11 @@ datahub/protos/strategy_pb2.pyi,sha256=JmRoiuRdyE_1m6qQxxBMAvLp2OngDSHxTYivkcZQ2
21
21
  datahub/protos/trade_pb2.pyi,sha256=YLZFMLEMR3q1fSQxgyR81BsVvYngNQPbKPKvLA7ktjs,49810
22
22
  datahub/utils/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
23
  datahub/utils/logger.pyi,sha256=1TwXn8-s1RDBK-b0-fL1YuWVBAXXzL1vn94euagCl4U,1341
24
- datahub/utils/sftp.pyi,sha256=qYlQ9nJ_lhZi6pD9Ub0MOAs4zgK8A7XXaQuomR97bLw,1720
24
+ datahub/utils/sftp.pyi,sha256=w8S-cxJWMeWJ6--RjT95qVgng_IhwPImiyoqdCpOCQI,2107
25
25
  datahub/utils/monitor/__init__.pyi,sha256=EOwgf8CbJ4g3iUAaFoR6O-mYemJ9xjP42zlBj2KeA9c,76
26
26
  datahub/utils/monitor/base.pyi,sha256=n1dKYK73JJ_7QPkCWFc-6Aj_a16j2z_VBaQ9zkN9A3E,310
27
27
  datahub/utils/monitor/feishu.pyi,sha256=GgvJXYeX3cPOQjqpV0GJUr_Ri1_cZe2-viRBkpe6O_g,402
28
- datahub_binary-1.8.2.dist-info/METADATA,sha256=pwcjGf_8T64DOJvuK28tlgGLD52iRSMycYykPPV58ZQ,7902
29
- datahub_binary-1.8.2.dist-info/WHEEL,sha256=GgV4Cr4qHk9xHlDqCT7rIsmc_XEc5nwpshO-GrXhyBw,96
30
- datahub_binary-1.8.2.dist-info/top_level.txt,sha256=J0rzqYfZghMgpObWaPGhQtV88I-KXrgArDvi_ddf6ZA,8
31
- datahub_binary-1.8.2.dist-info/RECORD,,
28
+ datahub_binary-1.8.3.dist-info/METADATA,sha256=_INC2czYtHXQfZvGojxdkCOsY0XqIv8e8etTYzs5LoU,7902
29
+ datahub_binary-1.8.3.dist-info/WHEEL,sha256=GgV4Cr4qHk9xHlDqCT7rIsmc_XEc5nwpshO-GrXhyBw,96
30
+ datahub_binary-1.8.3.dist-info/top_level.txt,sha256=J0rzqYfZghMgpObWaPGhQtV88I-KXrgArDvi_ddf6ZA,8
31
+ datahub_binary-1.8.3.dist-info/RECORD,,