ep-sdk-4pd 1.0.1__tar.gz → 1.0.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ep_sdk_4pd
3
- Version: 1.0.1
3
+ Version: 1.0.2
4
4
  Summary: 4paradigm Electricity Platform Service SDK Library for Python
5
5
  Home-page: https://gitlab.4pd.io/electricityproject/electricity-platform-sdk
6
6
  Author: 4paradigm Electricity Platform SDK
@@ -0,0 +1 @@
1
+ __version__ = '1.0.2'
@@ -10,18 +10,21 @@ from ep_sdk_4pd.models import HistoryDataRequest, PredictDataRequest
10
10
  # test 地址
11
11
  # endpoint = 'http://172.27.88.56:6001'
12
12
 
13
-
14
13
  # prod 地址
15
- endpoint = 'http://172.27.88.56:6601'
14
+ # endpoint = 'http://172.27.88.56:6601'
15
+
16
+ # 外网 地址
17
+ endpoint = 'http://82.157.231.254:6001'
16
18
 
17
19
  Authorization = 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJlbGVjdHJpY2l0eS1wbGF0Zm9ybSIsInN1YiI6IjEyMyIsImlhdCI6MTc0NjYwNjQ4NSwianRpIjoiMTIzXzE3NDY1Nzc2ODUxNDYiLCJ0eXBlIjoiYWNjZXNzIn0.Clrz_8j3aJlXTWPX-4DS0NxXN9idTcUIc0AtXOMIjd8'
18
20
 
21
+
19
22
  class EpData:
20
23
 
21
24
  @staticmethod
22
25
  def get_history_data(
23
- scope = None,
24
- days = 0
26
+ scope=None,
27
+ days=0
25
28
  ):
26
29
  # 最晚时间为系统时间 D-2
27
30
  date_str = EpSystem.get_system_date(is_online=True)
@@ -83,7 +86,7 @@ class EpData:
83
86
 
84
87
  # 测试
85
88
  if is_test:
86
- system_date=test_time
89
+ system_date = test_time
87
90
 
88
91
  request = PredictDataRequest(
89
92
  scope=scope,
@@ -124,4 +127,4 @@ class EpData:
124
127
  data=response.json().get('data', None),
125
128
  message=response.json().get('message', None),
126
129
  )
127
- return ep_sdk_4pd_models.PredictDataResponse(response=base_resp)
130
+ return ep_sdk_4pd_models.PredictDataResponse(response=base_resp)
@@ -12,9 +12,11 @@ from ep_sdk_4pd.models import ModelOutputDirRequest, RunStrategyRequest, CallTra
12
12
  # test 地址
13
13
  # endpoint = 'http://172.27.88.56:6001'
14
14
 
15
-
16
15
  # prod 地址
17
- endpoint = 'http://172.27.88.56:6601'
16
+ # endpoint = 'http://172.27.88.56:6601'
17
+
18
+ # 外网 地址
19
+ endpoint = 'http://82.157.231.254:6001'
18
20
 
19
21
  Authorization = 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJlbGVjdHJpY2l0eS1wbGF0Zm9ybSIsInN1YiI6IjEyMyIsImlhdCI6MTc0NjYwNjQ4NSwianRpIjoiMTIzXzE3NDY1Nzc2ODUxNDYiLCJ0eXBlIjoiYWNjZXNzIn0.Clrz_8j3aJlXTWPX-4DS0NxXN9idTcUIc0AtXOMIjd8'
20
22
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ep_sdk_4pd
3
- Version: 1.0.1
3
+ Version: 1.0.2
4
4
  Summary: 4paradigm Electricity Platform Service SDK Library for Python
5
5
  Home-page: https://gitlab.4pd.io/electricityproject/electricity-platform-sdk
6
6
  Author: 4paradigm Electricity Platform SDK
@@ -8,7 +8,7 @@ DESCRIPTION = '4paradigm Electricity Platform Service SDK Library for Python'
8
8
  AUTHOR = '4paradigm Electricity Platform SDK'
9
9
  AUTHOR_EMAIL = ''
10
10
  URL = 'https://gitlab.4pd.io/electricityproject/electricity-platform-sdk'
11
- VERSION = '1.0.1'
11
+ VERSION = '1.0.2'
12
12
  REQUIRES = ['requests']
13
13
 
14
14
  LONG_DESCRIPTION = ''
@@ -1 +0,0 @@
1
- __version__ = '1.0.1'
File without changes
File without changes