Serve RestAPI written in Python via KNIME

Hello everyone,

I am relatively new to KNIME servers, and was wondering if it is possible to serve an API written in Python with KNIME?
I have a file api.py which was previously served by a UNICORN webserver, and would like to migrate to KNIME. My API is written using the Flask framework.

Have a nice day!
Nicolas

Hi Nicolas,

welcome to the KNIME Forum. :slight_smile:

I like the idea and we can make use of the code you have written so far.

KNIME Server Medium and Large come with a REST API (The KNIME Server REST API | KNIME), via which workflows can be configured and called. You could therefore deploy a workflow that is configured/called via a REST call. The workflow can then pass on the data to your api.py (running in a Python node). Clients would need to use newly adapted REST endpoints, but the script can still do the bulk work of processing the requests.

I hope this helps. :slight_smile:

Kind regards
Marvin

2 Likes

Hi Martin,

Thanks for the message! I’m definitely going to have a look at your link. It seems like it is exactly what I’m looking for.

Best regards,
Nicolas

1 Like