-
Notifications
You must be signed in to change notification settings - Fork 42
Description
Hi,
I've been writing some simple utilities with clearml and found some inconsistencies between the Server API reference and the APIClient provided by the python SDK. Although the Server API Reference is documenting the HTTP APIs, not all APIs are available from the APIClient. However, in the APIClient section of the documentation, it does not mention about supported API endpoints. This creates confusions. For example:
I needed to fetch the queues and their connected workers using the APIClient, then I found this API:
However, calling this from the python SDK will throw the following error:
AttributeError: 'Queues' object has no attribute 'get_all_ex'
I've checked the source code, seems like the queues.get_all_ex() is not implemented yet. I think mentioning this in the APIClient/Server API reference documentation would greatly improve the clarity of the docs and reduce confusion.
To do that, I got some thoughts:
- Adding an API version selection for API reference docs, possibly by adding a dropdown menu?
- Then for each version of the Server API, corresponding
clearmlSDK versions could be listed, whoseAPIClientwill support the version of the Server API.
Forgive me If my suggestion will break the current implementation of the docs, as I noticed the API references are auto generated according to the code. So my thoughts are by no means the best since I have no idea how much work is needed to do that.
Thanks.