scalableminds / webknossos-libs

Python API and CLI tools for working with WEBKNOSSOS datasets, annotations and server interactions. Includes converter to OME-Zarr.
https://docs.webknossos.org/webknossos-py/index.html
22 stars 11 forks source link

Accessing list of available remote annotations through Python API #1188

Open filippocastelli opened 1 week ago

filippocastelli commented 1 week ago

I'ts possible that this feature already exists and I've not found it in the documentation. I'd like to programatically access the list of Annotations that are currently available to my account, the way that I do it at the moment is by directly sending a request to /api/annotations/readable to get the same list I have on the web frontend. Looking at https://github.com/scalableminds/webknossos-libs/blob/e7ed52e298d37692e014e9db643453346b9135de/webknossos/webknossos/client/api_client/wk_api_client.py I suspect that this feature is not already included.

hotzenklotz commented 1 week ago

We don't have an API for that at the moment. For some context, why would you need to list all annotations in your workflows?

filippocastelli commented 1 week ago

I want to be able to select which Annotations i want to download based on tags and statuses and not having to rely on the web interface to manually copy the ID of the annotations I want to use.

In the docs I couldn't find a way of doing what I wanted to do using the python client.