PipeGraphPy 2.0.1__tar.gz → 2.0.3__tar.gz

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.
Files changed (151) hide show
  1. {pipegraphpy-2.0.1/src/PipeGraphPy.egg-info → pipegraphpy-2.0.3}/PKG-INFO +1 -1
  2. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/README.md +14 -15
  3. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/__init__.py +1 -1
  4. pipegraphpy-2.0.3/src/PipeGraphPy/core/module.cpython-38-x86_64-linux-gnu.so +0 -0
  5. pipegraphpy-2.0.3/src/PipeGraphPy/db/utils.py +99 -0
  6. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3/src/PipeGraphPy.egg-info}/PKG-INFO +1 -1
  7. pipegraphpy-2.0.1/src/PipeGraphPy/core/module.cpython-38-x86_64-linux-gnu.so +0 -0
  8. pipegraphpy-2.0.1/src/PipeGraphPy/db/utils.py +0 -183
  9. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/MANIFEST.in +0 -0
  10. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/requirements.txt +0 -0
  11. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/setup.cfg +0 -0
  12. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/setup.py +0 -0
  13. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/common.py +0 -0
  14. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/config/__init__.py +0 -0
  15. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/config/config_light.py +0 -0
  16. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/config/custom.py +0 -0
  17. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/config/default_settings.py +0 -0
  18. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/constants.py +0 -0
  19. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/__init__.py +0 -0
  20. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/anchor.cpython-38-x86_64-linux-gnu.so +0 -0
  21. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/edge.cpython-38-x86_64-linux-gnu.so +0 -0
  22. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/graph.cpython-38-x86_64-linux-gnu.so +0 -0
  23. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/graph_base.cpython-38-x86_64-linux-gnu.so +0 -0
  24. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modcls/__init__.py +0 -0
  25. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modcls/base.cpython-38-x86_64-linux-gnu.so +0 -0
  26. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modcls/branchselect.cpython-38-x86_64-linux-gnu.so +0 -0
  27. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modcls/classifier.cpython-38-x86_64-linux-gnu.so +0 -0
  28. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modcls/cluster.cpython-38-x86_64-linux-gnu.so +0 -0
  29. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modcls/datacharts.cpython-38-x86_64-linux-gnu.so +0 -0
  30. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modcls/deeplearning.cpython-38-x86_64-linux-gnu.so +0 -0
  31. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modcls/endscript.cpython-38-x86_64-linux-gnu.so +0 -0
  32. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modcls/ensemble.cpython-38-x86_64-linux-gnu.so +0 -0
  33. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modcls/evaluate.cpython-38-x86_64-linux-gnu.so +0 -0
  34. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modcls/exportdata.cpython-38-x86_64-linux-gnu.so +0 -0
  35. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modcls/handlescript.cpython-38-x86_64-linux-gnu.so +0 -0
  36. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modcls/importdata.cpython-38-x86_64-linux-gnu.so +0 -0
  37. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modcls/merge.cpython-38-x86_64-linux-gnu.so +0 -0
  38. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modcls/mergescript.cpython-38-x86_64-linux-gnu.so +0 -0
  39. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modcls/metrics.cpython-38-x86_64-linux-gnu.so +0 -0
  40. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modcls/postprocessor.cpython-38-x86_64-linux-gnu.so +0 -0
  41. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modcls/preprocessor.cpython-38-x86_64-linux-gnu.so +0 -0
  42. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modcls/pythonscript.cpython-38-x86_64-linux-gnu.so +0 -0
  43. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modcls/regressor.cpython-38-x86_64-linux-gnu.so +0 -0
  44. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modcls/selector.cpython-38-x86_64-linux-gnu.so +0 -0
  45. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modcls/selectscript.cpython-38-x86_64-linux-gnu.so +0 -0
  46. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modcls/special.cpython-38-x86_64-linux-gnu.so +0 -0
  47. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modcls/split.cpython-38-x86_64-linux-gnu.so +0 -0
  48. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modcls/splitscript.cpython-38-x86_64-linux-gnu.so +0 -0
  49. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modcls/startscript.cpython-38-x86_64-linux-gnu.so +0 -0
  50. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modcls/transformer.cpython-38-x86_64-linux-gnu.so +0 -0
  51. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/__init__.py +0 -0
  52. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/branchselect/__init__.py +0 -0
  53. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/branchselect/sqlbranchselect.py +0 -0
  54. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/classifier/__init__.py +0 -0
  55. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/cluster/__init__.py +0 -0
  56. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/custom/__init__.py +0 -0
  57. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/custom/classifier/__init__.py +0 -0
  58. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/datacharts/__init__.py +0 -0
  59. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/datacharts/dataview.py +0 -0
  60. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/deeplearning/__init__.py +0 -0
  61. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/ensemble/__init__.py +0 -0
  62. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/ensemble/predictcombine.py +0 -0
  63. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/evaluate/__init__.py +0 -0
  64. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/evaluate/rmseeval.py +0 -0
  65. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/exportdata/__init__.py +0 -0
  66. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/exportdata/rundownloadcsv.py +0 -0
  67. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/exportdata/todb.py +0 -0
  68. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/importdata/__init__.py +0 -0
  69. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/importdata/algodata.py +0 -0
  70. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/importdata/ensemblegridweather.py +0 -0
  71. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/importdata/fromdb.py +0 -0
  72. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/importdata/fromsql.py +0 -0
  73. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/importdata/gridweather.py +0 -0
  74. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/importdata/import_graph.py +0 -0
  75. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/importdata/midlong.py +0 -0
  76. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/importdata/nwpdata.py +0 -0
  77. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/importdata/qiaogdfsimport.py +0 -0
  78. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/importdata/shan1xiareaimport.py +0 -0
  79. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/importdata/strategyalgodata.py +0 -0
  80. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/importdata/test.py +0 -0
  81. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/importdata/theorydata.py +0 -0
  82. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/importdata/thirdpower.py +0 -0
  83. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/importdata/totalpower.py +0 -0
  84. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/importdata/totalpower_utils.py +0 -0
  85. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/model_selector/MLP_test_Selector.py +0 -0
  86. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/model_selector/__init__.py +0 -0
  87. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/postprocessor/__init__.py +0 -0
  88. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/postprocessor/postdownloadcsv.py +0 -0
  89. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/postprocessor/test.py +0 -0
  90. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/postprocessor/testss.py +0 -0
  91. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/postprocessor/zerotocap.py +0 -0
  92. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/preprocessor/__init__.py +0 -0
  93. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/preprocessor/filtercolumns.py +0 -0
  94. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/preprocessor/filterlib.py +0 -0
  95. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/preprocessor/predownloadcsv.py +0 -0
  96. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/preprocessor/sqlfilter.py +0 -0
  97. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/pythonscript/__init__.py +0 -0
  98. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/pythonscript/copycompetitionpredictresulttest.py +0 -0
  99. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/pythonscript/reportmengDongenergytest.py +0 -0
  100. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/regressor/__init__.py +0 -0
  101. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/selector/__init__.py +0 -0
  102. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/selector/explore_selector.py +0 -0
  103. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/selector/nwp_selector.py +0 -0
  104. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/special/__init__.py +0 -0
  105. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/special/emptydata.py +0 -0
  106. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/special/graphmod.py +0 -0
  107. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/transformer/MLP_test_Transformer.py +0 -0
  108. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/transformer/__init__.py +0 -0
  109. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/modules/transformer/rnn_transformer.py +0 -0
  110. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/node.cpython-38-x86_64-linux-gnu.so +0 -0
  111. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/core/pipegraph.cpython-38-x86_64-linux-gnu.so +0 -0
  112. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/db/__init__.py +0 -0
  113. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/db/models.cpython-38-x86_64-linux-gnu.so +0 -0
  114. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/decorators.py +0 -0
  115. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/exceptions.py +0 -0
  116. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/handle_wait_graph.py +0 -0
  117. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/logger.py +0 -0
  118. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/plot/__init__.py +0 -0
  119. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/plot/draw.py +0 -0
  120. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/shell_op.py +0 -0
  121. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/storage/__init__.py +0 -0
  122. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/storage/base.py +0 -0
  123. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/storage/dict_backend.py +0 -0
  124. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/storage/file_backend.py +0 -0
  125. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/storage/redis_backend.py +0 -0
  126. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/tools.py +0 -0
  127. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/utils/__init__.py +0 -0
  128. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/utils/celery_control.py +0 -0
  129. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/utils/check.py +0 -0
  130. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/utils/core.py +0 -0
  131. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/utils/examine.py +0 -0
  132. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/utils/feature_select.py +0 -0
  133. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/utils/file_operate.py +0 -0
  134. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/utils/format.py +0 -0
  135. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/utils/formula.py +0 -0
  136. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/utils/functional.py +0 -0
  137. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/utils/handle_graph.py +0 -0
  138. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/utils/lock.py +0 -0
  139. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/utils/mq.py +0 -0
  140. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/utils/osutil.py +0 -0
  141. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/utils/read_nwp_tar.py +0 -0
  142. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/utils/redis_operate.py +0 -0
  143. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/utils/str_handle.py +0 -0
  144. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/utils/version.py +0 -0
  145. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/worker_exe.py +0 -0
  146. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/worker_heartbeat.py +0 -0
  147. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy/worker_subscriber.py +0 -0
  148. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy.egg-info/SOURCES.txt +0 -0
  149. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy.egg-info/dependency_links.txt +0 -0
  150. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy.egg-info/requires.txt +0 -0
  151. {pipegraphpy-2.0.1 → pipegraphpy-2.0.3}/src/PipeGraphPy.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PipeGraphPy
3
- Version: 2.0.1
3
+ Version: 2.0.3
4
4
  Summary: 核心算法框架
5
5
  Home-page: https://gitee.com/zsq_tee/pipe-graph-py
6
6
  Author: zhengshuiqing
@@ -526,27 +526,26 @@ import_node.params = {
526
526
  import_node.run()
527
527
  ```
528
528
 
529
- ## arm版本升级步骤
530
- - 1、复制一份PipeGraphPy_arm代码
529
+ ## x86版本升级步骤(改进)
530
+ 前期准备:
531
+ docker pull --platform linux/amd64 python:3.8.17
532
+ docker tag python:3.8.17 x86_python:3.8.17
533
+ docker rmi python:3.8.17
534
+ - 1、复制一份PipeGraphPy_x86代码
531
535
  - 2、修改PipeGraphPy版本号
532
- - 3、启动一个arm容器挂载PipeGraphPy_arm目录:docker run --rm -v /mnt/e/jiutian/pyproj/PipeGraphPy_arm:/mnt/e/jiutian/pyproj/PipeGraphPy_arm mlf_arm:v1.0.1 tail -f /dev/null
533
- - 4、进入容器中的/mnt/e/jiutian/pyproj/PipeGraphPy_arm/src目录内,执行:sh build.sh arm
534
- - 5、到容器外面的/mnt/e/jiutian/pyproj/PipeGraphPy_arm目录执行:
536
+ - 3、启动一个arm容器挂载PipeGraphPy_x86目录:docker run --rm --platform linux/amd64 -v /Users/zhengshuiqing/work/qingneng/pyproj/PipeGraphPy_x86:/Users/zhengshuiqing/work/qingneng/pyproj/PipeGraphPy_x86 x86_python:3.8.17 sh -c 'cd /Users/zhengshuiqing/work/qingneng/pyproj/PipeGraphPy_x86/src && pip install Cython && sh build.sh x86'
537
+ - 4、到容器外面的/Users/zhengshuiqing/work/qingneng/pyproj/PipeGraphPy_x86目录执行:
535
538
  python -m build
536
539
  twine upload ./dist/*
537
540
 
538
541
  ## arm版本升级步骤(改进)
542
+ 前期准备:
543
+ docker pull --platform linux/arm64 python:3.8.17
544
+ docker tag python:3.8.17 arm_python:3.8.17
545
+ docker rmi python:3.8.17
539
546
  - 1、复制一份PipeGraphPy_arm代码
540
547
  - 2、修改PipeGraphPy版本号
541
- - 3、启动一个arm容器挂载PipeGraphPy_arm目录:docker run --rm -v /mnt/e/jiutian/pyproj/PipeGraphPy_arm:/mnt/e/jiutian/pyproj/PipeGraphPy_arm mlf_arm:v1.0.1 sh -c 'cd /mnt/e/jiutian/pyproj/PipeGraphPy_arm/src && sh build.sh arm'
542
- - 4、到容器外面的/mnt/e/jiutian/pyproj/PipeGraphPy_arm目录执行:
543
- python -m build
544
- twine upload ./dist/*
545
-
546
- ## x86版本升级步骤(改进)
547
- - 1、复制一份PipeGraphPy_x86代码
548
- - 2、修改PipeGraphPy版本号
549
- - 3、启动一个arm容器挂载PipeGraphPy_x86目录:docker run --rm --platform linux/amd64 -v /Users/zhengshuiqing/work/qingneng/pyproj/PipeGraphPy_x86:/Users/zhengshuiqing/work/qingneng/pyproj/PipeGraphPy_x86 x86_python:3.8.17 sh -c 'cd /Users/zhengshuiqing/work/qingneng/pyproj/PipeGraphPy_x86/src && sh build.sh x86'
550
- - 4、到容器外面的/Users/zhengshuiqing/work/qingneng/pyproj/PipeGraphPy_x86目录执行:
548
+ - 3、启动一个arm容器挂载PipeGraphPy_arm目录:docker run --rm --platform linux/arm64 -v /Users/zhengshuiqing/work/qingneng/pyproj/PipeGraphPy_arm:/Users/zhengshuiqing/work/qingneng/pyproj/PipeGraphPy_arm arm_python:3.8.17 sh -c 'cd /Users/zhengshuiqing/work/qingneng/pyproj/PipeGraphPy_arm/src && pip install Cython && sh build.sh arm'
549
+ - 4、到容器外面的/Users/zhengshuiqing/work/qingneng/pyproj/PipeGraphPy_arm目录执行:
551
550
  python -m build
552
551
  twine upload ./dist/*
@@ -1,6 +1,6 @@
1
1
  # coding:utf-8
2
2
 
3
- __version__ = "2.0.1"
3
+ __version__ = "2.0.3"
4
4
 
5
5
  from PipeGraphPy.core.graph import Graph, graph_predict, graph_evaluate, online_graph_evaluate, online_graph_predict, graph_run, graph_backtest
6
6
  from PipeGraphPy.core.module import Module
@@ -0,0 +1,99 @@
1
+ import json
2
+ import traceback
3
+ from datetime import datetime, timedelta
4
+ from PipeGraphPy.db.models import GraphsTB, NodesTB, ObjectsTB
5
+ from dbpoolpy import connect_db
6
+ from PipeGraphPy.logger import rlog
7
+ from PipeGraphPy.constants import BIZ_TYPE, STATUS, DB
8
+
9
+
10
+ def update_node_params(node_ids, key, value, value_key="value"):
11
+ """更新节点的params字段信息
12
+ parametes:
13
+ node_ids: list or int 要更新节点的id
14
+ key: str 要更新的键
15
+ value: str 要更新的值
16
+ """
17
+ if isinstance(node_ids, int):
18
+ node_ids = [node_ids]
19
+ elif isinstance(node_ids, list):
20
+ node_ids = node_ids
21
+ else:
22
+ raise Exception("update_node_params函数node_ids字段传值类型不合法")
23
+ for node_id in node_ids:
24
+ node_info = NodesTB.find_one(id=node_id)
25
+ node_params = json.loads(node_info["params"])
26
+ for i in node_params:
27
+ if i["key"] == key:
28
+ i[value_key] = value
29
+ break
30
+ NodesTB.set(params=json.dumps(node_params)).where(id=node_id)
31
+
32
+
33
+ def insert_batch(dbserver, table, datas, num=2000):
34
+ try:
35
+ cnt = 0
36
+ with connect_db(dbserver) as db:
37
+ while len(datas) > cnt:
38
+ ceil_list = datas[cnt : cnt + num]
39
+ db.insert(table).many(ceil_list).execute()
40
+ cnt += num
41
+ except Exception:
42
+ rlog.error(traceback.format_exc())
43
+
44
+
45
+ def df_to_db(dbserver, table, df):
46
+ if df.empty:
47
+ return
48
+ datas = df.to_dict(orient="records")
49
+ insert_batch(dbserver, table, datas)
50
+
51
+
52
+ def get_objects_info(objects_type_id, objects_id):
53
+ """获取业务信息
54
+ 参数:
55
+ objects_type_id: 业务类型
56
+ objects_id:业务id
57
+ """
58
+ try:
59
+ objects_info = ObjectsTB.find_one(objects_type_id=objects_type_id, id=objects_id)
60
+ objects_info = objects_info if objects_info else {"objects_type_id": objects_type_id, "objects_id": objects_id}
61
+ return objects_info
62
+ except Exception as e:
63
+ print(traceback.format_exc())
64
+ return {"objects_type_id": objects_type_id, "objects_id": objects_id}
65
+
66
+ def graphs_wait_to_run(graph_ids):
67
+ """模型进入训练队列"""
68
+ if graph_ids:
69
+ running_ids = GraphsTB.map("id").where(
70
+ status=("in", [STATUS.RUNNING, STATUS.WAITRUN]),
71
+ id=("in",graph_ids))
72
+ if running_ids:
73
+ graph_ids = list(set(graph_ids) - set(running_ids))
74
+ if graph_ids:
75
+ now = (datetime.utcnow()+timedelta(hours=8)).strftime("%Y-%m-%d %H:%M:%S")
76
+ GraphsTB.set(
77
+ status=STATUS.WAITRUN,
78
+ wait_run_time=now,
79
+ task_id=''
80
+ ).where(id=("in", graph_ids))
81
+
82
+ def graphs_wait_to_predict(graph_ids, clock="12", is_pub=False, **kwargs):
83
+ """模型进入预测队列"""
84
+ params = {"clock": clock, "is_pub": is_pub}
85
+ if kwargs:
86
+ params.update(kwargs)
87
+ if graph_ids:
88
+ predicting_ids = GraphsTB.map("id").where(
89
+ p_status=("in", [STATUS.RUNNING, STATUS.WAITRUN]),
90
+ id=("in",graph_ids))
91
+ if predicting_ids:
92
+ graph_ids = list(set(graph_ids) - set(predicting_ids))
93
+ if graph_ids:
94
+ now = (datetime.utcnow()+timedelta(hours=8)).strftime("%Y-%m-%d %H:%M:%S")
95
+ GraphsTB.set(
96
+ p_status=STATUS.WAITRUN,
97
+ predict_params=json.dumps(params),
98
+ wait_predict_time=now,
99
+ ).where(id=("in", graph_ids))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PipeGraphPy
3
- Version: 2.0.1
3
+ Version: 2.0.3
4
4
  Summary: 核心算法框架
5
5
  Home-page: https://gitee.com/zsq_tee/pipe-graph-py
6
6
  Author: zhengshuiqing
@@ -1,183 +0,0 @@
1
- import json
2
- import traceback
3
- from datetime import datetime, timedelta
4
- from PipeGraphPy.db.models import GraphsTB, NodesTB, ObjectsTB
5
- from dbpoolpy import connect_db
6
- from PipeGraphPy.logger import rlog
7
- from PipeGraphPy.constants import BIZ_TYPE, STATUS, DB
8
-
9
-
10
- def update_node_params(node_ids, key, value, value_key="value"):
11
- """更新节点的params字段信息
12
- parametes:
13
- node_ids: list or int 要更新节点的id
14
- key: str 要更新的键
15
- value: str 要更新的值
16
- """
17
- if isinstance(node_ids, int):
18
- node_ids = [node_ids]
19
- elif isinstance(node_ids, list):
20
- node_ids = node_ids
21
- else:
22
- raise Exception("update_node_params函数node_ids字段传值类型不合法")
23
- for node_id in node_ids:
24
- node_info = NodesTB.find_one(id=node_id)
25
- node_params = json.loads(node_info["params"])
26
- for i in node_params:
27
- if i["key"] == key:
28
- i[value_key] = value
29
- break
30
- NodesTB.set(params=json.dumps(node_params)).where(id=node_id)
31
-
32
-
33
- def insert_batch(dbserver, table, datas, num=2000):
34
- try:
35
- cnt = 0
36
- with connect_db(dbserver) as db:
37
- while len(datas) > cnt:
38
- ceil_list = datas[cnt : cnt + num]
39
- db.insert(table).many(ceil_list).execute()
40
- cnt += num
41
- except Exception:
42
- rlog.error(traceback.format_exc())
43
-
44
-
45
- def df_to_db(dbserver, table, df):
46
- if df.empty:
47
- return
48
- datas = df.to_dict(orient="records")
49
- insert_batch(dbserver, table, datas)
50
-
51
-
52
- def get_npmos_info(prod_id, instance_id):
53
- """获取npmos的信息
54
- params:
55
- prod_id: 产品id,
56
- instance_id: 产品实例id
57
- """
58
- try:
59
- objects_info = {}
60
- with connect_db(DB.dbPipeGraphPy) as npmos_db:
61
- def get_entity_info(service_entity_rel_type):
62
- """
63
- service_entity_rel_type
64
- 1:farm_info, 2:fans_info, 3:wind_tower_info 4:point_info, 5:sys_region 6:sys_region 7:sys_region 8:sys_region
65
- """
66
- farm_ids = [i.get("type_id") for i in service_entity_rel_type if i.get("type") == "1"]
67
- fans_ids = [i.get("type_id") for i in service_entity_rel_type if i.get("type") == "2"]
68
- wind_tower_ids = [i.get("type_id") for i in service_entity_rel_type if i.get("type") == "3"]
69
- point_ids = [i.get("type_id") for i in service_entity_rel_type if i.get("type") == "4"]
70
- region_ids = [i.get("type_id") for i in service_entity_rel_type if i.get("type") in ["5","6","7","8"]]
71
- # 取实体信息
72
- farm_info = npmos_db.select("public.farm_info").where(id=("in", farm_ids)).all() if farm_ids else []
73
- fans_info = npmos_db.select("public.fans_info").where(id=("in", fans_ids)).all() if fans_ids else []
74
- wind_tower_info = npmos_db.select("public.wind_tower_info").where(id=("in", wind_tower_ids)).all() if wind_tower_ids else []
75
- point_info = npmos_db.select("public.point_info").where(id=("in", point_ids)).all() if point_ids else []
76
- sys_region = npmos_db.select("public.sys_region").where(id=("in", region_ids)).all() if region_ids else []
77
- return {
78
- "farm_info":farm_info,
79
- "fans_info":fans_info,
80
- "wind_tower_info":wind_tower_info,
81
- "point_info":point_info,
82
- "sys_region":sys_region,
83
- }
84
- # 产品信息
85
- pro_base_info = npmos_db.select("public.pro_base_info").where(id=prod_id).first()
86
- if not pro_base_info:
87
- raise Exception("未取到NPMOS产品信息:%s" % prod_id)
88
- # 产品实例
89
- pro_instance_info = npmos_db.select("public.pro_instance_info").where(id=instance_id).first()
90
- if not pro_instance_info:
91
- raise Exception("未取到NPMOS产品实例信息: %s" % instance_id)
92
- # 服务实体
93
- service_entity = npmos_db.select("public.service_entity").where(id=pro_instance_info["srv_entity_id"]).first()
94
- # 取建模对象
95
- if service_entity:
96
- # 实体信息:类型;1-点位-场站;2-点位-风机;3-点位-测风塔;4-点位-自定义点位;5-区域-行政区域;6-区域-地理区域;7-区域-流域;8-区域-自定义区域
97
- service_entity_rel_type_1 = npmos_db.select("public.service_entity_rel_type").where(srv_data_id=service_entity["id"]).all()
98
- service_entity["entity_info"] = get_entity_info(service_entity_rel_type_1)
99
- model_object = {}
100
- # 从产品实例里找模型对象(旧)
101
- try:
102
- # 取建模对象
103
- pro_instance_srv_rel = npmos_db.select("public.pro_instance_srv_rel").where(pro_instance_id=instance_id).all()
104
- if pro_instance_srv_rel:
105
- service_entity_rel_type_2 = npmos_db.select("public.service_entity_rel_type").where(id=("in", [i["srv_rel_id"] for i in pro_instance_srv_rel])).all()
106
- model_object = get_entity_info(service_entity_rel_type_2)
107
- farm_info = model_object["farm_info"][0]
108
- except:
109
- pass
110
- # 从服务实体里找模型对象(新)
111
- if not model_object:
112
- service_entity_rel_object = npmos_db.select("public.service_entity_rel_object").where(srv_data_id=service_entity["id"]).all()
113
- if service_entity_rel_object:
114
- service_entity_rel_type_2 = npmos_db.select("public.service_entity_rel_type").where(
115
- srv_data_id=service_entity["id"],
116
- type_id=("in", [i["point_id"] for i in service_entity_rel_object])).all()
117
- model_object = get_entity_info(service_entity_rel_type_2)
118
- objects_info = {
119
- "product_info": pro_base_info,
120
- "product_instance_info": pro_instance_info,
121
- "service_entity": service_entity,
122
- "model_object": model_object
123
- }
124
- return objects_info
125
- except:
126
- err = traceback.format_exc()
127
- return {"msg": "error", "content": err}
128
-
129
-
130
- def get_objects_info(objects_type_id, objects_id):
131
- """获取业务信息
132
- 参数:
133
- objects_type_id: 业务类型
134
- objects_id:业务id
135
- """
136
- if objects_type_id == BIZ_TYPE.WFID:
137
- return {"objects_type_id": objects_type_id, "objects_id": objects_id}
138
- elif objects_type_id == BIZ_TYPE.CUSTOM:
139
- return {"objects_type_id": objects_type_id, "objects_id": objects_id}
140
- else:
141
- npmos_info = get_npmos_info(objects_type_id, objects_id)
142
- if npmos_info.get("msg") == "error":
143
- objects_info = ObjectsTB.find_one(objects_type_id=objects_type_id, objects_id=objects_id)
144
- objects_info = objects_info if objects_info else {"objects_type_id": objects_type_id, "objects_id": objects_id}
145
- objects_info["npmos_info"] = npmos_info
146
- return objects_info
147
- else:
148
- return npmos_info
149
-
150
- def graphs_wait_to_run(graph_ids):
151
- """模型进入训练队列"""
152
- if graph_ids:
153
- running_ids = GraphsTB.map("id").where(
154
- status=("in", [STATUS.RUNNING, STATUS.WAITRUN]),
155
- id=("in",graph_ids))
156
- if running_ids:
157
- graph_ids = list(set(graph_ids) - set(running_ids))
158
- if graph_ids:
159
- now = (datetime.utcnow()+timedelta(hours=8)).strftime("%Y-%m-%d %H:%M:%S")
160
- GraphsTB.set(
161
- status=STATUS.WAITRUN,
162
- wait_run_time=now,
163
- task_id=''
164
- ).where(id=("in", graph_ids))
165
-
166
- def graphs_wait_to_predict(graph_ids, clock="12", is_pub=False, **kwargs):
167
- """模型进入预测队列"""
168
- params = {"clock": clock, "is_pub": is_pub}
169
- if kwargs:
170
- params.update(kwargs)
171
- if graph_ids:
172
- predicting_ids = GraphsTB.map("id").where(
173
- p_status=("in", [STATUS.RUNNING, STATUS.WAITRUN]),
174
- id=("in",graph_ids))
175
- if predicting_ids:
176
- graph_ids = list(set(graph_ids) - set(predicting_ids))
177
- if graph_ids:
178
- now = (datetime.utcnow()+timedelta(hours=8)).strftime("%Y-%m-%d %H:%M:%S")
179
- GraphsTB.set(
180
- p_status=STATUS.WAITRUN,
181
- predict_params=json.dumps(params),
182
- wait_predict_time=now,
183
- ).where(id=("in", graph_ids))
File without changes
File without changes
File without changes