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
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...
- [Beginner] CLI --queries Syntax Error & ...
Hi everyone! I am a beginner with Appwrite and trying to use the CLI, but I'm stuck with a syntax error. Any guidance would be greatly appreciated! 🙏 **Enviro...
- [SOLVED] curl error Number: 6 — function...
Hello, I invested a lot of time in this error in a fresh install of appwrite 1.8.1 and lasted until fix, this if for helping anyone that can have the same weird...