UncountablePythonSDK 0.0.42__py3-none-any.whl → 0.0.43__py3-none-any.whl

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 UncountablePythonSDK might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: UncountablePythonSDK
3
- Version: 0.0.42
3
+ Version: 0.0.43
4
4
  Summary: Uncountable SDK
5
5
  Project-URL: Homepage, https://github.com/uncountableinc/uncountable-python-sdk
6
6
  Project-URL: Repository, https://github.com/uncountableinc/uncountable-python-sdk.git
@@ -86,7 +86,7 @@ uncountable/integration/db/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
86
86
  uncountable/integration/db/connect.py,sha256=YtQHJ1DBGPhxKFRCfiXqohOYUceKSxMVOJ88aPI48Ug,181
87
87
  uncountable/integration/executors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
88
88
  uncountable/integration/executors/executors.py,sha256=v5ClGVUlvrZcMdmGQa8Ll668G_HGTnKpGOnTM7UMZCQ,956
89
- uncountable/integration/executors/generic_upload_executor.py,sha256=jlXHTWD8pfA2no_X-sH9ib-itnuCiG4f8NKkcd1ZO7A,8760
89
+ uncountable/integration/executors/generic_upload_executor.py,sha256=lCHGIMCe3t_UvEgHMBoOneWR2zbYaGXztt5F2zDRBLw,8796
90
90
  uncountable/integration/executors/script_executor.py,sha256=OmSBOtU48G3mqza9c2lCm84pGGyaDk-ZBJCx3RsdJXc,846
91
91
  uncountable/integration/secret_retrieval/__init__.py,sha256=3QXVj35w8rRMxVvmmsViFYDi3lcb3g70incfalOEm6o,87
92
92
  uncountable/integration/secret_retrieval/retrieve_secret.py,sha256=M0qXVJpD8hMYIFypHFeyh598sqmIDX8ZOyXK23CluF0,1323
@@ -235,7 +235,7 @@ uncountable/types/api/triggers/__init__.py,sha256=gCgbynxG3jA8FQHzercKtrHKHkiIKr
235
235
  uncountable/types/api/triggers/run_trigger.py,sha256=_Rpha9nxXI3Xr17CrGDtofg4HZ81x2lt0rMZ6As0qfE,893
236
236
  uncountable/types/api/uploader/__init__.py,sha256=gCgbynxG3jA8FQHzercKtrHKHkiIKr8APdZYUniAor8,55
237
237
  uncountable/types/api/uploader/invoke_uploader.py,sha256=2RCvnccwEm6J5dt7UJVLUKxfk49vfpGXjBLCWIBD3Ck,1006
238
- UncountablePythonSDK-0.0.42.dist-info/METADATA,sha256=QbGbHyZWolv9bVNTi4N47ftHQAxWTVqqEwDxB-Tg_-k,1707
239
- UncountablePythonSDK-0.0.42.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
240
- UncountablePythonSDK-0.0.42.dist-info/top_level.txt,sha256=1UVGjAU-6hJY9qw2iJ7nCBeEwZ793AEN5ZfKX9A1uj4,31
241
- UncountablePythonSDK-0.0.42.dist-info/RECORD,,
238
+ UncountablePythonSDK-0.0.43.dist-info/METADATA,sha256=vhbJVX4f-c2phTYrI3H2MJ4NCXfkOHVeHa3NHq-SEGk,1707
239
+ UncountablePythonSDK-0.0.43.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
240
+ UncountablePythonSDK-0.0.43.dist-info/top_level.txt,sha256=1UVGjAU-6hJY9qw2iJ7nCBeEwZ793AEN5ZfKX9A1uj4,31
241
+ UncountablePythonSDK-0.0.43.dist-info/RECORD,,
@@ -2,8 +2,7 @@ import io
2
2
  import os
3
3
  import re
4
4
  from datetime import datetime, timezone
5
-
6
- import paramiko
5
+ from tempfile import NamedTemporaryFile
7
6
 
8
7
  from pkgs.filesystem_utils import (
9
8
  FileObjectData,
@@ -177,14 +176,14 @@ class GenericUploadJob(Job):
177
176
  pem_secret = retrieve_secret(
178
177
  self.data_source.pem_secret, profile_metadata=args.profile_metadata
179
178
  )
180
- private_key = paramiko.AgentKey.from_private_key(io.StringIO(pem_secret))
181
- sftp_config = FileSystemSFTPConfig(
182
- ip=self.data_source.host,
183
- username=self.data_source.username,
184
- pem_key=private_key,
185
- pem_path=None,
186
- )
187
- return SFTPSession(sftp_config=sftp_config)
179
+ with NamedTemporaryFile() as pem_file:
180
+ pem_file.write(pem_secret.encode())
181
+ sftp_config = FileSystemSFTPConfig(
182
+ ip=self.data_source.host,
183
+ username=self.data_source.username,
184
+ pem_path=pem_file.name,
185
+ )
186
+ return SFTPSession(sftp_config=sftp_config)
188
187
 
189
188
  def run(self, args: JobArguments) -> JobResult:
190
189
  client = args.client