synapse-sdk 1.0.0a68__py3-none-any.whl → 1.0.0a69__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 synapse-sdk might be problematic. Click here for more details.

@@ -29,12 +29,12 @@ class S3Storage(BaseStorage):
29
29
 
30
30
  def upload(self, source, target):
31
31
  with open(source, 'rb') as file:
32
- self.upath.write_text(file.read(), target)
32
+ (self.upath / target).write_bytes(file.read())
33
33
 
34
34
  return self.get_url(target)
35
35
 
36
36
  def exists(self, target):
37
- return self.upath.exists(target)
37
+ return (self.upath / target).exists()
38
38
 
39
39
  def get_url(self, target):
40
40
  return str(self.upath.joinuri(target))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: synapse-sdk
3
- Version: 1.0.0a68
3
+ Version: 1.0.0a69
4
4
  Summary: synapse sdk
5
5
  Author-email: datamaker <developer@datamaker.io>
6
6
  License: MIT
@@ -205,11 +205,11 @@ synapse_sdk/utils/storage/registry.py,sha256=MNhX2ohVfQsjhuHO2YMn0wiJIA0ELPp5NXH
205
205
  synapse_sdk/utils/storage/providers/__init__.py,sha256=x7RGwZryT2FpVxS7fGWryRVpquHzAiIfTz-9uLgjleo,1860
206
206
  synapse_sdk/utils/storage/providers/gcp.py,sha256=i2BQCu1Kej1If9SuNr2_lEyTcr5M_ncGITZrL0u5wEA,363
207
207
  synapse_sdk/utils/storage/providers/http.py,sha256=2DhIulND47JOnS5ZY7MZUex7Su3peAPksGo1Wwg07L4,5828
208
- synapse_sdk/utils/storage/providers/s3.py,sha256=W94rQvhGRXti3R4mYP7gmU5pcyCQpGFIBLvxxqLVdRM,2231
208
+ synapse_sdk/utils/storage/providers/s3.py,sha256=Cxpr8jhdoCx3rfnuUVwprfxBQht2I5YAkPevPAG5YNg,2240
209
209
  synapse_sdk/utils/storage/providers/sftp.py,sha256=_8s9hf0JXIO21gvm-JVS00FbLsbtvly4c-ETLRax68A,1426
210
- synapse_sdk-1.0.0a68.dist-info/licenses/LICENSE,sha256=bKzmC5YAg4V1Fhl8OO_tqY8j62hgdncAkN7VrdjmrGk,1101
211
- synapse_sdk-1.0.0a68.dist-info/METADATA,sha256=NsAlJYdIVUZnPNoHHrV2MGNIl7VNBWCY6kxibcastp4,1130
212
- synapse_sdk-1.0.0a68.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
213
- synapse_sdk-1.0.0a68.dist-info/entry_points.txt,sha256=VNptJoGoNJI8yLXfBmhgUefMsmGI0m3-0YoMvrOgbxo,48
214
- synapse_sdk-1.0.0a68.dist-info/top_level.txt,sha256=ytgJMRK1slVOKUpgcw3LEyHHP7S34J6n_gJzdkcSsw8,12
215
- synapse_sdk-1.0.0a68.dist-info/RECORD,,
210
+ synapse_sdk-1.0.0a69.dist-info/licenses/LICENSE,sha256=bKzmC5YAg4V1Fhl8OO_tqY8j62hgdncAkN7VrdjmrGk,1101
211
+ synapse_sdk-1.0.0a69.dist-info/METADATA,sha256=eurjb0X6yInZxkEZf5i8Zu2zBF0bJ-MCkEaCjXXfQII,1130
212
+ synapse_sdk-1.0.0a69.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
213
+ synapse_sdk-1.0.0a69.dist-info/entry_points.txt,sha256=VNptJoGoNJI8yLXfBmhgUefMsmGI0m3-0YoMvrOgbxo,48
214
+ synapse_sdk-1.0.0a69.dist-info/top_level.txt,sha256=ytgJMRK1slVOKUpgcw3LEyHHP7S34J6n_gJzdkcSsw8,12
215
+ synapse_sdk-1.0.0a69.dist-info/RECORD,,