Is it possible to use slicer as a service?

There is a plan to use a slicer to extract some data from the CT scan. The rest of the program architecture is deployed in Docker.
The best option would be to connect celery and assign tasks through it, but it didn’t work out for me.
Is it possible to implement celery into a slicer or at least set up a server with its own API.

Slicer has a web API - see documentation here. It exposes only a small fraction of things that Slicer can do, but any module can customize and extend the API, so it should not be a problem to make available any features you need.

I think that “GET /exec” is partially suitable for solving my problems. I’ll see what I can come up with.
Perhaps later I’ll add the solution I came to.
Thank you!

1 Like

Just FYI @youngishcord - the exec endpoint is great for prototyping but it may be cleaner and a bit safer to define a few specific endpoints to do the jobs you have in mind.