ep-sdk-4pd 4.0.0__tar.gz → 5.0.0__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 (24) hide show
  1. {ep_sdk_4pd-4.0.0 → ep_sdk_4pd-5.0.0}/PKG-INFO +1 -1
  2. ep_sdk_4pd-5.0.0/ep_sdk_4pd/__init__.py +1 -0
  3. {ep_sdk_4pd-4.0.0 → ep_sdk_4pd-5.0.0}/ep_sdk_4pd/ep_data.py +2 -2
  4. {ep_sdk_4pd-4.0.0 → ep_sdk_4pd-5.0.0}/ep_sdk_4pd/ep_system.py +2 -2
  5. {ep_sdk_4pd-4.0.0 → ep_sdk_4pd-5.0.0}/ep_sdk_4pd.egg-info/PKG-INFO +1 -1
  6. {ep_sdk_4pd-4.0.0 → ep_sdk_4pd-5.0.0}/ep_sdk_4pd.egg-info/SOURCES.txt +1 -0
  7. {ep_sdk_4pd-4.0.0 → ep_sdk_4pd-5.0.0}/setup.py +1 -1
  8. ep_sdk_4pd-5.0.0/tests/test_2.py +8 -0
  9. {ep_sdk_4pd-4.0.0 → ep_sdk_4pd-5.0.0}/tests/test_history_data.py +1 -1
  10. {ep_sdk_4pd-4.0.0 → ep_sdk_4pd-5.0.0}/tests/test_predict_data.py +1 -1
  11. ep_sdk_4pd-4.0.0/ep_sdk_4pd/__init__.py +0 -1
  12. {ep_sdk_4pd-4.0.0 → ep_sdk_4pd-5.0.0}/README.md +0 -0
  13. {ep_sdk_4pd-4.0.0 → ep_sdk_4pd-5.0.0}/ep_sdk_4pd/models.py +0 -0
  14. {ep_sdk_4pd-4.0.0 → ep_sdk_4pd-5.0.0}/ep_sdk_4pd.egg-info/dependency_links.txt +0 -0
  15. {ep_sdk_4pd-4.0.0 → ep_sdk_4pd-5.0.0}/ep_sdk_4pd.egg-info/requires.txt +0 -0
  16. {ep_sdk_4pd-4.0.0 → ep_sdk_4pd-5.0.0}/ep_sdk_4pd.egg-info/top_level.txt +0 -0
  17. {ep_sdk_4pd-4.0.0 → ep_sdk_4pd-5.0.0}/setup.cfg +0 -0
  18. {ep_sdk_4pd-4.0.0 → ep_sdk_4pd-5.0.0}/tests/test.py +0 -0
  19. {ep_sdk_4pd-4.0.0 → ep_sdk_4pd-5.0.0}/tests/test_call_train_done.py +0 -0
  20. {ep_sdk_4pd-4.0.0 → ep_sdk_4pd-5.0.0}/tests/test_get_run_strategy.py +0 -0
  21. {ep_sdk_4pd-4.0.0 → ep_sdk_4pd-5.0.0}/tests/test_get_system_date.py +0 -0
  22. {ep_sdk_4pd-4.0.0 → ep_sdk_4pd-5.0.0}/tests/test_model1.py +0 -0
  23. {ep_sdk_4pd-4.0.0 → ep_sdk_4pd-5.0.0}/tests/test_model_output_dir.py +0 -0
  24. {ep_sdk_4pd-4.0.0 → ep_sdk_4pd-5.0.0}/tests/test_/350/212/202/347/202/271/345/235/207/345/200/274_v2.py" +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ep_sdk_4pd
3
- Version: 4.0.0
3
+ Version: 5.0.0
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__ = '5.0.0'
@@ -13,10 +13,10 @@ from ep_sdk_4pd.models import HistoryDataRequest, PredictDataRequest
13
13
  # endpoint = 'http://172.27.88.56:6001'
14
14
 
15
15
  # prod 地址
16
- # endpoint = 'http://172.27.88.56:6601'
16
+ # endpoint = 'http://ep.4pd.io'
17
17
 
18
18
  # 外网 地址
19
- endpoint = 'http://82.157.231.254'
19
+ endpoint = 'http://ep.4paradigm.com'
20
20
 
21
21
  Authorization = 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJlbGVjdHJpY2l0eS1wbGF0Zm9ybSIsInN1YiI6IjEyMyIsImlhdCI6MTc0NjYwNjQ4NSwianRpIjoiMTIzXzE3NDY1Nzc2ODUxNDYiLCJ0eXBlIjoiYWNjZXNzIn0.Clrz_8j3aJlXTWPX-4DS0NxXN9idTcUIc0AtXOMIjd8'
22
22
 
@@ -15,10 +15,10 @@ from ep_sdk_4pd.models import RunStrategyRequest, CallTrainDoneRequest, RsaKeyRe
15
15
  # endpoint = 'http://172.27.88.56:6001'
16
16
 
17
17
  # prod 地址
18
- # endpoint = 'http://172.27.88.56:6601'
18
+ # endpoint = 'http://ep.4pd.io'
19
19
 
20
20
  # 外网 地址
21
- endpoint = 'http://82.157.231.254'
21
+ endpoint = 'http://ep.4paradigm.com'
22
22
 
23
23
  Authorization = 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJlbGVjdHJpY2l0eS1wbGF0Zm9ybSIsInN1YiI6IjEyMyIsImlhdCI6MTc0NjYwNjQ4NSwianRpIjoiMTIzXzE3NDY1Nzc2ODUxNDYiLCJ0eXBlIjoiYWNjZXNzIn0.Clrz_8j3aJlXTWPX-4DS0NxXN9idTcUIc0AtXOMIjd8'
24
24
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ep_sdk_4pd
3
- Version: 4.0.0
3
+ Version: 5.0.0
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
@@ -10,6 +10,7 @@ ep_sdk_4pd.egg-info/dependency_links.txt
10
10
  ep_sdk_4pd.egg-info/requires.txt
11
11
  ep_sdk_4pd.egg-info/top_level.txt
12
12
  tests/test.py
13
+ tests/test_2.py
13
14
  tests/test_call_train_done.py
14
15
  tests/test_get_run_strategy.py
15
16
  tests/test_get_system_date.py
@@ -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 = '4.0.0'
11
+ VERSION = '5.0.0'
12
12
  REQUIRES = ['requests']
13
13
 
14
14
  LONG_DESCRIPTION = ''
@@ -0,0 +1,8 @@
1
+ from ep_sdk_4pd.ep_data import EpData
2
+ from ep_sdk_4pd.ep_system import EpSystem
3
+
4
+ target_date = EpSystem.get_system_date() # 应该需要增加一天表示预测第二天
5
+ plant_forecast_power= EpData.get_predict_data(scope="plant", is_test=True)
6
+ print(plant_forecast_power)
7
+ plant_forecast = [float(item['predicted_power']) for item in plant_forecast_power]
8
+ print(plant_forecast)
@@ -15,7 +15,7 @@ def test_history_data():
15
15
  gap_days = gaps.days
16
16
  print("gap_days:", gap_days)
17
17
 
18
- # data = EpData.get_history_data(scope="market",days=gap_days)
18
+ data = EpData.get_history_data(scope="market",days=gap_days)
19
19
  # print(data)
20
20
  print('-------------------------------------')
21
21
 
@@ -4,7 +4,7 @@ from ep_sdk_4pd.ep_data import EpData
4
4
  def test_predict_data():
5
5
  print('-------------test_predict_data-------------')
6
6
 
7
- data = EpData.get_predict_data(scope="plant,weather",is_test=True)
7
+ data = EpData.get_predict_data(scope="plant,weather,gfs",is_test=True)
8
8
  print(data)
9
9
  if data is None or len(data['plant']) == 0:
10
10
  return print("空空")
@@ -1 +0,0 @@
1
- __version__ = '4.0.0'
File without changes
File without changes
File without changes