ibm-cloud-sdk-core 3.20.4__tar.gz → 3.20.6__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_cloud_sdk_core-3.20.6/MANIFEST.in +1 -0
- {ibm-cloud-sdk-core-3.20.4/ibm_cloud_sdk_core.egg-info → ibm_cloud_sdk_core-3.20.6}/PKG-INFO +27 -9
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/README.md +1 -1
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/ibm_cloud_sdk_core/authenticators/cp4d_authenticator.py +1 -1
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/ibm_cloud_sdk_core/authenticators/iam_authenticator.py +1 -1
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/ibm_cloud_sdk_core/base_service.py +2 -2
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/ibm_cloud_sdk_core/detailed_response.py +1 -1
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/ibm_cloud_sdk_core/token_managers/cp4d_token_manager.py +1 -1
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/ibm_cloud_sdk_core/token_managers/iam_token_manager.py +1 -1
- ibm_cloud_sdk_core-3.20.6/ibm_cloud_sdk_core/version.py +1 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6/ibm_cloud_sdk_core.egg-info}/PKG-INFO +27 -9
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/ibm_cloud_sdk_core.egg-info/SOURCES.txt +1 -10
- ibm_cloud_sdk_core-3.20.6/ibm_cloud_sdk_core.egg-info/requires.txt +16 -0
- ibm_cloud_sdk_core-3.20.6/ibm_cloud_sdk_core.egg-info/top_level.txt +1 -0
- ibm_cloud_sdk_core-3.20.6/pyproject.toml +66 -0
- ibm-cloud-sdk-core-3.20.4/MANIFEST.in +0 -3
- ibm-cloud-sdk-core-3.20.4/ibm_cloud_sdk_core/version.py +0 -1
- ibm-cloud-sdk-core-3.20.4/ibm_cloud_sdk_core.egg-info/requires.txt +0 -4
- ibm-cloud-sdk-core-3.20.4/ibm_cloud_sdk_core.egg-info/top_level.txt +0 -3
- ibm-cloud-sdk-core-3.20.4/ibm_cloud_sdk_core.egg-info/zip-safe +0 -1
- ibm-cloud-sdk-core-3.20.4/pyproject.toml +0 -3
- ibm-cloud-sdk-core-3.20.4/requirements-dev.txt +0 -6
- ibm-cloud-sdk-core-3.20.4/requirements.txt +0 -4
- ibm-cloud-sdk-core-3.20.4/setup.py +0 -71
- ibm-cloud-sdk-core-3.20.4/test/__init__.py +0 -0
- ibm-cloud-sdk-core-3.20.4/test_integration/__init__.py +0 -0
- ibm-cloud-sdk-core-3.20.4/test_integration/test_cp4d_authenticator_integration.py +0 -43
- ibm-cloud-sdk-core-3.20.4/test_integration/test_iam_authenticator_integration.py +0 -28
- ibm-cloud-sdk-core-3.20.4/test_integration/test_mcsp_authenticator_integration.py +0 -28
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/LICENSE +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/ibm_cloud_sdk_core/__init__.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/ibm_cloud_sdk_core/api_exception.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/ibm_cloud_sdk_core/authenticators/__init__.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/ibm_cloud_sdk_core/authenticators/authenticator.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/ibm_cloud_sdk_core/authenticators/basic_authenticator.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/ibm_cloud_sdk_core/authenticators/bearer_token_authenticator.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/ibm_cloud_sdk_core/authenticators/container_authenticator.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/ibm_cloud_sdk_core/authenticators/iam_request_based_authenticator.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/ibm_cloud_sdk_core/authenticators/mcsp_authenticator.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/ibm_cloud_sdk_core/authenticators/no_auth_authenticator.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/ibm_cloud_sdk_core/authenticators/vpc_instance_authenticator.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/ibm_cloud_sdk_core/get_authenticator.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/ibm_cloud_sdk_core/http_adapter.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/ibm_cloud_sdk_core/private_helpers.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/ibm_cloud_sdk_core/token_managers/__init__.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/ibm_cloud_sdk_core/token_managers/container_token_manager.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/ibm_cloud_sdk_core/token_managers/iam_request_based_token_manager.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/ibm_cloud_sdk_core/token_managers/jwt_token_manager.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/ibm_cloud_sdk_core/token_managers/mcsp_token_manager.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/ibm_cloud_sdk_core/token_managers/token_manager.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/ibm_cloud_sdk_core/token_managers/vpc_instance_token_manager.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/ibm_cloud_sdk_core/utils.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/ibm_cloud_sdk_core.egg-info/dependency_links.txt +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/setup.cfg +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/test/test_api_exception.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/test/test_authenticator.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/test/test_base_service.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/test/test_basic_authenticator.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/test/test_bearer_authenticator.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/test/test_container_authenticator.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/test/test_container_token_manager.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/test/test_cp4d_authenticator.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/test/test_cp4d_token_manager.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/test/test_detailed_response.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/test/test_http_adapter.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/test/test_iam_authenticator.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/test/test_iam_token_manager.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/test/test_jwt_token_manager.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/test/test_mcsp_authenticator.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/test/test_mcsp_token_manager.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/test/test_no_auth_authenticator.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/test/test_token_manager.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/test/test_utils.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/test/test_vpc_instance_authenticator.py +0 -0
- {ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/test/test_vpc_instance_token_manager.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
include LICENSE
|
{ibm-cloud-sdk-core-3.20.4/ibm_cloud_sdk_core.egg-info → ibm_cloud_sdk_core-3.20.6}/PKG-INFO
RENAMED
|
@@ -1,27 +1,47 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ibm-cloud-sdk-core
|
|
3
|
-
Version: 3.20.
|
|
3
|
+
Version: 3.20.6
|
|
4
4
|
Summary: Core library used by SDKs for IBM Cloud Services
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
Author-email: IBM <devxsdk@us.ibm.com>
|
|
6
|
+
Project-URL: Repository, https://github.com/IBM/python-sdk-core
|
|
7
|
+
Project-URL: Documentation, https://github.com/IBM/python-sdk-core/blob/main/README.md
|
|
8
|
+
Project-URL: Issues, https://github.com/IBM/python-sdk-core/issues
|
|
9
|
+
Project-URL: Changelog, https://github.com/IBM/python-sdk-core/blob/main/CHANGELOG.md
|
|
10
|
+
Project-URL: Contributing, https://github.com/IBM/python-sdk-core/blob/main/CONTRIBUTING.md
|
|
11
|
+
Project-URL: License, https://github.com/IBM/python-sdk-core/blob/main/LICENSE
|
|
9
12
|
Keywords: ibm,cloud,ibm cloud services
|
|
10
|
-
Platform: UNKNOWN
|
|
11
13
|
Classifier: Programming Language :: Python
|
|
12
14
|
Classifier: Programming Language :: Python :: 3
|
|
13
15
|
Classifier: Programming Language :: Python :: 3.8
|
|
14
16
|
Classifier: Programming Language :: Python :: 3.9
|
|
15
17
|
Classifier: Programming Language :: Python :: 3.10
|
|
16
18
|
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
20
|
Classifier: Development Status :: 5 - Production/Stable
|
|
21
|
+
Classifier: Environment :: Console
|
|
18
22
|
Classifier: Intended Audience :: Developers
|
|
19
23
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
20
24
|
Classifier: Operating System :: OS Independent
|
|
25
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
21
26
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
22
27
|
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
|
|
28
|
+
Requires-Python: >=3.8
|
|
23
29
|
Description-Content-Type: text/markdown
|
|
24
30
|
License-File: LICENSE
|
|
31
|
+
Requires-Dist: requests<3.0.0,>=2.31.0
|
|
32
|
+
Requires-Dist: urllib3<3.0.0,>=2.1.0
|
|
33
|
+
Requires-Dist: python_dateutil<3.0.0,>=2.8.2
|
|
34
|
+
Requires-Dist: PyJWT<3.0.0,>=2.8.0
|
|
35
|
+
Provides-Extra: dev
|
|
36
|
+
Requires-Dist: coverage<8.0.0,>=7.3.2; extra == "dev"
|
|
37
|
+
Requires-Dist: pylint<4.0.0,>=3.0.0; extra == "dev"
|
|
38
|
+
Requires-Dist: pytest<8.0.0,>=7.4.2; extra == "dev"
|
|
39
|
+
Requires-Dist: pytest-cov<5.0.0,>=4.1.0; extra == "dev"
|
|
40
|
+
Requires-Dist: responses<1.0.0,>=0.23.3; extra == "dev"
|
|
41
|
+
Requires-Dist: black<25.0.0,>=24.0.0; extra == "dev"
|
|
42
|
+
Provides-Extra: publish
|
|
43
|
+
Requires-Dist: build; extra == "publish"
|
|
44
|
+
Requires-Dist: twine; extra == "publish"
|
|
25
45
|
|
|
26
46
|
[](https://app.travis-ci.com/IBM/python-sdk-core)
|
|
27
47
|
[](https://pypi.org/project/ibm-cloud-sdk-core/)
|
|
@@ -29,7 +49,7 @@ License-File: LICENSE
|
|
|
29
49
|
[](https://cla-assistant.io/ibm/python-sdk-core)
|
|
30
50
|
[](https://github.com/semantic-release/semantic-release)
|
|
31
51
|
|
|
32
|
-
# IBM Python SDK Core Version 3.20.
|
|
52
|
+
# IBM Python SDK Core Version 3.20.6
|
|
33
53
|
This project contains core functionality required by Python code generated by the IBM Cloud OpenAPI SDK Generator
|
|
34
54
|
(openapi-sdkgen).
|
|
35
55
|
|
|
@@ -102,5 +122,3 @@ available in [LICENSE](LICENSE).
|
|
|
102
122
|
## Contributing
|
|
103
123
|
|
|
104
124
|
See [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
105
|
-
|
|
106
|
-
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
[](https://cla-assistant.io/ibm/python-sdk-core)
|
|
5
5
|
[](https://github.com/semantic-release/semantic-release)
|
|
6
6
|
|
|
7
|
-
# IBM Python SDK Core Version 3.20.
|
|
7
|
+
# IBM Python SDK Core Version 3.20.6
|
|
8
8
|
This project contains core functionality required by Python code generated by the IBM Cloud OpenAPI SDK Generator
|
|
9
9
|
(openapi-sdkgen).
|
|
10
10
|
|
|
@@ -62,7 +62,7 @@ class CloudPakForDataAuthenticator(Authenticator):
|
|
|
62
62
|
disable_ssl_verification: bool = False,
|
|
63
63
|
headers: Optional[Dict[str, str]] = None,
|
|
64
64
|
proxies: Optional[Dict[str, str]] = None,
|
|
65
|
-
verify: Optional[str] = None
|
|
65
|
+
verify: Optional[str] = None,
|
|
66
66
|
) -> None:
|
|
67
67
|
# Check the type of `disable_ssl_verification`. Must be a bool.
|
|
68
68
|
if not isinstance(disable_ssl_verification, bool):
|
|
@@ -66,7 +66,7 @@ class IAMAuthenticator(IAMRequestBasedAuthenticator):
|
|
|
66
66
|
disable_ssl_verification: bool = False,
|
|
67
67
|
headers: Optional[Dict[str, str]] = None,
|
|
68
68
|
proxies: Optional[Dict[str, str]] = None,
|
|
69
|
-
scope: Optional[str] = None
|
|
69
|
+
scope: Optional[str] = None,
|
|
70
70
|
) -> None:
|
|
71
71
|
# Check the type of `disable_ssl_verification`. Must be a bool.
|
|
72
72
|
if not isinstance(disable_ssl_verification, bool):
|
|
@@ -94,7 +94,7 @@ class BaseService:
|
|
|
94
94
|
service_url: str = None,
|
|
95
95
|
authenticator: Authenticator = None,
|
|
96
96
|
disable_ssl_verification: bool = False,
|
|
97
|
-
enable_gzip_compression: bool = False
|
|
97
|
+
enable_gzip_compression: bool = False,
|
|
98
98
|
) -> None:
|
|
99
99
|
self.set_service_url(service_url)
|
|
100
100
|
self.http_client = requests.Session()
|
|
@@ -364,7 +364,7 @@ class BaseService:
|
|
|
364
364
|
params: Optional[dict] = None,
|
|
365
365
|
data: Optional[Union[str, dict]] = None,
|
|
366
366
|
files: Optional[Union[Dict[str, Tuple[str]], List[Tuple[str, Tuple[str, ...]]]]] = None,
|
|
367
|
-
**kwargs
|
|
367
|
+
**kwargs,
|
|
368
368
|
) -> dict:
|
|
369
369
|
"""Build a dict that represents an HTTP service request.
|
|
370
370
|
|
{ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/ibm_cloud_sdk_core/detailed_response.py
RENAMED
|
@@ -40,7 +40,7 @@ class DetailedResponse:
|
|
|
40
40
|
*,
|
|
41
41
|
response: Optional[Union[dict, requests.Response]] = None,
|
|
42
42
|
headers: Optional[Dict[str, str]] = None,
|
|
43
|
-
status_code: Optional[int] = None
|
|
43
|
+
status_code: Optional[int] = None,
|
|
44
44
|
) -> None:
|
|
45
45
|
self.result = response
|
|
46
46
|
self.headers = headers
|
|
@@ -63,7 +63,7 @@ class CP4DTokenManager(JWTTokenManager):
|
|
|
63
63
|
disable_ssl_verification: bool = False,
|
|
64
64
|
headers: Optional[Dict[str, str]] = None,
|
|
65
65
|
proxies: Optional[Dict[str, str]] = None,
|
|
66
|
-
verify: Optional[str] = None
|
|
66
|
+
verify: Optional[str] = None,
|
|
67
67
|
) -> None:
|
|
68
68
|
self.username = username
|
|
69
69
|
self.password = password
|
|
@@ -71,7 +71,7 @@ class IAMTokenManager(IAMRequestBasedTokenManager):
|
|
|
71
71
|
disable_ssl_verification: bool = False,
|
|
72
72
|
headers: Optional[Dict[str, str]] = None,
|
|
73
73
|
proxies: Optional[Dict[str, str]] = None,
|
|
74
|
-
scope: Optional[str] = None
|
|
74
|
+
scope: Optional[str] = None,
|
|
75
75
|
) -> None:
|
|
76
76
|
super().__init__(
|
|
77
77
|
url=url,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '3.20.6'
|
{ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6/ibm_cloud_sdk_core.egg-info}/PKG-INFO
RENAMED
|
@@ -1,27 +1,47 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ibm-cloud-sdk-core
|
|
3
|
-
Version: 3.20.
|
|
3
|
+
Version: 3.20.6
|
|
4
4
|
Summary: Core library used by SDKs for IBM Cloud Services
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
Author-email: IBM <devxsdk@us.ibm.com>
|
|
6
|
+
Project-URL: Repository, https://github.com/IBM/python-sdk-core
|
|
7
|
+
Project-URL: Documentation, https://github.com/IBM/python-sdk-core/blob/main/README.md
|
|
8
|
+
Project-URL: Issues, https://github.com/IBM/python-sdk-core/issues
|
|
9
|
+
Project-URL: Changelog, https://github.com/IBM/python-sdk-core/blob/main/CHANGELOG.md
|
|
10
|
+
Project-URL: Contributing, https://github.com/IBM/python-sdk-core/blob/main/CONTRIBUTING.md
|
|
11
|
+
Project-URL: License, https://github.com/IBM/python-sdk-core/blob/main/LICENSE
|
|
9
12
|
Keywords: ibm,cloud,ibm cloud services
|
|
10
|
-
Platform: UNKNOWN
|
|
11
13
|
Classifier: Programming Language :: Python
|
|
12
14
|
Classifier: Programming Language :: Python :: 3
|
|
13
15
|
Classifier: Programming Language :: Python :: 3.8
|
|
14
16
|
Classifier: Programming Language :: Python :: 3.9
|
|
15
17
|
Classifier: Programming Language :: Python :: 3.10
|
|
16
18
|
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
20
|
Classifier: Development Status :: 5 - Production/Stable
|
|
21
|
+
Classifier: Environment :: Console
|
|
18
22
|
Classifier: Intended Audience :: Developers
|
|
19
23
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
20
24
|
Classifier: Operating System :: OS Independent
|
|
25
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
21
26
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
22
27
|
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
|
|
28
|
+
Requires-Python: >=3.8
|
|
23
29
|
Description-Content-Type: text/markdown
|
|
24
30
|
License-File: LICENSE
|
|
31
|
+
Requires-Dist: requests<3.0.0,>=2.31.0
|
|
32
|
+
Requires-Dist: urllib3<3.0.0,>=2.1.0
|
|
33
|
+
Requires-Dist: python_dateutil<3.0.0,>=2.8.2
|
|
34
|
+
Requires-Dist: PyJWT<3.0.0,>=2.8.0
|
|
35
|
+
Provides-Extra: dev
|
|
36
|
+
Requires-Dist: coverage<8.0.0,>=7.3.2; extra == "dev"
|
|
37
|
+
Requires-Dist: pylint<4.0.0,>=3.0.0; extra == "dev"
|
|
38
|
+
Requires-Dist: pytest<8.0.0,>=7.4.2; extra == "dev"
|
|
39
|
+
Requires-Dist: pytest-cov<5.0.0,>=4.1.0; extra == "dev"
|
|
40
|
+
Requires-Dist: responses<1.0.0,>=0.23.3; extra == "dev"
|
|
41
|
+
Requires-Dist: black<25.0.0,>=24.0.0; extra == "dev"
|
|
42
|
+
Provides-Extra: publish
|
|
43
|
+
Requires-Dist: build; extra == "publish"
|
|
44
|
+
Requires-Dist: twine; extra == "publish"
|
|
25
45
|
|
|
26
46
|
[](https://app.travis-ci.com/IBM/python-sdk-core)
|
|
27
47
|
[](https://pypi.org/project/ibm-cloud-sdk-core/)
|
|
@@ -29,7 +49,7 @@ License-File: LICENSE
|
|
|
29
49
|
[](https://cla-assistant.io/ibm/python-sdk-core)
|
|
30
50
|
[](https://github.com/semantic-release/semantic-release)
|
|
31
51
|
|
|
32
|
-
# IBM Python SDK Core Version 3.20.
|
|
52
|
+
# IBM Python SDK Core Version 3.20.6
|
|
33
53
|
This project contains core functionality required by Python code generated by the IBM Cloud OpenAPI SDK Generator
|
|
34
54
|
(openapi-sdkgen).
|
|
35
55
|
|
|
@@ -102,5 +122,3 @@ available in [LICENSE](LICENSE).
|
|
|
102
122
|
## Contributing
|
|
103
123
|
|
|
104
124
|
See [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
105
|
-
|
|
106
|
-
|
{ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/ibm_cloud_sdk_core.egg-info/SOURCES.txt
RENAMED
|
@@ -2,9 +2,6 @@ LICENSE
|
|
|
2
2
|
MANIFEST.in
|
|
3
3
|
README.md
|
|
4
4
|
pyproject.toml
|
|
5
|
-
requirements-dev.txt
|
|
6
|
-
requirements.txt
|
|
7
|
-
setup.py
|
|
8
5
|
ibm_cloud_sdk_core/__init__.py
|
|
9
6
|
ibm_cloud_sdk_core/api_exception.py
|
|
10
7
|
ibm_cloud_sdk_core/base_service.py
|
|
@@ -19,7 +16,6 @@ ibm_cloud_sdk_core.egg-info/SOURCES.txt
|
|
|
19
16
|
ibm_cloud_sdk_core.egg-info/dependency_links.txt
|
|
20
17
|
ibm_cloud_sdk_core.egg-info/requires.txt
|
|
21
18
|
ibm_cloud_sdk_core.egg-info/top_level.txt
|
|
22
|
-
ibm_cloud_sdk_core.egg-info/zip-safe
|
|
23
19
|
ibm_cloud_sdk_core/authenticators/__init__.py
|
|
24
20
|
ibm_cloud_sdk_core/authenticators/authenticator.py
|
|
25
21
|
ibm_cloud_sdk_core/authenticators/basic_authenticator.py
|
|
@@ -40,7 +36,6 @@ ibm_cloud_sdk_core/token_managers/jwt_token_manager.py
|
|
|
40
36
|
ibm_cloud_sdk_core/token_managers/mcsp_token_manager.py
|
|
41
37
|
ibm_cloud_sdk_core/token_managers/token_manager.py
|
|
42
38
|
ibm_cloud_sdk_core/token_managers/vpc_instance_token_manager.py
|
|
43
|
-
test/__init__.py
|
|
44
39
|
test/test_api_exception.py
|
|
45
40
|
test/test_authenticator.py
|
|
46
41
|
test/test_base_service.py
|
|
@@ -61,8 +56,4 @@ test/test_no_auth_authenticator.py
|
|
|
61
56
|
test/test_token_manager.py
|
|
62
57
|
test/test_utils.py
|
|
63
58
|
test/test_vpc_instance_authenticator.py
|
|
64
|
-
test/test_vpc_instance_token_manager.py
|
|
65
|
-
test_integration/__init__.py
|
|
66
|
-
test_integration/test_cp4d_authenticator_integration.py
|
|
67
|
-
test_integration/test_iam_authenticator_integration.py
|
|
68
|
-
test_integration/test_mcsp_authenticator_integration.py
|
|
59
|
+
test/test_vpc_instance_token_manager.py
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
requests<3.0.0,>=2.31.0
|
|
2
|
+
urllib3<3.0.0,>=2.1.0
|
|
3
|
+
python_dateutil<3.0.0,>=2.8.2
|
|
4
|
+
PyJWT<3.0.0,>=2.8.0
|
|
5
|
+
|
|
6
|
+
[dev]
|
|
7
|
+
coverage<8.0.0,>=7.3.2
|
|
8
|
+
pylint<4.0.0,>=3.0.0
|
|
9
|
+
pytest<8.0.0,>=7.4.2
|
|
10
|
+
pytest-cov<5.0.0,>=4.1.0
|
|
11
|
+
responses<1.0.0,>=0.23.3
|
|
12
|
+
black<25.0.0,>=24.0.0
|
|
13
|
+
|
|
14
|
+
[publish]
|
|
15
|
+
build
|
|
16
|
+
twine
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ibm_cloud_sdk_core
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "ibm-cloud-sdk-core"
|
|
3
|
+
version = "3.20.6"
|
|
4
|
+
authors = [
|
|
5
|
+
{ name="IBM", email="devxsdk@us.ibm.com" }
|
|
6
|
+
]
|
|
7
|
+
description = "Core library used by SDKs for IBM Cloud Services"
|
|
8
|
+
readme = "README.md"
|
|
9
|
+
requires-python = ">=3.8"
|
|
10
|
+
classifiers = [
|
|
11
|
+
"Programming Language :: Python",
|
|
12
|
+
"Programming Language :: Python :: 3",
|
|
13
|
+
"Programming Language :: Python :: 3.8",
|
|
14
|
+
"Programming Language :: Python :: 3.9",
|
|
15
|
+
"Programming Language :: Python :: 3.10",
|
|
16
|
+
"Programming Language :: Python :: 3.11",
|
|
17
|
+
"Programming Language :: Python :: 3.12",
|
|
18
|
+
"Development Status :: 5 - Production/Stable",
|
|
19
|
+
"Environment :: Console",
|
|
20
|
+
"Intended Audience :: Developers",
|
|
21
|
+
"License :: OSI Approved :: Apache Software License",
|
|
22
|
+
"Operating System :: OS Independent",
|
|
23
|
+
"Topic :: Software Development :: Libraries",
|
|
24
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
25
|
+
"Topic :: Software Development :: Libraries :: Application Frameworks",
|
|
26
|
+
]
|
|
27
|
+
keywords=["ibm", "cloud", "ibm cloud services"]
|
|
28
|
+
dependencies = [
|
|
29
|
+
"requests>=2.31.0,<3.0.0",
|
|
30
|
+
"urllib3>=2.1.0,<3.0.0",
|
|
31
|
+
"python_dateutil>=2.8.2,<3.0.0",
|
|
32
|
+
"PyJWT>=2.8.0,<3.0.0",
|
|
33
|
+
]
|
|
34
|
+
|
|
35
|
+
[project.urls]
|
|
36
|
+
Repository = "https://github.com/IBM/python-sdk-core"
|
|
37
|
+
Documentation = "https://github.com/IBM/python-sdk-core/blob/main/README.md"
|
|
38
|
+
Issues = "https://github.com/IBM/python-sdk-core/issues"
|
|
39
|
+
Changelog = "https://github.com/IBM/python-sdk-core/blob/main/CHANGELOG.md"
|
|
40
|
+
Contributing = "https://github.com/IBM/python-sdk-core/blob/main/CONTRIBUTING.md"
|
|
41
|
+
License = "https://github.com/IBM/python-sdk-core/blob/main/LICENSE"
|
|
42
|
+
|
|
43
|
+
[project.optional-dependencies]
|
|
44
|
+
dev = [
|
|
45
|
+
"coverage>=7.3.2,<8.0.0",
|
|
46
|
+
"pylint>=3.0.0,<4.0.0",
|
|
47
|
+
"pytest>=7.4.2,<8.0.0",
|
|
48
|
+
"pytest-cov>=4.1.0,<5.0.0",
|
|
49
|
+
"responses>=0.23.3,<1.0.0",
|
|
50
|
+
"black>=24.0.0,<25.0.0",
|
|
51
|
+
]
|
|
52
|
+
publish = [
|
|
53
|
+
"build",
|
|
54
|
+
"twine"
|
|
55
|
+
]
|
|
56
|
+
|
|
57
|
+
[build-system]
|
|
58
|
+
requires = ["setuptools>=67.7.2"]
|
|
59
|
+
build-backend = "setuptools.build_meta"
|
|
60
|
+
|
|
61
|
+
[tool.setuptools]
|
|
62
|
+
packages = ["ibm_cloud_sdk_core", "ibm_cloud_sdk_core.authenticators", "ibm_cloud_sdk_core.token_managers"]
|
|
63
|
+
|
|
64
|
+
[tool.black]
|
|
65
|
+
line-length = 120
|
|
66
|
+
skip-string-normalization = true
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '3.20.4'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python
|
|
2
|
-
# Copyright 2019 IBM All Rights Reserved.
|
|
3
|
-
#
|
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
# you may not use this file except in compliance with the License.
|
|
6
|
-
# You may obtain a copy of the License at
|
|
7
|
-
#
|
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
#
|
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
# See the License for the specific language governing permissions and
|
|
14
|
-
# limitations under the License.
|
|
15
|
-
|
|
16
|
-
import os
|
|
17
|
-
import sys
|
|
18
|
-
import pkg_resources
|
|
19
|
-
from setuptools import setup, find_packages
|
|
20
|
-
|
|
21
|
-
__version__ = '3.20.4'
|
|
22
|
-
|
|
23
|
-
if sys.argv[-1] == 'publish':
|
|
24
|
-
# test server
|
|
25
|
-
os.system('python setup.py register -r pypitest')
|
|
26
|
-
os.system('python setup.py sdist upload -r pypitest')
|
|
27
|
-
|
|
28
|
-
# production server
|
|
29
|
-
os.system('python setup.py register -r pypi')
|
|
30
|
-
os.system('python setup.py sdist upload -r pypi')
|
|
31
|
-
sys.exit()
|
|
32
|
-
|
|
33
|
-
with open('requirements.txt', encoding='utf-8') as f:
|
|
34
|
-
install_requires = [str(req) for req in pkg_resources.parse_requirements(f)]
|
|
35
|
-
with open('requirements-dev.txt', encoding='utf-8') as f:
|
|
36
|
-
tests_require = [str(req) for req in pkg_resources.parse_requirements(f)]
|
|
37
|
-
|
|
38
|
-
with open("README.md", "r", encoding='utf-8') as fh:
|
|
39
|
-
readme = fh.read()
|
|
40
|
-
|
|
41
|
-
setup(
|
|
42
|
-
name='ibm-cloud-sdk-core',
|
|
43
|
-
version=__version__,
|
|
44
|
-
description='Core library used by SDKs for IBM Cloud Services',
|
|
45
|
-
license='Apache 2.0',
|
|
46
|
-
install_requires=install_requires,
|
|
47
|
-
tests_require=tests_require,
|
|
48
|
-
author='IBM',
|
|
49
|
-
author_email='devxsdk@us.ibm.com',
|
|
50
|
-
long_description=readme,
|
|
51
|
-
long_description_content_type='text/markdown',
|
|
52
|
-
url='https://github.com/IBM/python-sdk-core',
|
|
53
|
-
packages=find_packages(),
|
|
54
|
-
include_package_data=True,
|
|
55
|
-
keywords='ibm, cloud, ibm cloud services',
|
|
56
|
-
classifiers=[
|
|
57
|
-
'Programming Language :: Python',
|
|
58
|
-
'Programming Language :: Python :: 3',
|
|
59
|
-
'Programming Language :: Python :: 3.8',
|
|
60
|
-
'Programming Language :: Python :: 3.9',
|
|
61
|
-
'Programming Language :: Python :: 3.10',
|
|
62
|
-
'Programming Language :: Python :: 3.11',
|
|
63
|
-
'Development Status :: 5 - Production/Stable',
|
|
64
|
-
'Intended Audience :: Developers',
|
|
65
|
-
'License :: OSI Approved :: Apache Software License',
|
|
66
|
-
'Operating System :: OS Independent',
|
|
67
|
-
'Topic :: Software Development :: Libraries :: Python Modules',
|
|
68
|
-
'Topic :: Software Development :: Libraries :: Application Frameworks',
|
|
69
|
-
],
|
|
70
|
-
zip_safe=True,
|
|
71
|
-
)
|
|
File without changes
|
|
File without changes
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
# pylint: disable=missing-docstring
|
|
2
|
-
import os
|
|
3
|
-
|
|
4
|
-
from ibm_cloud_sdk_core import get_authenticator_from_environment
|
|
5
|
-
|
|
6
|
-
# Note: Only the unit tests are run by default.
|
|
7
|
-
#
|
|
8
|
-
# In order to test with a live CP4D server, rename "ibm-credentials-cp4dtest.env.example" to
|
|
9
|
-
# "ibm-credentials-cp4dtest.env" in the resources folder and populate the fields.
|
|
10
|
-
# Then run this command:
|
|
11
|
-
# pytest test_integration/test_cp4d_authenticator_integration.py
|
|
12
|
-
|
|
13
|
-
IBM_CREDENTIALS_FILE = '../resources/ibm-credentials-cp4dtest.env'
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
def test_cp4d_authenticator_password():
|
|
17
|
-
file_path = os.path.join(os.path.dirname(__file__), IBM_CREDENTIALS_FILE)
|
|
18
|
-
os.environ['IBM_CREDENTIALS_FILE'] = file_path
|
|
19
|
-
|
|
20
|
-
authenticator = get_authenticator_from_environment('cp4d_password_test')
|
|
21
|
-
assert authenticator is not None
|
|
22
|
-
assert authenticator.token_manager.password is not None
|
|
23
|
-
assert authenticator.token_manager.apikey is None
|
|
24
|
-
|
|
25
|
-
request = {'headers': {}}
|
|
26
|
-
authenticator.authenticate(request)
|
|
27
|
-
assert request['headers']['Authorization'] is not None
|
|
28
|
-
assert 'Bearer' in request['headers']['Authorization']
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
def test_cp4d_authenticator_apikey():
|
|
32
|
-
file_path = os.path.join(os.path.dirname(__file__), IBM_CREDENTIALS_FILE)
|
|
33
|
-
os.environ['IBM_CREDENTIALS_FILE'] = file_path
|
|
34
|
-
|
|
35
|
-
authenticator = get_authenticator_from_environment('cp4d_apikey_test')
|
|
36
|
-
assert authenticator is not None
|
|
37
|
-
assert authenticator.token_manager.password is None
|
|
38
|
-
assert authenticator.token_manager.apikey is not None
|
|
39
|
-
|
|
40
|
-
request = {'headers': {}}
|
|
41
|
-
authenticator.authenticate(request)
|
|
42
|
-
assert request['headers']['Authorization'] is not None
|
|
43
|
-
assert 'Bearer' in request['headers']['Authorization']
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# pylint: disable=missing-docstring
|
|
2
|
-
import os
|
|
3
|
-
|
|
4
|
-
from ibm_cloud_sdk_core import get_authenticator_from_environment
|
|
5
|
-
|
|
6
|
-
# Note: Only the unit tests are run by default.
|
|
7
|
-
#
|
|
8
|
-
# In order to test with a live IAM server, create file "iamtest.env" in the project root.
|
|
9
|
-
# It should look like this:
|
|
10
|
-
#
|
|
11
|
-
# IAMTEST1_AUTH_URL=<url> e.g. https://iam.cloud.ibm.com
|
|
12
|
-
# IAMTEST1_AUTH_TYPE=iam
|
|
13
|
-
# IAMTEST1_APIKEY=<apikey>
|
|
14
|
-
#
|
|
15
|
-
# Then run this command:
|
|
16
|
-
# pytest test_integration/test_iam_authenticator_integration.py
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
def test_iam_authenticator():
|
|
20
|
-
os.environ['IBM_CREDENTIALS_FILE'] = 'iamtest.env'
|
|
21
|
-
|
|
22
|
-
authenticator = get_authenticator_from_environment('iamtest1')
|
|
23
|
-
assert authenticator is not None
|
|
24
|
-
|
|
25
|
-
request = {'headers': {}}
|
|
26
|
-
authenticator.authenticate(request)
|
|
27
|
-
assert request['headers']['Authorization'] is not None
|
|
28
|
-
assert 'Bearer' in request['headers']['Authorization']
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# pylint: disable=missing-docstring
|
|
2
|
-
import os
|
|
3
|
-
|
|
4
|
-
from ibm_cloud_sdk_core import get_authenticator_from_environment
|
|
5
|
-
|
|
6
|
-
# Note: Only the unit tests are run by default.
|
|
7
|
-
#
|
|
8
|
-
# In order to test with a live MCSP token server, create file "mcsptest.env" in the project root.
|
|
9
|
-
# It should look like this:
|
|
10
|
-
#
|
|
11
|
-
# MCSPTEST_AUTH_URL=<url> e.g. https://iam.cloud.ibm.com
|
|
12
|
-
# MCSPTEST_AUTH_TYPE=mcsp
|
|
13
|
-
# MCSPTEST_APIKEY=<apikey>
|
|
14
|
-
#
|
|
15
|
-
# Then run this command:
|
|
16
|
-
# pytest test_integration/test_mcsp_authenticator_integration.py
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
def test_mcsp_authenticator():
|
|
20
|
-
os.environ['IBM_CREDENTIALS_FILE'] = 'mcsptest.env'
|
|
21
|
-
|
|
22
|
-
authenticator = get_authenticator_from_environment('mcsptest1')
|
|
23
|
-
assert authenticator is not None
|
|
24
|
-
|
|
25
|
-
request = {'headers': {}}
|
|
26
|
-
authenticator.authenticate(request)
|
|
27
|
-
assert request['headers']['Authorization'] is not None
|
|
28
|
-
assert 'Bearer' in request['headers']['Authorization']
|
|
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
|
{ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/ibm_cloud_sdk_core/get_authenticator.py
RENAMED
|
File without changes
|
|
File without changes
|
{ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/ibm_cloud_sdk_core/private_helpers.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
|
{ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/test/test_container_authenticator.py
RENAMED
|
File without changes
|
{ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/test/test_container_token_manager.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
|
{ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/test/test_vpc_instance_authenticator.py
RENAMED
|
File without changes
|
{ibm-cloud-sdk-core-3.20.4 → ibm_cloud_sdk_core-3.20.6}/test/test_vpc_instance_token_manager.py
RENAMED
|
File without changes
|