
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
- Getting Error On self host SSL update
Hi, I am using app write for my app backend version i am using is 1.6.2 yesterday my ssl is expired and now i am not able to renew it because of it my app is no...
- import csv "Document already exists"
When I try to import a csv file to an already existing database, I keep getting "Document Already Exists" I thought that when I import and a document with the ...
- Can not migrate to self hosted instance ...
Hey! I want to migrate from Appwrite Cloud to a self hosted instance and it's a really frustrating journey for now. Exporting itself does not work, so I did w...
