ibm-appconfiguration-python-sdk 0.3.3__tar.gz → 0.3.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.
- {ibm-appconfiguration-python-sdk-0.3.3/ibm_appconfiguration_python_sdk.egg-info → ibm_appconfiguration_python_sdk-0.3.5}/PKG-INFO +19 -20
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/README.md +14 -15
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/ibm_appconfiguration/configurations/internal/utils/socket.py +4 -4
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/ibm_appconfiguration/version.py +1 -1
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5/ibm_appconfiguration_python_sdk.egg-info}/PKG-INFO +19 -20
- ibm_appconfiguration_python_sdk-0.3.5/ibm_appconfiguration_python_sdk.egg-info/requires.txt +7 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/setup.py +5 -5
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/unit_tests/configurations/utils/test_socket.py +5 -5
- ibm-appconfiguration-python-sdk-0.3.3/ibm_appconfiguration_python_sdk.egg-info/requires.txt +0 -7
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/LICENSE +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/examples/__init__.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/examples/sample_app.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/examples/server_sample.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/ibm_appconfiguration/__init__.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/ibm_appconfiguration/appconfiguration.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/ibm_appconfiguration/configurations/__init__.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/ibm_appconfiguration/configurations/configuration_handler.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/ibm_appconfiguration/configurations/internal/__init__.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/ibm_appconfiguration/configurations/internal/common/__init__.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/ibm_appconfiguration/configurations/internal/common/config_constants.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/ibm_appconfiguration/configurations/internal/common/config_messages.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/ibm_appconfiguration/configurations/internal/utils/__init__.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/ibm_appconfiguration/configurations/internal/utils/api_manager.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/ibm_appconfiguration/configurations/internal/utils/compute_percentage.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/ibm_appconfiguration/configurations/internal/utils/connectivity.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/ibm_appconfiguration/configurations/internal/utils/file_manager.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/ibm_appconfiguration/configurations/internal/utils/logger.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/ibm_appconfiguration/configurations/internal/utils/metering.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/ibm_appconfiguration/configurations/internal/utils/url_builder.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/ibm_appconfiguration/configurations/internal/utils/validators.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/ibm_appconfiguration/configurations/models/__init__.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/ibm_appconfiguration/configurations/models/configuration_type.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/ibm_appconfiguration/configurations/models/feature.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/ibm_appconfiguration/configurations/models/property.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/ibm_appconfiguration/configurations/models/rule.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/ibm_appconfiguration/configurations/models/segment.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/ibm_appconfiguration/configurations/models/segment_rules.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/ibm_appconfiguration_python_sdk.egg-info/SOURCES.txt +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/ibm_appconfiguration_python_sdk.egg-info/dependency_links.txt +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/ibm_appconfiguration_python_sdk.egg-info/top_level.txt +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/integration_tests/__init__.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/integration_tests/test_integration.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/setup.cfg +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/unit_tests/__init__.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/unit_tests/configurations/__init__.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/unit_tests/configurations/models/__init__.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/unit_tests/configurations/models/test_feature.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/unit_tests/configurations/models/test_property.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/unit_tests/configurations/models/test_rule.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/unit_tests/configurations/models/test_segment.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/unit_tests/configurations/models/test_segment_rules.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/unit_tests/configurations/test_configuration_handler.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/unit_tests/configurations/utils/__init__.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/unit_tests/configurations/utils/test_api_manager.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/unit_tests/configurations/utils/test_file_manager.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/unit_tests/configurations/utils/test_metering.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/unit_tests/configurations/utils/test_url_builder.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/unit_tests/test_appconfiguration.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ibm-appconfiguration-python-sdk
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.5
|
|
4
4
|
Summary: IBM Cloud App Configuration Python SDK
|
|
5
5
|
Home-page: https://github.com/IBM/appconfiguration-python-sdk
|
|
6
6
|
Author: IBM
|
|
@@ -15,12 +15,12 @@ Requires-Python: >=3.0
|
|
|
15
15
|
Description-Content-Type: text/markdown
|
|
16
16
|
License-File: LICENSE
|
|
17
17
|
Requires-Dist: python-dateutil<3.0.0,>=2.8
|
|
18
|
-
Requires-Dist: requests<3.0,>=2.
|
|
19
|
-
Requires-Dist: websocket-client
|
|
20
|
-
Requires-Dist: ibm-cloud-sdk-core<4.0.0,>=3.
|
|
18
|
+
Requires-Dist: requests<3.0,>=2.32.2
|
|
19
|
+
Requires-Dist: websocket-client<2.0.0,>=1.8.0
|
|
20
|
+
Requires-Dist: ibm-cloud-sdk-core<4.0.0,>=3.20.3
|
|
21
21
|
Requires-Dist: pyyaml>=5.4.1
|
|
22
22
|
Requires-Dist: schema>=0.7.5
|
|
23
|
-
Requires-Dist: mmh3==
|
|
23
|
+
Requires-Dist: mmh3==5.0.1
|
|
24
24
|
|
|
25
25
|
# IBM Cloud App Configuration Python server SDK
|
|
26
26
|
|
|
@@ -173,14 +173,14 @@ Use the `feature.get_current_value(entity_id=entity_id, entity_attributes=entity
|
|
|
173
173
|
value of the feature flag. This method returns one of the Enabled/Disabled/Overridden value based on the evaluation. The
|
|
174
174
|
data type of returned value matches that of feature flag.
|
|
175
175
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
176
|
+
```py
|
|
177
|
+
entity_id = "john_doe"
|
|
178
|
+
entity_attributes = {
|
|
179
|
+
'city': 'Bangalore',
|
|
180
|
+
'country': 'India'
|
|
181
|
+
}
|
|
182
|
+
feature_value = feature.get_current_value(entity_id=entity_id, entity_attributes=entity_attributes)
|
|
183
|
+
```
|
|
184
184
|
|
|
185
185
|
- entity_id: Id of the Entity. This will be a string identifier related to the Entity against which the feature is
|
|
186
186
|
evaluated. For example, an entity might be an instance of an app that runs on a mobile device, a microservice that
|
|
@@ -214,14 +214,14 @@ Use the `property.get_current_value(entity_id=entity_id, entity_attributes=entit
|
|
|
214
214
|
value of the property. This method returns the default property value or its overridden value based on the evaluation.
|
|
215
215
|
The data type of returned value matches that of property.
|
|
216
216
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
217
|
+
```py
|
|
218
|
+
entity_id = "john_doe"
|
|
219
|
+
entity_attributes = {
|
|
220
220
|
'city': 'Bangalore',
|
|
221
221
|
'country': 'India'
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
222
|
+
}
|
|
223
|
+
property_value = property.get_current_value(entity_id=entity_id, entity_attributes=entity_attributes)
|
|
224
|
+
```
|
|
225
225
|
|
|
226
226
|
- entity_id: Id of the Entity. This will be a string identifier related to the Entity against which the property is
|
|
227
227
|
evaluated. For example, an entity might be an instance of an app that runs on a mobile device, a microservice that
|
|
@@ -348,7 +348,6 @@ def configuration_update(self):
|
|
|
348
348
|
# new_value = feature.get_current_value(entity_id, entity_attributes)
|
|
349
349
|
|
|
350
350
|
appconfig_client.register_configuration_update_listener(configuration_update)
|
|
351
|
-
|
|
352
351
|
```
|
|
353
352
|
|
|
354
353
|
## Fetch latest data
|
|
@@ -149,14 +149,14 @@ Use the `feature.get_current_value(entity_id=entity_id, entity_attributes=entity
|
|
|
149
149
|
value of the feature flag. This method returns one of the Enabled/Disabled/Overridden value based on the evaluation. The
|
|
150
150
|
data type of returned value matches that of feature flag.
|
|
151
151
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
152
|
+
```py
|
|
153
|
+
entity_id = "john_doe"
|
|
154
|
+
entity_attributes = {
|
|
155
|
+
'city': 'Bangalore',
|
|
156
|
+
'country': 'India'
|
|
157
|
+
}
|
|
158
|
+
feature_value = feature.get_current_value(entity_id=entity_id, entity_attributes=entity_attributes)
|
|
159
|
+
```
|
|
160
160
|
|
|
161
161
|
- entity_id: Id of the Entity. This will be a string identifier related to the Entity against which the feature is
|
|
162
162
|
evaluated. For example, an entity might be an instance of an app that runs on a mobile device, a microservice that
|
|
@@ -190,14 +190,14 @@ Use the `property.get_current_value(entity_id=entity_id, entity_attributes=entit
|
|
|
190
190
|
value of the property. This method returns the default property value or its overridden value based on the evaluation.
|
|
191
191
|
The data type of returned value matches that of property.
|
|
192
192
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
193
|
+
```py
|
|
194
|
+
entity_id = "john_doe"
|
|
195
|
+
entity_attributes = {
|
|
196
196
|
'city': 'Bangalore',
|
|
197
197
|
'country': 'India'
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
198
|
+
}
|
|
199
|
+
property_value = property.get_current_value(entity_id=entity_id, entity_attributes=entity_attributes)
|
|
200
|
+
```
|
|
201
201
|
|
|
202
202
|
- entity_id: Id of the Entity. This will be a string identifier related to the Entity against which the property is
|
|
203
203
|
evaluated. For example, an entity might be an instance of an app that runs on a mobile device, a microservice that
|
|
@@ -324,7 +324,6 @@ def configuration_update(self):
|
|
|
324
324
|
# new_value = feature.get_current_value(entity_id, entity_attributes)
|
|
325
325
|
|
|
326
326
|
appconfig_client.register_configuration_update_listener(configuration_update)
|
|
327
|
-
|
|
328
327
|
```
|
|
329
328
|
|
|
330
329
|
## Fetch latest data
|
|
@@ -44,7 +44,7 @@ class Socket:
|
|
|
44
44
|
)
|
|
45
45
|
self.ws_client.run_forever(sslopt={"cert_reqs": ssl.CERT_NONE})
|
|
46
46
|
|
|
47
|
-
def on_message(self, message):
|
|
47
|
+
def on_message(self, _, message):
|
|
48
48
|
"""Socket on-message
|
|
49
49
|
|
|
50
50
|
Args:
|
|
@@ -54,7 +54,7 @@ class Socket:
|
|
|
54
54
|
return
|
|
55
55
|
self.__callback(message=message)
|
|
56
56
|
|
|
57
|
-
def on_error(self, error):
|
|
57
|
+
def on_error(self, _, error):
|
|
58
58
|
"""Socket on-error
|
|
59
59
|
|
|
60
60
|
Args:
|
|
@@ -63,11 +63,11 @@ class Socket:
|
|
|
63
63
|
self.__callback(error_state=error)
|
|
64
64
|
self.ws_client.close()
|
|
65
65
|
|
|
66
|
-
def on_close(self):
|
|
66
|
+
def on_close(self, _, close_status_code, close_msg):
|
|
67
67
|
"""Socket on-close call"""
|
|
68
68
|
self.__callback(closed_state='Closed the web_socket')
|
|
69
69
|
|
|
70
|
-
def on_open(self):
|
|
70
|
+
def on_open(self, _):
|
|
71
71
|
"""Socket on-open call"""
|
|
72
72
|
self.__callback(open_state='Opened the web_socket')
|
|
73
73
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ibm-appconfiguration-python-sdk
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.5
|
|
4
4
|
Summary: IBM Cloud App Configuration Python SDK
|
|
5
5
|
Home-page: https://github.com/IBM/appconfiguration-python-sdk
|
|
6
6
|
Author: IBM
|
|
@@ -15,12 +15,12 @@ Requires-Python: >=3.0
|
|
|
15
15
|
Description-Content-Type: text/markdown
|
|
16
16
|
License-File: LICENSE
|
|
17
17
|
Requires-Dist: python-dateutil<3.0.0,>=2.8
|
|
18
|
-
Requires-Dist: requests<3.0,>=2.
|
|
19
|
-
Requires-Dist: websocket-client
|
|
20
|
-
Requires-Dist: ibm-cloud-sdk-core<4.0.0,>=3.
|
|
18
|
+
Requires-Dist: requests<3.0,>=2.32.2
|
|
19
|
+
Requires-Dist: websocket-client<2.0.0,>=1.8.0
|
|
20
|
+
Requires-Dist: ibm-cloud-sdk-core<4.0.0,>=3.20.3
|
|
21
21
|
Requires-Dist: pyyaml>=5.4.1
|
|
22
22
|
Requires-Dist: schema>=0.7.5
|
|
23
|
-
Requires-Dist: mmh3==
|
|
23
|
+
Requires-Dist: mmh3==5.0.1
|
|
24
24
|
|
|
25
25
|
# IBM Cloud App Configuration Python server SDK
|
|
26
26
|
|
|
@@ -173,14 +173,14 @@ Use the `feature.get_current_value(entity_id=entity_id, entity_attributes=entity
|
|
|
173
173
|
value of the feature flag. This method returns one of the Enabled/Disabled/Overridden value based on the evaluation. The
|
|
174
174
|
data type of returned value matches that of feature flag.
|
|
175
175
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
176
|
+
```py
|
|
177
|
+
entity_id = "john_doe"
|
|
178
|
+
entity_attributes = {
|
|
179
|
+
'city': 'Bangalore',
|
|
180
|
+
'country': 'India'
|
|
181
|
+
}
|
|
182
|
+
feature_value = feature.get_current_value(entity_id=entity_id, entity_attributes=entity_attributes)
|
|
183
|
+
```
|
|
184
184
|
|
|
185
185
|
- entity_id: Id of the Entity. This will be a string identifier related to the Entity against which the feature is
|
|
186
186
|
evaluated. For example, an entity might be an instance of an app that runs on a mobile device, a microservice that
|
|
@@ -214,14 +214,14 @@ Use the `property.get_current_value(entity_id=entity_id, entity_attributes=entit
|
|
|
214
214
|
value of the property. This method returns the default property value or its overridden value based on the evaluation.
|
|
215
215
|
The data type of returned value matches that of property.
|
|
216
216
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
217
|
+
```py
|
|
218
|
+
entity_id = "john_doe"
|
|
219
|
+
entity_attributes = {
|
|
220
220
|
'city': 'Bangalore',
|
|
221
221
|
'country': 'India'
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
222
|
+
}
|
|
223
|
+
property_value = property.get_current_value(entity_id=entity_id, entity_attributes=entity_attributes)
|
|
224
|
+
```
|
|
225
225
|
|
|
226
226
|
- entity_id: Id of the Entity. This will be a string identifier related to the Entity against which the property is
|
|
227
227
|
evaluated. For example, an entity might be an instance of an app that runs on a mobile device, a microservice that
|
|
@@ -348,7 +348,6 @@ def configuration_update(self):
|
|
|
348
348
|
# new_value = feature.get_current_value(entity_id, entity_attributes)
|
|
349
349
|
|
|
350
350
|
appconfig_client.register_configuration_update_listener(configuration_update)
|
|
351
|
-
|
|
352
351
|
```
|
|
353
352
|
|
|
354
353
|
## Fetch latest data
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
from setuptools import setup, find_packages
|
|
13
13
|
|
|
14
14
|
NAME = "ibm-appconfiguration-python-sdk"
|
|
15
|
-
VERSION = "0.3.
|
|
15
|
+
VERSION = "0.3.5"
|
|
16
16
|
# To install the library, run the following
|
|
17
17
|
#
|
|
18
18
|
# python setup.py install
|
|
@@ -22,12 +22,12 @@ VERSION = "0.3.3"
|
|
|
22
22
|
|
|
23
23
|
REQUIRES = [
|
|
24
24
|
"python-dateutil>=2.8,<3.0.0",
|
|
25
|
-
"requests>=2.
|
|
26
|
-
"websocket-client
|
|
27
|
-
"ibm-cloud-sdk-core>=3.
|
|
25
|
+
"requests>=2.32.2,<3.0",
|
|
26
|
+
"websocket-client>=1.8.0,<2.0.0",
|
|
27
|
+
"ibm-cloud-sdk-core>=3.20.3,<4.0.0",
|
|
28
28
|
"pyyaml>=5.4.1",
|
|
29
29
|
"schema>=0.7.5",
|
|
30
|
-
"mmh3==
|
|
30
|
+
"mmh3==5.0.1"
|
|
31
31
|
]
|
|
32
32
|
with open("README.md", "r", encoding="utf-8") as fh:
|
|
33
33
|
long_description = fh.read()
|
|
@@ -32,23 +32,23 @@ class MyTestCase(unittest.TestCase):
|
|
|
32
32
|
def test_socket(self):
|
|
33
33
|
self.__socket = Socket()
|
|
34
34
|
self.__socket.setup(
|
|
35
|
-
url="",
|
|
35
|
+
url="ws://testurl.com",
|
|
36
36
|
headers=[],
|
|
37
37
|
callback=self.callback
|
|
38
38
|
)
|
|
39
39
|
|
|
40
40
|
self.assertIsNotNone(self.__socket)
|
|
41
41
|
|
|
42
|
-
self.__socket.on_message("Socket message")
|
|
42
|
+
self.__socket.on_message(self.__socket.ws_client,"Socket message")
|
|
43
43
|
self.assertEqual(self.expected_message, "Socket message")
|
|
44
44
|
|
|
45
|
-
self.__socket.on_error("Error message")
|
|
45
|
+
self.__socket.on_error(self.__socket.ws_client, "Error message")
|
|
46
46
|
self.assertEqual(self.expected_error, "Error message")
|
|
47
47
|
|
|
48
|
-
self.__socket.on_open()
|
|
48
|
+
self.__socket.on_open(self.__socket.ws_client)
|
|
49
49
|
self.assertEqual(self.expected_open_state, "Opened the web_socket")
|
|
50
50
|
|
|
51
|
-
self.__socket.on_close()
|
|
51
|
+
self.__socket.on_close(self.__socket.ws_client, 1000, "normal closure")
|
|
52
52
|
self.assertEqual(self.expected_closed_state, "Closed the web_socket")
|
|
53
53
|
|
|
54
54
|
|
|
File without changes
|
{ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.5}/examples/__init__.py
RENAMED
|
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
|