cloudpss 4.0.16__tar.gz → 4.0.17__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.
- {cloudpss-4.0.16 → cloudpss-4.0.17}/PKG-INFO +1 -1
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/runner/MessageStreamReceiver.py +1 -2
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/runner/runner.py +1 -0
- cloudpss-4.0.17/cloudpss/version.py +1 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss.egg-info/PKG-INFO +1 -1
- cloudpss-4.0.17/test/test.py +42 -0
- cloudpss-4.0.16/cloudpss/version.py +0 -1
- cloudpss-4.0.16/test/test.py +0 -31
- {cloudpss-4.0.16 → cloudpss-4.0.17}/README.md +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/__init__.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/function/__init__.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/function/function.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/function/functionExecution.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/function/job.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/ieslab/DataManageModel.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/ieslab/EvaluationModel.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/ieslab/IESLabPlan.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/ieslab/IESLabSimulation.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/ieslab/PlanModel.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/ieslab/__init__.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/model/__init__.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/model/implements/__init__.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/model/implements/component.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/model/implements/diagram.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/model/implements/implement.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/model/jobDefinitions.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/model/model.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/model/revision.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/model/topology.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/project/__init__.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/project/project.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/runner/IESLabEvaluationResult.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/runner/IESLabPlanResult.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/runner/IESLabTypicalDayResult.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/runner/__init__.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/runner/receiver.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/runner/result.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/runner/storage.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/runner/transform.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/utils/IO.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/utils/__init__.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/utils/dataEncoder.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/utils/graphqlUtil.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/utils/httprequests.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/utils/matlab.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/utils/yamlLoader.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss/verify.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss.egg-info/SOURCES.txt +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss.egg-info/dependency_links.txt +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss.egg-info/requires.txt +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/cloudpss.egg-info/top_level.txt +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/setup.cfg +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/setup.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/test/test-async.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/test/test-async2.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/test/test-async3.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/test/test-plot.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/test/test-sdk.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/test/test-sdk1.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/test/test-snapshot.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/test/test-topology.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/test/test-topology1.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/test/test-yield.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/test/test7950.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/test/testAsync.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/test/testEvent.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/test/testRt-test.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/test/testRt.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/test/testRt2.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/test/testSend.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/test/test_in_new_web_1.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/test/test_ws.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/test/test_ws2.py +0 -0
- {cloudpss-4.0.16 → cloudpss-4.0.17}/test/testb.py +0 -0
@@ -61,8 +61,6 @@ class MessageStreamReceiver(object):
|
|
61
61
|
if "when" not in msg:
|
62
62
|
msg['when']= datetime.datetime.now()
|
63
63
|
self.db.storeMessage(msg)
|
64
|
-
if(msg['type']=='terminate'):
|
65
|
-
self.close(self.ws)
|
66
64
|
|
67
65
|
def on_error(self, ws, error):
|
68
66
|
msg = {
|
@@ -88,6 +86,7 @@ class MessageStreamReceiver(object):
|
|
88
86
|
|
89
87
|
def close(self, ws):
|
90
88
|
ws.close()
|
89
|
+
self._status = 1
|
91
90
|
|
92
91
|
def status(self):
|
93
92
|
return self._status
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = '4.0.17'
|
@@ -0,0 +1,42 @@
|
|
1
|
+
|
2
|
+
import time
|
3
|
+
import sys
|
4
|
+
import os
|
5
|
+
|
6
|
+
sys.path.append(os.path.join(os.path.dirname(__file__), '..\\'))
|
7
|
+
import cloudpss
|
8
|
+
import time
|
9
|
+
import numpy as np
|
10
|
+
import pandas as pd
|
11
|
+
import json
|
12
|
+
|
13
|
+
if __name__ == '__main__':
|
14
|
+
# os.environ['CLOUDPSS_API_URL'] = 'http://10.101.10.45/'
|
15
|
+
# print('CLOUDPSS connected')
|
16
|
+
# cloudpss.setToken(
|
17
|
+
# 'eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwidXNlcm5hbWUiOiJhZG1pbiIsInNjb3BlcyI6WyJtb2RlbDo5ODMzNSIsImZ1bmN0aW9uOjk4MzM1IiwiYXBwbGljYXRpb246OTgzMzUiXSwicm9sZXMiOlsiYWRtaW4iXSwidHlwZSI6ImFwcGx5IiwiZXhwIjoxNzI0NTU3MDIzLCJub3RlIjoiYSIsImlhdCI6MTY5MzQ1MzAyM30._Xuyo62ESKLcIAFeNdnfBM44yPiiXli9OPKvXDzL2rPV4J1_qsGZP--bsS1tXAVy-x8ooUIIAAG1yhwmZuk7-Q')
|
18
|
+
# print('Token done')
|
19
|
+
# project = cloudpss.Model.fetch('model/admin/aaaa')
|
20
|
+
# project.save(key='asdfasd111')
|
21
|
+
# topology =project.fetchTopology()
|
22
|
+
# topology = cloudpss.ModelTopology.fetch("-xrS3SewFhpVYKBtIXLk-XDLCQRQnUmlIbXS3s4sdPUkPKeAMhXHjRgZD1JPjPfQ","emtp",{'args':{}})
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
# topology= project.fetchTopology(config={'args':{}})
|
27
|
+
|
28
|
+
# topology.dump(topology,'test.json')
|
29
|
+
|
30
|
+
# tk=None
|
31
|
+
tk = 'eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwidXNlcm5hbWUiOiJhZG1pbiIsInNjb3BlcyI6WyJicm93c2VyIl0sInR5cGUiOiJicm93c2VyIiwiZXhwIjoxNzE2NTM4OTY0LCJpYXQiOjE3MTM4NjA1NjR9.caupiw4utZ_K-OwaHxBnuU0yLYcsNWZXwRuEp80Ij2ENW3ckP7HUUaUBEewfpTYRaXS4MnWq2zz1KJGJnrh_4A'
|
32
|
+
apiURL = 'http://cloudpss-calculate.local.ddns.cloudpss.net/'
|
33
|
+
print('Start')
|
34
|
+
username = 'admin' #用户名
|
35
|
+
projectKey = 'zdh_sx_test'
|
36
|
+
|
37
|
+
cloudpss.setToken(tk)
|
38
|
+
os.environ['CLOUDPSS_API_URL'] = apiURL
|
39
|
+
project = cloudpss.Model.fetch('model/'+username+'/'+projectKey)
|
40
|
+
|
41
|
+
|
42
|
+
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = '4.0.16'
|
cloudpss-4.0.16/test/test.py
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
|
2
|
-
import time
|
3
|
-
import sys
|
4
|
-
import os
|
5
|
-
|
6
|
-
sys.path.append(os.path.join(os.path.dirname(__file__), '..\\'))
|
7
|
-
import cloudpss
|
8
|
-
import time
|
9
|
-
import numpy as np
|
10
|
-
import pandas as pd
|
11
|
-
import json
|
12
|
-
|
13
|
-
if __name__ == '__main__':
|
14
|
-
os.environ['CLOUDPSS_API_URL'] = 'http://10.101.10.45/'
|
15
|
-
print('CLOUDPSS connected')
|
16
|
-
cloudpss.setToken(
|
17
|
-
'eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwidXNlcm5hbWUiOiJhZG1pbiIsInNjb3BlcyI6WyJtb2RlbDo5ODMzNSIsImZ1bmN0aW9uOjk4MzM1IiwiYXBwbGljYXRpb246OTgzMzUiXSwicm9sZXMiOlsiYWRtaW4iXSwidHlwZSI6ImFwcGx5IiwiZXhwIjoxNzI0NTU3MDIzLCJub3RlIjoiYSIsImlhdCI6MTY5MzQ1MzAyM30._Xuyo62ESKLcIAFeNdnfBM44yPiiXli9OPKvXDzL2rPV4J1_qsGZP--bsS1tXAVy-x8ooUIIAAG1yhwmZuk7-Q')
|
18
|
-
print('Token done')
|
19
|
-
project = cloudpss.Model.fetch('model/admin/aaaa')
|
20
|
-
project.save(key='asdfasd111')
|
21
|
-
# topology =project.fetchTopology()
|
22
|
-
# topology = cloudpss.ModelTopology.fetch("-xrS3SewFhpVYKBtIXLk-XDLCQRQnUmlIbXS3s4sdPUkPKeAMhXHjRgZD1JPjPfQ","emtp",{'args':{}})
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
# topology= project.fetchTopology(config={'args':{}})
|
27
|
-
|
28
|
-
# topology.dump(topology,'test.json')
|
29
|
-
|
30
|
-
|
31
|
-
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|