external-systems 0.1.0__tar.gz → 0.2.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.
Potentially problematic release.
This version of external-systems might be problematic. Click here for more details.
- {external_systems-0.1.0 → external_systems-0.2.0}/PKG-INFO +2 -2
- {external_systems-0.1.0 → external_systems-0.2.0}/README.md +1 -1
- {external_systems-0.1.0 → external_systems-0.2.0}/external_systems/_version.py +1 -1
- {external_systems-0.1.0 → external_systems-0.2.0}/external_systems/sources/_sources.py +14 -5
- {external_systems-0.1.0 → external_systems-0.2.0}/external_systems/sources/_utils.py +5 -0
- {external_systems-0.1.0 → external_systems-0.2.0}/pyproject.toml +1 -1
- {external_systems-0.1.0 → external_systems-0.2.0}/LICENSE.txt +0 -0
- {external_systems-0.1.0 → external_systems-0.2.0}/external_systems/__init__.py +0 -0
- {external_systems-0.1.0 → external_systems-0.2.0}/external_systems/py.typed +0 -0
- {external_systems-0.1.0 → external_systems-0.2.0}/external_systems/sources/__init__.py +0 -0
- {external_systems-0.1.0 → external_systems-0.2.0}/external_systems/sources/_api.py +0 -0
- {external_systems-0.1.0 → external_systems-0.2.0}/external_systems/sources/_connections.py +0 -0
- {external_systems-0.1.0 → external_systems-0.2.0}/external_systems/sources/_proxies.py +0 -0
- {external_systems-0.1.0 → external_systems-0.2.0}/external_systems/sources/_refreshable.py +0 -0
- {external_systems-0.1.0 → external_systems-0.2.0}/external_systems/sources/_sockets.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: external-systems
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.0
|
|
4
4
|
Summary: A Python library for interacting with Foundry Sources
|
|
5
5
|
License: Apache-2.0
|
|
6
6
|
Keywords: Palantir,Foundry,Sources,Compute Modules,Python Functions,Transforms
|
|
@@ -22,7 +22,7 @@ Description-Content-Type: text/markdown
|
|
|
22
22
|

|
|
23
23
|
[](https://pypi.org/project/external-systems/)
|
|
24
24
|
[](https://opensource.org/licenses/Apache-2.0)
|
|
25
|
-
|
|
25
|
+
<a href="https://autorelease.general.dmz.palantir.tech/palantir/external-systems"><img src="https://img.shields.io/badge/Perform%20an-Autorelease-success.svg" alt="Autorelease"></a>
|
|
26
26
|
|
|
27
27
|
> [!WARNING]
|
|
28
28
|
> This SDK is incubating and subject to change.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|

|
|
3
3
|
[](https://pypi.org/project/external-systems/)
|
|
4
4
|
[](https://opensource.org/licenses/Apache-2.0)
|
|
5
|
-
|
|
5
|
+
<a href="https://autorelease.general.dmz.palantir.tech/palantir/external-systems"><img src="https://img.shields.io/badge/Perform%20an-Autorelease-success.svg" alt="Autorelease"></a>
|
|
6
6
|
|
|
7
7
|
> [!WARNING]
|
|
8
8
|
> This SDK is incubating and subject to change.
|
|
@@ -29,6 +29,7 @@ from ._connections import HttpsConnection
|
|
|
29
29
|
from ._proxies import create_proxy_session
|
|
30
30
|
from ._refreshable import DefaultSessionCredentialsManager, Refreshable, RefreshHandler
|
|
31
31
|
from ._sockets import create_socket
|
|
32
|
+
from ._utils import read_file
|
|
32
33
|
|
|
33
34
|
log = logging.getLogger(__name__)
|
|
34
35
|
|
|
@@ -46,6 +47,7 @@ class Source:
|
|
|
46
47
|
egress_proxy_token: Optional[str],
|
|
47
48
|
source_configuration: Optional[Any],
|
|
48
49
|
credentials_refresh_handler: Optional[RefreshHandler[SourceCredentials]] = None,
|
|
50
|
+
ca_bundle_path: Optional[str] = None,
|
|
49
51
|
):
|
|
50
52
|
self._source_parameters = source_parameters
|
|
51
53
|
self._on_prem_proxy_service_uris = on_prem_proxy_service_uris
|
|
@@ -53,6 +55,7 @@ class Source:
|
|
|
53
55
|
self._source_configuration = source_configuration
|
|
54
56
|
self._egress_proxy_token = egress_proxy_token
|
|
55
57
|
self._credentials_refresh_handler = credentials_refresh_handler
|
|
58
|
+
self._custom_ca_bundle_path = ca_bundle_path
|
|
56
59
|
|
|
57
60
|
@cached_property
|
|
58
61
|
def secrets(self) -> Mapping[str, str]:
|
|
@@ -84,11 +87,17 @@ class Source:
|
|
|
84
87
|
|
|
85
88
|
new_ca_contents = []
|
|
86
89
|
|
|
87
|
-
# If
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
# If a custom CA bundle path is provided, use it.
|
|
91
|
+
# Otherwise, use the requests CA bundle path if it is set.
|
|
92
|
+
ca_bundle_path = (
|
|
93
|
+
self._custom_ca_bundle_path
|
|
94
|
+
if self._custom_ca_bundle_path is not None
|
|
95
|
+
else os.environ.get("REQUESTS_CA_BUNDLE")
|
|
96
|
+
)
|
|
97
|
+
|
|
98
|
+
# Copy the CA bundle contents to the new CA bundle file.
|
|
99
|
+
if ca_bundle_path:
|
|
100
|
+
new_ca_contents.append(read_file(ca_bundle_path))
|
|
92
101
|
|
|
93
102
|
# Add all CAs for the source
|
|
94
103
|
for required_ca in self._source_parameters.server_certificates.values():
|
|
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
|