tfduck-bsd 0.18.9__py3-none-any.whl → 0.19.0__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 tfduck-bsd might be problematic. Click here for more details.

tfduck/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__="0.18.9"
1
+ __version__="0.19.0"
@@ -72,6 +72,8 @@ class ServerlessTaskManage(object):
72
72
  "pvc_name": "tfduck-k8s-pvc",
73
73
  # pypi的源,如果为空字符串,则使用官方源
74
74
  "pypi_mirror": "https://pypi.tuna.tsinghua.edu.cn/simple",
75
+ # 执行python脚本参数---最好是base64编码的json字符串
76
+ "params": "xxx",
75
77
  },
76
78
  #
77
79
  is_debug=False,
@@ -86,6 +88,11 @@ class ServerlessTaskManage(object):
86
88
  code_path: 代码路径
87
89
  project_configs: 所有项目配置
88
90
  project_name: 项目名称,在project_configs里面找到对应的key
91
+ params: 用法
92
+ param_b64_content = base64.b64encode(json.dumps(self.task_params).encode(
93
+ 'utf8')).decode() # 将参数编辑为base64,防止出现特殊字符分割参数
94
+ # 解码
95
+ # ds = json.loads(base64.b64decode(param_b64_content).decode('utf8'))
89
96
  ######################################
90
97
  """
91
98
  """
@@ -213,7 +220,7 @@ class ServerlessTaskManage(object):
213
220
  pip install -U pip {pypi_i} && \
214
221
  pip install arrow {pypi_i} && \
215
222
  pip install -r requirements.txt {pypi_i} && \
216
- python main.py
223
+ python main.py --params {self.task_config["params"]}
217
224
  """
218
225
  ],
219
226
  "resources": {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tfduck-bsd
3
- Version: 0.18.9
3
+ Version: 0.19.0
4
4
  Summary: A small example package
5
5
  Home-page: UNKNOWN
6
6
  Author: yuanxiao
@@ -1,4 +1,4 @@
1
- tfduck/__init__.py,sha256=TRRPGLa2H8gtDkPRDVLHsMb-rSDUOA3KlLZ7IBK-oso,20
1
+ tfduck/__init__.py,sha256=HzCFXReI-L8P5LDxCqKTXdxmMh60stNpslfizuREvhM,20
2
2
  tfduck/main.py,sha256=zNTC16wkwGJ0QX1-i8vzlGophOxmFuO4SLsF1tkjsbE,14670
3
3
  tfduck/bdp_sdk_py/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  tfduck/bdp_sdk_py/example.py,sha256=Xq1_gcSyu0zho_iMmMYfYgMblcgF8a-GwRBWPTw0FuU,2879
@@ -23,7 +23,7 @@ tfduck/sagemaker/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,
23
23
  tfduck/sagemaker/saoper.py,sha256=oVdxoUeXrM4sGXrTg8F-ZXG0lF6VXfjZ9gW3Q7ubjkU,11991
24
24
  tfduck/serverless_k8s/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
25
  tfduck/serverless_k8s/k8s_manage.py,sha256=boZQ-m-O5hfuIGxUdXsBAChPxXSDJ2mEfp_eHkzywxA,8759
26
- tfduck/serverless_k8s/k8s_task.py,sha256=lFaSuNbzjmhXPp0CK_OZG0dQR-sqAqlnD5H8j96zPcw,11947
26
+ tfduck/serverless_k8s/k8s_task.py,sha256=XlBrB4mcCh85n6zDNLUhmkzi24uJn7_yirwi_-5V8PA,12390
27
27
  tfduck/tga/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
28
28
  tfduck/tga/base_tga.py,sha256=rg1BHaIKGSwUVbOlWSA3Y1arB8J_caemjTjH9jh8GYM,2184
29
29
  tfduck/tga/predict_sql_ltv.py,sha256=25rpOZdHyMcEU3O8u67oUpLsTiZburEPsvXR38hTUJ0,3589
@@ -36,9 +36,9 @@ tfduck/tga/train_sql_retain.py,sha256=AIOJKWC37j4UdM8JLFS6LdJFtABjMq9gOi3xvAs4fA
36
36
  tfduck/tga/train_sql_yh.py,sha256=nb5BO_vOv0eKY2kOVt5ZOfM1cvfI8j2no8cYpCL_rNE,24378
37
37
  tfduck/thinkdata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
38
  tfduck/thinkdata/query.py,sha256=DsfcxjZrc0ZFTwN2pI5fKdM1Bwr6ageoPcA2MP3r2bE,1314
39
- tfduck_bsd-0.18.9.data/scripts/tfduck,sha256=UsuoAs4peJW4I-e6Gn91gEToP_YyuUp-rUUg3ObKneY,192
40
- tfduck_bsd-0.18.9.dist-info/LICENSE,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
41
- tfduck_bsd-0.18.9.dist-info/METADATA,sha256=ItLX6AzwCMp3Tfj56RdBsc1QTTPr8fLAzpRakucTlwo,1003
42
- tfduck_bsd-0.18.9.dist-info/WHEEL,sha256=g4nMs7d-Xl9-xC9XovUrsDHGXt-FT0E17Yqo92DEfvY,92
43
- tfduck_bsd-0.18.9.dist-info/top_level.txt,sha256=503etRkoyeI1VYcAwe5KpD5Bamhx0R0y2ofkE8HpRDA,7
44
- tfduck_bsd-0.18.9.dist-info/RECORD,,
39
+ tfduck_bsd-0.19.0.data/scripts/tfduck,sha256=UsuoAs4peJW4I-e6Gn91gEToP_YyuUp-rUUg3ObKneY,192
40
+ tfduck_bsd-0.19.0.dist-info/LICENSE,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
41
+ tfduck_bsd-0.19.0.dist-info/METADATA,sha256=UtwjZ77P1mcr0WYhX3wr7ssIL9Q2voSsgxisA8M4yvE,1003
42
+ tfduck_bsd-0.19.0.dist-info/WHEEL,sha256=g4nMs7d-Xl9-xC9XovUrsDHGXt-FT0E17Yqo92DEfvY,92
43
+ tfduck_bsd-0.19.0.dist-info/top_level.txt,sha256=503etRkoyeI1VYcAwe5KpD5Bamhx0R0y2ofkE8HpRDA,7
44
+ tfduck_bsd-0.19.0.dist-info/RECORD,,