tencent-wedata-feature-engineering-dev 0.1.35__py3-none-any.whl → 0.1.37__py3-none-any.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.

Potentially problematic release.


This version of tencent-wedata-feature-engineering-dev might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencent-wedata-feature-engineering-dev
3
- Version: 0.1.35
3
+ Version: 0.1.37
4
4
  Summary: Wedata Feature Engineering Library Development
5
5
  Home-page:
6
6
  Author: meahqian
@@ -3,7 +3,7 @@ wedata/feature_store/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hS
3
3
  wedata/feature_store/client.py,sha256=rXQfSC14vvxPed9P0PoboDTwhD47aPwmGndY825Sl6k,19484
4
4
  wedata/feature_store/mlflow_model.py,sha256=OCUuccOoO0NXWSzIPoGeL03Ha1Q3aQTJW2RlJrTCmzc,554
5
5
  wedata/feature_store/cloud_sdk_client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- wedata/feature_store/cloud_sdk_client/client.py,sha256=NJ1fc3jgN-IBi6jp7wEbxO85iPEFNm7Qm8AytALPtnw,3870
6
+ wedata/feature_store/cloud_sdk_client/client.py,sha256=DAcWksrGgE0p-NW62571ydTLJwANkI7hT_l86k06u2Y,4075
7
7
  wedata/feature_store/cloud_sdk_client/models.py,sha256=7_QUq0kZcrcclRMsIYFoqBrlzVwaHoVY-yU5SHIrJWM,19789
8
8
  wedata/feature_store/cloud_sdk_client/utils.py,sha256=6ESwVhlrftnp0h9ojTzbB-m-0hktLI1PLcyk6zpNgrs,857
9
9
  wedata/feature_store/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -12,7 +12,7 @@ wedata/feature_store/common/protos/feature_store_pb2.py,sha256=oMIUGGeGNP84g_nFq
12
12
  wedata/feature_store/common/store_config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
13
  wedata/feature_store/common/store_config/redis.py,sha256=9R5npM2s1u0o9IakmpbRsFdJC0vNar_uvA62OLWuXBs,1145
14
14
  wedata/feature_store/constants/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
- wedata/feature_store/constants/constants.py,sha256=qaTEyMhTO5esJhp3zH58MKqZWtkJPGgqmMHOi8Y7g98,1959
15
+ wedata/feature_store/constants/constants.py,sha256=PFm-2Nj1hp7wKCGRcONMgQiVOAMuW_5qXQrkjKVm6a8,1959
16
16
  wedata/feature_store/constants/engine_types.py,sha256=42mI-kNDDtoA4_I3iqDe4FkF2M2l_Bt4Q1V6WUB-_k0,921
17
17
  wedata/feature_store/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
18
  wedata/feature_store/entities/column_info.py,sha256=-AR6EKHwgoqIkRHFyguxVEtnYt6fvusWHkEjF4kvS0A,5141
@@ -32,7 +32,7 @@ wedata/feature_store/entities/training_set.py,sha256=ylt1h6Z_xU8hKYvnvd80CeewTGS
32
32
  wedata/feature_store/feast_client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
33
33
  wedata/feature_store/feast_client/feast_client.py,sha256=nRk2XMmXaZOp-3PMYi-_ScxS4hXbJ_awDylu07T8L_s,20343
34
34
  wedata/feature_store/feature_table_client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
35
- wedata/feature_store/feature_table_client/feature_table_client.py,sha256=kLQ33pwWrfVN4Om7pLbjYVby2RUfoIE_WncHVwsadOQ,41339
35
+ wedata/feature_store/feature_table_client/feature_table_client.py,sha256=khHPmsYmruaXTERzY4StyYQi028rMsdviMBdlt0eDBo,41402
36
36
  wedata/feature_store/spark_client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
37
37
  wedata/feature_store/spark_client/spark_client.py,sha256=B_6f_VVSdhft1SsoAohXCG08XnjokR3FgXql8cROtsI,11840
38
38
  wedata/feature_store/training_set_client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -58,7 +58,7 @@ wedata/tempo/ml.py,sha256=WtGa2szn6PditvZsTZoxo7wFDe4k1SRoMZ-jgNGIjvE,4323
58
58
  wedata/tempo/resample.py,sha256=h81RVVmCl4ect-YKE-KZZHPDi1rGI3sh-YIb-Btz0ck,9698
59
59
  wedata/tempo/tsdf.py,sha256=S4lZfxhSRFiezYoYS6gvGsl1mZA3zp-MWEKFHYZpDg0,70968
60
60
  wedata/tempo/utils.py,sha256=I9I6l2DMwUoY213L04Yc1UR_zTWgSkj1BVo4ZwzQd4Y,7977
61
- tencent_wedata_feature_engineering_dev-0.1.35.dist-info/METADATA,sha256=Ewhyp7ZkooUqI8Ao9hXCeAzUKVfQ0lr4hgHkvoGT3hs,582
62
- tencent_wedata_feature_engineering_dev-0.1.35.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
63
- tencent_wedata_feature_engineering_dev-0.1.35.dist-info/top_level.txt,sha256=Xa0v1rh__RvfVTVDirW5r5UBKg7ZO_iuTeXfp8MNo2A,7
64
- tencent_wedata_feature_engineering_dev-0.1.35.dist-info/RECORD,,
61
+ tencent_wedata_feature_engineering_dev-0.1.37.dist-info/METADATA,sha256=omDcrKtPML4FhWR4Fu8d48pHh1fpFKCKOYt55K-dBfw,582
62
+ tencent_wedata_feature_engineering_dev-0.1.37.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
63
+ tencent_wedata_feature_engineering_dev-0.1.37.dist-info/top_level.txt,sha256=Xa0v1rh__RvfVTVDirW5r5UBKg7ZO_iuTeXfp8MNo2A,7
64
+ tencent_wedata_feature_engineering_dev-0.1.37.dist-info/RECORD,,
@@ -1,15 +1,17 @@
1
1
  import json
2
2
 
3
3
  from tencentcloud.wedata.v20210820.wedata_client import WedataClient
4
+ from tencentcloud.wedata.v20250806.wedata_client import WedataClient as WedataClientV2
4
5
  from tencentcloud.common import credential
5
6
  from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
6
7
  from wedata.feature_store.cloud_sdk_client.utils import get_client_profile, set_request_header
7
- import wedata.feature_store.cloud_sdk_client.models as models
8
+ import wedata.feature_store.cloud_sdk_client.models as models
8
9
 
9
10
 
10
11
  class FeatureCloudSDK:
11
12
  def __init__(self, secret_id: str, secret_key: str, region: str):
12
13
  self._client = WedataClient(credential.Credential(secret_id, secret_key), region, get_client_profile())
14
+ self._client_v2 = WedataClientV2(credential.Credential(secret_id, secret_key), region, get_client_profile())
13
15
 
14
16
  def CreateOnlineFeatureTable(self, request: models.CreateOnlineFeatureTableRequest) -> 'models.CreateOnlineFeatureTableResponse':
15
17
  """
@@ -76,7 +78,7 @@ class FeatureCloudSDK:
76
78
  headers = set_request_header(request.headers)
77
79
  print(f"RefreshFeatureTable params: {params}")
78
80
  print(f"RefreshFeatureTable headers: {headers}")
79
- body = self._client.call("RefreshFeatureTable", params, headers=headers)
81
+ body = self._client_v2.call("RefreshFeatureTable", params, headers=headers)
80
82
  response = json.loads(body)
81
83
  model = models.RefreshFeatureTableResponse()
82
84
  model._deserialize(response["Response"])
@@ -43,7 +43,7 @@ ML_MODEL = "MLmodel"
43
43
  FEATURE_LOOKUP_CLIENT_PIP_PACKAGE = "tencent-wedata-feature-engineering-dev"
44
44
 
45
45
  # 特征查找版本号
46
- FEATURE_LOOKUP_CLIENT_MAJOR_VERSION = "0.1.35"
46
+ FEATURE_LOOKUP_CLIENT_MAJOR_VERSION = "0.1.37"
47
47
 
48
48
  # 特征存储内部数据目录
49
49
  FEATURE_STORE_INTERNAL_DATA_DIR = "_wedata_internal/"
@@ -710,7 +710,7 @@ class FeatureTableClient:
710
710
  full_table_name=full_table_name,
711
711
  columns_name=columns_name_list,
712
712
  entity_rows=[result_row.asDict()])
713
- # print(online_view[schema_name_list])
713
+ print("=====>read online dataframe:\n", online_view[schema_name_list])
714
714
  return self._spark.createDataFrame(online_view[schema_name_list], schema=schema, verifySchema=False)
715
715
  else:
716
716
  return self._spark.createDataFrame([])
@@ -719,7 +719,7 @@ class FeatureTableClient:
719
719
  full_table_name=full_table_name,
720
720
  columns_name=columns_name_list,
721
721
  entity_rows=entity_row)
722
- # print(online_view[columns_name_list])
722
+ print("=====>read online dataframe:\n", online_view[schema_name_list])
723
723
  return self._spark.createDataFrame(online_view[schema_name_list], schema=schema, verifySchema=False)
724
724
 
725
725
  def get_table(