
Hey I have a little confusion I want to retrieve documents and do computations in my python function, but there is no python syntax given in docs

Python is server-sided (or at least in most cases), so you should refer to the python sdk docs: https://appwrite.io/docs/server/databases?sdk=python-default

Basically there is a tab that lets you to swith in docs between both client and server side. You click server tab and then you will be able to see python SDK

I'm sorry, How can I add queries in python? I can't even find the import queries statement😕

Actualy there aren't any python example for Appwrite queries. But, take a look in this code for example. https://github.com/Foxtrt-com/Foxbot/blob/3d79c2a3be796a413444ee4cff38fc246adeca7b/main/helpers/appwrite.py#L114
In general, it's what you see in other langauges here: https://appwrite.io/docs/queries
But, For python
from appwrite.query import Query
databases.list_documents(database_id='DB_ID', collection_id='COLLECTION_ID',
queries=[Query.orderDesc('exp'), Query.limit(5)])

Ok, thank you
Recommended threads
- Create owner team member with Server fun...
I understand that when creating a team with a function, the user that made the request will not be the owner so I think I have to add the user that did the requ...
- Schedule a function job with timezone
I am aware that cron schedule will work on UTC timezone. I would like to run my function at a particular time everyday in new york time. If I use UTC, it will m...
- Appwrite processing global envs and chan...
So I define a global env - GCP_CREDENTIALS in global env of my appwrite projcet and refer to it in my functions as ```gcp_creds: JSON.PARSE(GCP_CREDENTIALS)```...
