tfduck-bsd 0.18.5__py3-none-any.whl → 0.18.6__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.5"
1
+ __version__="0.18.6"
tfduck/tga/tga.py CHANGED
@@ -196,6 +196,7 @@ class ThinkDataQuery(BaseTga):
196
196
  retry_count=2,
197
197
  conn_timeout=30,
198
198
  tga_data_timeout=600,
199
+ retry_wait=1,
199
200
  ):
200
201
  """
201
202
  @des:从thinkdata的openapi获取数据----流式,为了节省内存---配合下面的getquerycsv
@@ -228,6 +229,7 @@ class ThinkDataQuery(BaseTga):
228
229
  # else:
229
230
  # break
230
231
  if 1:
232
+ time.sleep(retry_wait)
231
233
  continue
232
234
  if gol_e is not None:
233
235
  raise gol_e
@@ -322,7 +324,9 @@ class ThinkDataQuery(BaseTga):
322
324
  BMOBJ.clog(ctx, i)
323
325
  BMOBJ.clog(ctx, f"total: {i}")
324
326
  if len(datas) > 0: # 保存最后收尾的
325
- df = pandas.DataFrame(data=datas, columns=cols, dtype=object) # 保存表头
327
+ df = pandas.DataFrame(
328
+ data=datas, columns=cols, dtype=object
329
+ ) # 保存表头
326
330
  # 解决科学计数法的问题
327
331
  df = df.astype(str)
328
332
  df = df.astype("string")
@@ -361,6 +365,7 @@ class ThinkDataQuery(BaseTga):
361
365
  retry_count=2,
362
366
  conn_timeout=30,
363
367
  tga_data_timeout=600,
368
+ retry_wait=1,
364
369
  ):
365
370
  """
366
371
  @des:从thinkdata的openapi获取数据----流式,为了节省内存---配合下面的getquerycsv
@@ -393,6 +398,7 @@ class ThinkDataQuery(BaseTga):
393
398
  # else:
394
399
  # break
395
400
  if 1:
401
+ time.sleep(retry_wait)
396
402
  continue
397
403
  if gol_e is not None:
398
404
  raise gol_e
@@ -409,6 +415,7 @@ class ThinkDataQuery(BaseTga):
409
415
  print_size=100000,
410
416
  conn_timeout=30,
411
417
  tga_data_timeout=600,
418
+ retry_wait=1,
412
419
  ):
413
420
  """
414
421
  @des: 接口装饰器--修改为get_data_csv,防止全面修改代码
@@ -423,6 +430,7 @@ class ThinkDataQuery(BaseTga):
423
430
  retry_count,
424
431
  conn_timeout,
425
432
  tga_data_timeout,
433
+ retry_wait,
426
434
  )
427
435
  return result
428
436
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tfduck-bsd
3
- Version: 0.18.5
3
+ Version: 0.18.6
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=ez0D39S5UwmrhC-yB0KboIMoVyM6XotVwZfeObtnCd8,20
1
+ tfduck/__init__.py,sha256=8Sd1SaAfR_k094Mc4J8XfjaA_j2eQmBPzdrHhxLDewk,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
@@ -26,16 +26,16 @@ tfduck/tga/base_tga.py,sha256=rg1BHaIKGSwUVbOlWSA3Y1arB8J_caemjTjH9jh8GYM,2184
26
26
  tfduck/tga/predict_sql_ltv.py,sha256=25rpOZdHyMcEU3O8u67oUpLsTiZburEPsvXR38hTUJ0,3589
27
27
  tfduck/tga/predict_sql_retain.py,sha256=Nsl0lSZ_CC8j_GB4jLrJgkoqqDRAAPYwzo7vAOYZ764,19772
28
28
  tfduck/tga/predict_sql_yh.py,sha256=uYeuCZX2btxO-pvjrhlmuG35PquJbLvVtQEuEZHu8Cs,3588
29
- tfduck/tga/tga.py,sha256=M72cZ1s0MbXxk63tQFBr1CP3junwg_sKe8jfg8t8PWc,22645
29
+ tfduck/tga/tga.py,sha256=HdLBUoVTBHu3zWIKUt5X1djLASmuzjBiBWTZet1SlKg,22859
30
30
  tfduck/tga/tga_test.py,sha256=A3n2LdvgQWlkX6E54K6cnsIUeYrgHlzG3QYbA7ZKgHk,2750
31
31
  tfduck/tga/train_sql_ltv.py,sha256=VZqGy0FbwLHkjQClV1IIMd6_E_H6BrIqL5p_WUfTUXc,26668
32
32
  tfduck/tga/train_sql_retain.py,sha256=AIOJKWC37j4UdM8JLFS6LdJFtABjMq9gOi3xvAs4fAE,24335
33
33
  tfduck/tga/train_sql_yh.py,sha256=nb5BO_vOv0eKY2kOVt5ZOfM1cvfI8j2no8cYpCL_rNE,24378
34
34
  tfduck/thinkdata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
35
35
  tfduck/thinkdata/query.py,sha256=DsfcxjZrc0ZFTwN2pI5fKdM1Bwr6ageoPcA2MP3r2bE,1314
36
- tfduck_bsd-0.18.5.data/scripts/tfduck,sha256=UsuoAs4peJW4I-e6Gn91gEToP_YyuUp-rUUg3ObKneY,192
37
- tfduck_bsd-0.18.5.dist-info/LICENSE,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
38
- tfduck_bsd-0.18.5.dist-info/METADATA,sha256=VVIXxggWIfjNbASFNaVmPYKFVlbcwnF0PCTizHuN0TE,1003
39
- tfduck_bsd-0.18.5.dist-info/WHEEL,sha256=g4nMs7d-Xl9-xC9XovUrsDHGXt-FT0E17Yqo92DEfvY,92
40
- tfduck_bsd-0.18.5.dist-info/top_level.txt,sha256=503etRkoyeI1VYcAwe5KpD5Bamhx0R0y2ofkE8HpRDA,7
41
- tfduck_bsd-0.18.5.dist-info/RECORD,,
36
+ tfduck_bsd-0.18.6.data/scripts/tfduck,sha256=UsuoAs4peJW4I-e6Gn91gEToP_YyuUp-rUUg3ObKneY,192
37
+ tfduck_bsd-0.18.6.dist-info/LICENSE,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
38
+ tfduck_bsd-0.18.6.dist-info/METADATA,sha256=3Kbk1BztIAC7xbI2rRUjNrErVif6YgSYFjBdUqcnxvc,1003
39
+ tfduck_bsd-0.18.6.dist-info/WHEEL,sha256=g4nMs7d-Xl9-xC9XovUrsDHGXt-FT0E17Yqo92DEfvY,92
40
+ tfduck_bsd-0.18.6.dist-info/top_level.txt,sha256=503etRkoyeI1VYcAwe5KpD5Bamhx0R0y2ofkE8HpRDA,7
41
+ tfduck_bsd-0.18.6.dist-info/RECORD,,