Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PR] Feature: Update appwrite package #61

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
14 changes: 8 additions & 6 deletions playground.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -388,4 +390,4 @@ def run_all_tasks():

if __name__ == "__main__":
run_all_tasks()
p("Successfully ran playground!")
p("Successfully ran playground!")
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
appwrite == 6.0.0
appwrite == 7.0.1