from appwrite.client import Client from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('') # Your project ID client.set_key('') # Your secret API key functions = Functions(client) result = functions.get_deployment_download( function_id = '', deployment_id = '', type = DeploymentDownloadType.SOURCE # optional )