pyaws-s3 1.0.22__tar.gz → 1.0.24__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.
- {pyaws_s3-1.0.22 → pyaws_s3-1.0.24}/PKG-INFO +1 -1
- {pyaws_s3-1.0.22 → pyaws_s3-1.0.24}/pyaws_s3/s3.py +5 -6
- {pyaws_s3-1.0.22 → pyaws_s3-1.0.24}/pyaws_s3.egg-info/PKG-INFO +1 -1
- {pyaws_s3-1.0.22 → pyaws_s3-1.0.24}/pyproject.toml +1 -1
- {pyaws_s3-1.0.22 → pyaws_s3-1.0.24}/LICENSE.md +0 -0
- {pyaws_s3-1.0.22 → pyaws_s3-1.0.24}/README.md +0 -0
- {pyaws_s3-1.0.22 → pyaws_s3-1.0.24}/pyaws_s3/__init__.py +0 -0
- {pyaws_s3-1.0.22 → pyaws_s3-1.0.24}/pyaws_s3.egg-info/SOURCES.txt +0 -0
- {pyaws_s3-1.0.22 → pyaws_s3-1.0.24}/pyaws_s3.egg-info/dependency_links.txt +0 -0
- {pyaws_s3-1.0.22 → pyaws_s3-1.0.24}/pyaws_s3.egg-info/requires.txt +0 -0
- {pyaws_s3-1.0.22 → pyaws_s3-1.0.24}/pyaws_s3.egg-info/top_level.txt +0 -0
- {pyaws_s3-1.0.22 → pyaws_s3-1.0.24}/setup.cfg +0 -0
@@ -173,23 +173,22 @@ class S3Client:
|
|
173
173
|
|
174
174
|
return temp_url
|
175
175
|
|
176
|
-
def upload_bytes(self, *args, **kwargs: Any)
|
176
|
+
def upload_bytes(self, *args, **kwargs: Any):
|
177
177
|
"""
|
178
178
|
Upload a Plotly Figure as a PNG image to an S3 bucket and generate a pre-signed URL.
|
179
179
|
|
180
180
|
Args:
|
181
|
-
|
182
|
-
bucket_name (str): The name of the S3 bucket.
|
181
|
+
bytes_data (bytes): The bytes data of the image to upload.
|
183
182
|
object_name (str): The name of the S3 object.
|
183
|
+
format_file (str): Format of the image. Defaults to 'pdf' ["png", "jpeg", "svg", "html", "pdf"].
|
184
|
+
Raises:
|
185
|
+
Exception: If there is an error uploading the image.
|
184
186
|
|
185
187
|
Keyword Args:
|
186
188
|
format_file (str): Format of the image. Defaults to 'png'.
|
187
189
|
|
188
190
|
Returns:
|
189
191
|
str: Pre-signed URL for the uploaded image.
|
190
|
-
|
191
|
-
Raises:
|
192
|
-
Exception: If there is an error uploading the image.
|
193
192
|
"""
|
194
193
|
try:
|
195
194
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|