diff --git a/Dockerfile b/Dockerfile index 848766f..59d79fb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ -FROM python:3.10-alpine +FROM python:3.11.11-alpine + WORKDIR /app RUN apk update && apk add git COPY requirements.txt requirements.txt diff --git a/playground.py b/playground.py index 205f5a5..29b81e5 100644 --- a/playground.py +++ b/playground.py @@ -21,11 +21,13 @@ def p(info): # Read the docs at https://appwrite.io/docs to get more information # about API keys and Project IDs -client = Client() -client.set_endpoint("http://YOUR_HOST/v1") -client.set_project("YOUR_PROJECT_ID") -client.set_key("YOU_API_KEY") -client.set_self_signed() +client = (client + .set_endpoint('https://cloud.appwrite.io/v1') # Appwrite cloud platform API Endpoint + .set_project('YOUR_PROJECT_ID') # Replace with your appwrite cloud project ID + .set_key('YOU_API_KEY') # Replace with your appwrite cloud project api key + .set_self_signed() # Use only on dev mode with a self-signed SSL cert +) + # client.set_jwt('JWT') # Use this to authenticate with JWT instead of API_KEY databases = Databases(client) @@ -388,4 +390,4 @@ def run_all_tasks(): if __name__ == "__main__": run_all_tasks() - p("Successfully ran playground!") + p("Successfully ran playground!") \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 6b347b9..552bb0d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -appwrite == 6.0.0 \ No newline at end of file +appwrite == 7.0.1 \ No newline at end of file