Skip to content

Commit a3fa1c4

Browse files
Improve doc strings
1 parent e82de25 commit a3fa1c4

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

cloudinary_cli/core/overrides.py

+18
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,24 @@ def resolve_command(self, ctx, args):
3535

3636
# Patch to set `auto` resource type
3737
def upload(file, **options):
38+
"""
39+
Uploads an asset to a Cloudinary cloud.
40+
41+
The asset can be:
42+
* a local file path
43+
* the actual data (byte array buffer)
44+
* the Data URI (Base64 encoded), max ~60 MB (62,910,000 chars)
45+
* the remote FTP, HTTP or HTTPS URL address of an existing file
46+
* a private storage bucket (S3 or Google Storage) URL of a whitelisted bucket
47+
48+
See: https://cloudinary.com/documentation/image_upload_api_reference#upload_method
49+
:param file: The asset to upload.
50+
:type file: Any or str
51+
:param options: The optional parameters. See the upload API documentation.
52+
:type options: dict, optional
53+
:return: The result of the upload API call.
54+
:rtype: dict
55+
"""
3856
if "resource_type" not in options.keys():
3957
options["resource_type"] = "auto"
4058
return original_upload(file, **options)

cloudinary_cli/utils/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
not_callable = ('is_appengine_sandbox', 'call_tags_api', 'call_context_api', 'call_cacheable_api', 'call_api',
2121
'call_metadata_api', 'call_json_api', 'only', 'transformation_string', 'account_config',
22-
'reset_config', 'upload_large_part', 'upload_image', 'upload_resource')
22+
'reset_config', 'upload_large_part', 'upload_image', 'upload_resource', 'build_eager')
2323

2424
BLOCK_SIZE = 65536
2525

0 commit comments

Comments
 (0)