ep-sdk-4pd 1.0.0__tar.gz → 1.0.1__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.
- {ep_sdk_4pd-1.0.0 → ep_sdk_4pd-1.0.1}/PKG-INFO +1 -1
- ep_sdk_4pd-1.0.1/ep_sdk_4pd/__init__.py +1 -0
- {ep_sdk_4pd-1.0.0 → ep_sdk_4pd-1.0.1}/ep_sdk_4pd/ep_data.py +4 -0
- {ep_sdk_4pd-1.0.0 → ep_sdk_4pd-1.0.1}/ep_sdk_4pd/ep_system.py +6 -0
- {ep_sdk_4pd-1.0.0 → ep_sdk_4pd-1.0.1}/ep_sdk_4pd.egg-info/PKG-INFO +1 -1
- {ep_sdk_4pd-1.0.0 → ep_sdk_4pd-1.0.1}/setup.py +1 -1
- ep_sdk_4pd-1.0.0/ep_sdk_4pd/__init__.py +0 -1
- {ep_sdk_4pd-1.0.0 → ep_sdk_4pd-1.0.1}/README.md +0 -0
- {ep_sdk_4pd-1.0.0 → ep_sdk_4pd-1.0.1}/ep_sdk_4pd/models.py +0 -0
- {ep_sdk_4pd-1.0.0 → ep_sdk_4pd-1.0.1}/ep_sdk_4pd.egg-info/SOURCES.txt +0 -0
- {ep_sdk_4pd-1.0.0 → ep_sdk_4pd-1.0.1}/ep_sdk_4pd.egg-info/dependency_links.txt +0 -0
- {ep_sdk_4pd-1.0.0 → ep_sdk_4pd-1.0.1}/ep_sdk_4pd.egg-info/requires.txt +0 -0
- {ep_sdk_4pd-1.0.0 → ep_sdk_4pd-1.0.1}/ep_sdk_4pd.egg-info/top_level.txt +0 -0
- {ep_sdk_4pd-1.0.0 → ep_sdk_4pd-1.0.1}/setup.cfg +0 -0
- {ep_sdk_4pd-1.0.0 → ep_sdk_4pd-1.0.1}/tests/test_call_train_done.py +0 -0
- {ep_sdk_4pd-1.0.0 → ep_sdk_4pd-1.0.1}/tests/test_get_run_strategy.py +0 -0
- {ep_sdk_4pd-1.0.0 → ep_sdk_4pd-1.0.1}/tests/test_get_system_date.py +0 -0
- {ep_sdk_4pd-1.0.0 → ep_sdk_4pd-1.0.1}/tests/test_history_data.py +0 -0
- {ep_sdk_4pd-1.0.0 → ep_sdk_4pd-1.0.1}/tests/test_model_output_dir.py +0 -0
- {ep_sdk_4pd-1.0.0 → ep_sdk_4pd-1.0.1}/tests/test_predict_data.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: ep_sdk_4pd
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.1
|
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.1'
|
@@ -14,6 +14,8 @@ from ep_sdk_4pd.models import HistoryDataRequest, PredictDataRequest
|
|
14
14
|
# prod 地址
|
15
15
|
endpoint = 'http://172.27.88.56:6601'
|
16
16
|
|
17
|
+
Authorization = 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJlbGVjdHJpY2l0eS1wbGF0Zm9ybSIsInN1YiI6IjEyMyIsImlhdCI6MTc0NjYwNjQ4NSwianRpIjoiMTIzXzE3NDY1Nzc2ODUxNDYiLCJ0eXBlIjoiYWNjZXNzIn0.Clrz_8j3aJlXTWPX-4DS0NxXN9idTcUIc0AtXOMIjd8'
|
18
|
+
|
17
19
|
class EpData:
|
18
20
|
|
19
21
|
@staticmethod
|
@@ -46,6 +48,7 @@ class EpData:
|
|
46
48
|
full_url = f'{endpoint}{request.api}'
|
47
49
|
headers = {
|
48
50
|
'content-type': request.content_type,
|
51
|
+
'Authorization': Authorization
|
49
52
|
}
|
50
53
|
|
51
54
|
payload = {
|
@@ -101,6 +104,7 @@ class EpData:
|
|
101
104
|
full_url = f'{endpoint}{request.api}'
|
102
105
|
headers = {
|
103
106
|
'content-type': request.content_type,
|
107
|
+
'Authorization': Authorization
|
104
108
|
}
|
105
109
|
|
106
110
|
payload = {
|
@@ -16,6 +16,9 @@ from ep_sdk_4pd.models import ModelOutputDirRequest, RunStrategyRequest, CallTra
|
|
16
16
|
# prod 地址
|
17
17
|
endpoint = 'http://172.27.88.56:6601'
|
18
18
|
|
19
|
+
Authorization = 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJlbGVjdHJpY2l0eS1wbGF0Zm9ybSIsInN1YiI6IjEyMyIsImlhdCI6MTc0NjYwNjQ4NSwianRpIjoiMTIzXzE3NDY1Nzc2ODUxNDYiLCJ0eXBlIjoiYWNjZXNzIn0.Clrz_8j3aJlXTWPX-4DS0NxXN9idTcUIc0AtXOMIjd8'
|
20
|
+
|
21
|
+
|
19
22
|
class EpSystem:
|
20
23
|
|
21
24
|
@staticmethod
|
@@ -34,6 +37,7 @@ class EpSystem:
|
|
34
37
|
full_url = f'{endpoint}{request.api}'
|
35
38
|
headers = {
|
36
39
|
'content-type': request.content_type,
|
40
|
+
'Authorization': Authorization
|
37
41
|
}
|
38
42
|
|
39
43
|
payload = {
|
@@ -95,6 +99,7 @@ class EpSystem:
|
|
95
99
|
full_url = f'{endpoint}{request.api}'
|
96
100
|
headers = {
|
97
101
|
'content-type': request.content_type,
|
102
|
+
'Authorization': Authorization
|
98
103
|
}
|
99
104
|
|
100
105
|
payload = {
|
@@ -134,6 +139,7 @@ class EpSystem:
|
|
134
139
|
full_url = f'{endpoint}{request.api}'
|
135
140
|
headers = {
|
136
141
|
'content-type': request.content_type,
|
142
|
+
'Authorization': Authorization
|
137
143
|
}
|
138
144
|
|
139
145
|
payload = {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: ep_sdk_4pd
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.1
|
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.
|
11
|
+
VERSION = '1.0.1'
|
12
12
|
REQUIRES = ['requests']
|
13
13
|
|
14
14
|
LONG_DESCRIPTION = ''
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = '1.0.0'
|
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
|