tessl install tessl/pypi-cloudinary@1.44.0Python and Django SDK for Cloudinary, a cloud-based image and video management service with comprehensive transformation, optimization, and delivery capabilities
Agent Success
Agent success rate when using this tile
94%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.08x
Baseline
Agent success rate without this tile
87%
Build a Python application that organizes digital assets (images and videos) into a structured folder hierarchy in your cloud storage.
Your application should implement folder-based organization for digital assets with the following capabilities:
Create a system that can:
projects/2024/campaign-photos)The system should:
Implement the following operations:
@generates
The main module should be implemented in asset_organizer.py.
def upload_to_folder(file_path: str, folder_path: str) -> dict:
"""
Upload an asset to a specific folder path in cloud storage.
Args:
file_path: Local path to the file to upload
folder_path: Target folder path (e.g., 'projects/2024/photos')
Returns:
Dictionary containing upload result including public_id with folder path
"""
pass
def list_root_folders() -> list:
"""
List all root folders in cloud storage.
Returns:
List of folder dictionaries containing name and path information
"""
pass
def list_subfolders(folder_path: str) -> list:
"""
List subfolders within a specific folder.
Args:
folder_path: Path to the parent folder
Returns:
List of subfolder dictionaries
"""
pass
def delete_empty_folder(folder_path: str) -> dict:
"""
Delete an empty folder from cloud storage.
Args:
folder_path: Path to the folder to delete
Returns:
Dictionary with deletion result
"""
passevents/2024/conference should place the asset in that nested folder structure @testevents/2024 should return folders like conference, workshop, etc. @testtemp/uploads should succeed when no assets exist in that folder @testProvides cloud-based image and video management with folder organization capabilities.