ibm-appconfiguration-python-sdk 0.3.3__tar.gz → 0.3.4__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.4}/PKG-INFO +4 -4
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/ibm_appconfiguration/configurations/internal/utils/socket.py +4 -4
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/ibm_appconfiguration/version.py +1 -1
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4/ibm_appconfiguration_python_sdk.egg-info}/PKG-INFO +4 -4
- ibm_appconfiguration_python_sdk-0.3.4/ibm_appconfiguration_python_sdk.egg-info/requires.txt +7 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/setup.py +4 -4
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/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.4}/LICENSE +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/README.md +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/examples/__init__.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/examples/sample_app.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/examples/server_sample.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/ibm_appconfiguration/__init__.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/ibm_appconfiguration/appconfiguration.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/ibm_appconfiguration/configurations/__init__.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/ibm_appconfiguration/configurations/configuration_handler.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/ibm_appconfiguration/configurations/internal/__init__.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/ibm_appconfiguration/configurations/internal/common/__init__.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/ibm_appconfiguration/configurations/internal/common/config_constants.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/ibm_appconfiguration/configurations/internal/common/config_messages.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/ibm_appconfiguration/configurations/internal/utils/__init__.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/ibm_appconfiguration/configurations/internal/utils/api_manager.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/ibm_appconfiguration/configurations/internal/utils/compute_percentage.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/ibm_appconfiguration/configurations/internal/utils/connectivity.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/ibm_appconfiguration/configurations/internal/utils/file_manager.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/ibm_appconfiguration/configurations/internal/utils/logger.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/ibm_appconfiguration/configurations/internal/utils/metering.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/ibm_appconfiguration/configurations/internal/utils/url_builder.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/ibm_appconfiguration/configurations/internal/utils/validators.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/ibm_appconfiguration/configurations/models/__init__.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/ibm_appconfiguration/configurations/models/configuration_type.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/ibm_appconfiguration/configurations/models/feature.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/ibm_appconfiguration/configurations/models/property.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/ibm_appconfiguration/configurations/models/rule.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/ibm_appconfiguration/configurations/models/segment.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/ibm_appconfiguration/configurations/models/segment_rules.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/ibm_appconfiguration_python_sdk.egg-info/SOURCES.txt +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/ibm_appconfiguration_python_sdk.egg-info/dependency_links.txt +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/ibm_appconfiguration_python_sdk.egg-info/top_level.txt +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/integration_tests/__init__.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/integration_tests/test_integration.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/setup.cfg +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/unit_tests/__init__.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/unit_tests/configurations/__init__.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/unit_tests/configurations/models/__init__.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/unit_tests/configurations/models/test_feature.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/unit_tests/configurations/models/test_property.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/unit_tests/configurations/models/test_rule.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/unit_tests/configurations/models/test_segment.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/unit_tests/configurations/models/test_segment_rules.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/unit_tests/configurations/test_configuration_handler.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/unit_tests/configurations/utils/__init__.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/unit_tests/configurations/utils/test_api_manager.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/unit_tests/configurations/utils/test_file_manager.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/unit_tests/configurations/utils/test_metering.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/unit_tests/configurations/utils/test_url_builder.py +0 -0
- {ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/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.4
|
|
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,9 +15,9 @@ 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
23
|
Requires-Dist: mmh3==3.0.0
|
|
@@ -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.4
|
|
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,9 +15,9 @@ 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
23
|
Requires-Dist: mmh3==3.0.0
|
|
@@ -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.4"
|
|
16
16
|
# To install the library, run the following
|
|
17
17
|
#
|
|
18
18
|
# python setup.py install
|
|
@@ -22,9 +22,9 @@ 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
30
|
"mmh3==3.0.0"
|
|
@@ -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
|
|
File without changes
|
{ibm-appconfiguration-python-sdk-0.3.3 → ibm_appconfiguration_python_sdk-0.3.4}/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
|