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
- Realtime with multiple connections
I need the Realtime on multiple Collections for diffrent applicational logic. So my question is: Is there a way to have only 1 Websocket connection or do I need...
- Can't login or deploy functions in Appwr...
Hello, since i updatet to the appwrite cli 6.1.0 i can't login or deploy functions with the cli. When i call the command: "appwrite get account --verbose" i ge...
- Create admin user?
I'm not really sure how this is supposed to work, I installed Appwrite through docker-compose and set it up. When I launched the app and went into it, I created...