cloudpss 4.0.14__tar.gz → 4.0.15__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.14 → cloudpss-4.0.15}/PKG-INFO +1 -1
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/runner/MessageStreamReceiver.py +3 -3
- cloudpss-4.0.15/cloudpss/version.py +1 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss.egg-info/PKG-INFO +1 -1
- {cloudpss-4.0.14 → cloudpss-4.0.15}/test/test.py +4 -6
- cloudpss-4.0.14/cloudpss/version.py +0 -1
- {cloudpss-4.0.14 → cloudpss-4.0.15}/README.md +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/__init__.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/function/__init__.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/function/function.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/function/functionExecution.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/function/job.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/ieslab/DataManageModel.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/ieslab/EvaluationModel.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/ieslab/IESLabPlan.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/ieslab/IESLabSimulation.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/ieslab/PlanModel.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/ieslab/__init__.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/model/__init__.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/model/implements/__init__.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/model/implements/component.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/model/implements/diagram.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/model/implements/implement.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/model/jobDefinitions.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/model/model.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/model/revision.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/model/topology.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/project/__init__.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/project/project.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/runner/IESLabEvaluationResult.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/runner/IESLabPlanResult.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/runner/IESLabTypicalDayResult.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/runner/__init__.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/runner/receiver.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/runner/result.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/runner/runner.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/runner/storage.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/runner/transform.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/utils/IO.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/utils/__init__.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/utils/dataEncoder.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/utils/graphqlUtil.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/utils/httprequests.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/utils/matlab.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/utils/yamlLoader.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss/verify.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss.egg-info/SOURCES.txt +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss.egg-info/dependency_links.txt +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss.egg-info/requires.txt +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/cloudpss.egg-info/top_level.txt +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/setup.cfg +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/setup.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/test/test-async.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/test/test-async2.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/test/test-async3.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/test/test-plot.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/test/test-sdk.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/test/test-sdk1.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/test/test-snapshot.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/test/test-topology.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/test/test-topology1.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/test/test-yield.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/test/test7950.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/test/testAsync.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/test/testEvent.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/test/testRt-test.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/test/testRt.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/test/testRt2.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/test/testSend.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/test/test_in_new_web_1.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/test/test_ws.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/test/test_ws2.py +0 -0
- {cloudpss-4.0.14 → cloudpss-4.0.15}/test/testb.py +0 -0
@@ -46,13 +46,13 @@ class MessageStreamReceiver(object):
|
|
46
46
|
path = head + '://' + str(u[1]) + '/api/streams/id/' + id
|
47
47
|
if fr0m is not None:
|
48
48
|
path = path + '&from=' + str(fr0m)
|
49
|
-
ws = websocket.WebSocketApp(path,
|
49
|
+
self.ws = websocket.WebSocketApp(path,
|
50
50
|
on_open=on_open,
|
51
51
|
on_message=on_message,
|
52
52
|
on_error=on_error,
|
53
53
|
on_close=on_close)
|
54
|
-
ws.run_forever()
|
55
|
-
return ws
|
54
|
+
self.ws.run_forever()
|
55
|
+
return self.ws
|
56
56
|
|
57
57
|
###下面是兼容Receiver部分功能实现
|
58
58
|
def on_message(self, ws, message):
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = '4.0.15'
|
@@ -16,17 +16,15 @@ if __name__ == '__main__':
|
|
16
16
|
cloudpss.setToken(
|
17
17
|
'eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwidXNlcm5hbWUiOiJhZG1pbiIsInNjb3BlcyI6WyJtb2RlbDo5ODMzNSIsImZ1bmN0aW9uOjk4MzM1IiwiYXBwbGljYXRpb246OTgzMzUiXSwicm9sZXMiOlsiYWRtaW4iXSwidHlwZSI6ImFwcGx5IiwiZXhwIjoxNzI0NTU3MDIzLCJub3RlIjoiYSIsImlhdCI6MTY5MzQ1MzAyM30._Xuyo62ESKLcIAFeNdnfBM44yPiiXli9OPKvXDzL2rPV4J1_qsGZP--bsS1tXAVy-x8ooUIIAAG1yhwmZuk7-Q')
|
18
18
|
print('Token done')
|
19
|
-
|
20
|
-
|
21
|
-
print(job.args,flush=True)
|
22
|
-
# project = cloudpss.Model.fetch('model/admin/7744b02b-0636-5a39-8c16-eca939259ee1')
|
19
|
+
project = cloudpss.Model.fetch('model/admin/aaaa')
|
20
|
+
topology =project.fetchTopology()
|
23
21
|
# topology = cloudpss.ModelTopology.fetch("-xrS3SewFhpVYKBtIXLk-XDLCQRQnUmlIbXS3s4sdPUkPKeAMhXHjRgZD1JPjPfQ","emtp",{'args':{}})
|
24
22
|
|
25
23
|
|
26
24
|
|
27
|
-
#
|
25
|
+
# topology= project.fetchTopology(config={'args':{}})
|
28
26
|
|
29
|
-
|
27
|
+
topology.dump(topology,'test.json')
|
30
28
|
|
31
29
|
|
32
30
|
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = '4.0.14'
|
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
|
File without changes
|