From 5a0832cd361a495afa8563613a2facf59d863163 Mon Sep 17 00:00:00 2001 From: Atharva Date: Sat, 7 Dec 2024 15:33:18 +0530 Subject: [PATCH 1/4] feat:Update appwrite package(Issue #59) --- playground.py | 2 +- requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/playground.py b/playground.py index 205f5a5..00bfd1b 100644 --- a/playground.py +++ b/playground.py @@ -22,7 +22,7 @@ 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_endpoint("https://cloud.appwrite.io/v1") client.set_project("YOUR_PROJECT_ID") client.set_key("YOU_API_KEY") client.set_self_signed() 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 From c91a273218414555ec5490ea14f647d691d8d58a Mon Sep 17 00:00:00 2001 From: Atharva Date: Sat, 7 Dec 2024 15:39:39 +0530 Subject: [PATCH 2/4] feat:Update appwrite package - comments added in playground.py file(Issue #59) --- playground.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/playground.py b/playground.py index 00bfd1b..7200fec 100644 --- a/playground.py +++ b/playground.py @@ -22,9 +22,9 @@ 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("https://cloud.appwrite.io/v1") -client.set_project("YOUR_PROJECT_ID") -client.set_key("YOU_API_KEY") +client.set_endpoint("https://cloud.appwrite.io/v1") # appwrite cloud platform endpoint +client.set_project("YOUR_PROJECT_ID") # appwrite cloud platform project id +client.set_key("YOU_API_KEY") # appwrite cloud platform project api_key client.set_self_signed() # client.set_jwt('JWT') # Use this to authenticate with JWT instead of API_KEY From 65c74cdabac9c03e94f6bbb75065b31130f610cc Mon Sep 17 00:00:00 2001 From: Atharva Date: Sat, 7 Dec 2024 18:33:38 +0530 Subject: [PATCH 3/4] neated playground py file client object part --- playground.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/playground.py b/playground.py index 7200fec..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("https://cloud.appwrite.io/v1") # appwrite cloud platform endpoint -client.set_project("YOUR_PROJECT_ID") # appwrite cloud platform project id -client.set_key("YOU_API_KEY") # appwrite cloud platform project 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 From 4b7850fc0bdb657a9c57f9eed2f3d6b0732b80d1 Mon Sep 17 00:00:00 2001 From: Atharva Date: Sat, 7 Dec 2024 18:34:21 +0530 Subject: [PATCH 4/4] update alpine version in dockerfile --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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