ep-sdk-4pd 1.0.3__tar.gz → 1.0.5__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.3
3
+ Version: 1.0.5
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.5'
@@ -8,13 +8,13 @@ from ep_sdk_4pd.ep_system import EpSystem
8
8
  from ep_sdk_4pd.models import HistoryDataRequest, PredictDataRequest
9
9
 
10
10
  # test 地址
11
- endpoint = 'http://172.27.88.56:6001'
11
+ # endpoint = 'http://172.27.88.56:6001'
12
12
 
13
13
  # prod 地址
14
14
  # endpoint = 'http://172.27.88.56:6601'
15
15
 
16
16
  # 外网 地址
17
- # endpoint = 'http://82.157.231.254:6001'
17
+ endpoint = 'http://82.157.231.254:6001'
18
18
 
19
19
  Authorization = 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJlbGVjdHJpY2l0eS1wbGF0Zm9ybSIsInN1YiI6IjEyMyIsImlhdCI6MTc0NjYwNjQ4NSwianRpIjoiMTIzXzE3NDY1Nzc2ODUxNDYiLCJ0eXBlIjoiYWNjZXNzIn0.Clrz_8j3aJlXTWPX-4DS0NxXN9idTcUIc0AtXOMIjd8'
20
20
 
@@ -23,7 +23,7 @@ class EpData:
23
23
 
24
24
  @staticmethod
25
25
  def get_history_data(
26
- scope=None,
26
+ scope="weather,plant,market",
27
27
  days=0
28
28
  ):
29
29
  # 最晚时间为系统时间 D-2
@@ -76,7 +76,7 @@ class EpData:
76
76
 
77
77
  @staticmethod
78
78
  def get_predict_data(
79
- scope,
79
+ scope="weather,plant,market",
80
80
  is_test=False,
81
81
  test_time=None,
82
82
  ):
@@ -11,13 +11,13 @@ from datetime import datetime
11
11
  from ep_sdk_4pd.models import ModelOutputDirRequest, RunStrategyRequest, CallTrainDoneRequest, RsaKeyRequest
12
12
 
13
13
  # test 地址
14
- endpoint = 'http://172.27.88.56:6001'
14
+ # endpoint = 'http://172.27.88.56:6001'
15
15
 
16
16
  # prod 地址
17
17
  # endpoint = 'http://172.27.88.56:6601'
18
18
 
19
19
  # 外网 地址
20
- # endpoint = 'http://82.157.231.254:6001'
20
+ endpoint = 'http://82.157.231.254:6001'
21
21
 
22
22
  Authorization = 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJlbGVjdHJpY2l0eS1wbGF0Zm9ybSIsInN1YiI6IjEyMyIsImlhdCI6MTc0NjYwNjQ4NSwianRpIjoiMTIzXzE3NDY1Nzc2ODUxNDYiLCJ0eXBlIjoiYWNjZXNzIn0.Clrz_8j3aJlXTWPX-4DS0NxXN9idTcUIc0AtXOMIjd8'
23
23
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ep_sdk_4pd
3
- Version: 1.0.3
3
+ Version: 1.0.5
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.3'
11
+ VERSION = '1.0.5'
12
12
  REQUIRES = ['requests']
13
13
 
14
14
  LONG_DESCRIPTION = ''
@@ -4,7 +4,7 @@ from ep_sdk_4pd.ep_data import EpData
4
4
  def test_history_data():
5
5
  print('-------------test_history_data-------------')
6
6
 
7
- data = EpData.get_history_data(scope="weather", days=2)
7
+ data = EpData.get_history_data(days=2)
8
8
  print(data)
9
9
  print('-------------------------------------')
10
10
 
@@ -1 +0,0 @@
1
- __version__ = '1.0.3'
File without changes
File without changes