from appwrite.client import Client from appwrite.services.databases import Databases 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 databases = Databases(client) result = databases.create_string_attribute( database_id = '', collection_id = '', key = '', size = 1, required = False, default = '', # optional array = False, # optional encrypt = False # optional )