
I do have an issue with a function over in another thread

trying to install llama_index in the appwrite docker lol

In the python SDK, the various api methods return dictionaries...it might be possible to create some sort of typing for each model. We welcome PRs for this

can you link me to the one I need to contribute to? Is it the sdk-generator?

https://github.com/appwrite/sdk-generator/tree/feat-python-type-hints
If you'd like to help, please comment in https://github.com/appwrite/sdk-for-python/issues/43 so that you can be assigned on the issue

well I did it for those functions but where are the SDK functions?

ah I see

I understand okay

I'll need to add the types themselves to the actual SDK itself

well the templates

Are they pulled from the API documentation or how does that work?

Yes

Are you able to explain it a bit better? All I really need to understand is where/when it pulls the data? I think it's in the SDK right?

cause all I need is the actual types for Python, but I might have to edit the docs to match?

Sorry I don't understand

I went through and typed all the types

but the issue I'm having is I want to return a Document
type from the databases
for instance, which means the API documentation needs to be changed to return a Python type if it's built from there, correct?

You mean the API specs? Those don't need changing. The same specs can generate types for other languages



oh you're right, lemme look into it more, I'll take over the issue, I'll reply in the GitHub

okay so basically what it does is it pulls from the API using the SDK generator, parses the JSON data into classes and such, but where does it create the definitions for the Document type and stuff for the SDK's? When I look at them I only see the basics (client
, id
, etc.)

but where does it create the definitions for the Document type and stuff for the SDK's
You mean where in the API specs?

Yeah that's what I assumed that is, the only difference between the PHP SDK/JS/Python is that Python's file in the SDK.php had a different getParam
method from what I can tell

it all comes from the schema definitions from the API specs
Recommended threads
- Cannot create function from CLI with KEY
I tried to setup a gitlab CI that push functions from an appwrite.json, tho when doing a first push it fails saying it needs a session. Tho it does create the f...
- appwrite/appwrite:1.7.4 image missing En...
Hi Team, I'm experiencing a critical issue when deploying the official appwrite/appwrite:1.7.4 Docker image. After pulling the image (both by tag and by digest...
- cannot update env _APP_SYSTEM_SECURITY_E...
I tried updating .env file using vim and change the env _APP_SYSTEM_SECURITY_EMAIL_ADDRESS=arcivalpalma07@gmail.com and save. docker compose up -d docker com...
