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
- Appwrite-injected variables are not avai...
I am using rust-1.83 as a runtime and try to access APPWRITE_FUNCTION_API_ENDPOINT or APPWRITE_FUNCTION_API_KEY during runtime. Both are not set during my execu...
- OAuth Missing redirect URL
Hello all, on a Flutter mobile app with latest Appwrite dependency (25.4.0) I always got "Missing redirect URL" - "Your OAuth login flow is missing a proper red...
- relationships bug or error idk
hey every one, am using am using appwrite on a project and ran into a problem where by created a relationship and two way to be specific and it is stuck on proc...