Return to site

How to make a minimal REST API in Python?

· workplace

I am on a side project whose purpose is to use an AI written in Python.

I need to interact with it.

So I was wondering how to make a compliant API.

I first thought of SpringBoot with a Jython interpreter:

But I get afraid of possible complexity like python modules loading, differences between Jython libs and regular Python libs.

So my serach led to Flask, a minimal Python framework able to do REST API. (There is also Django but I would consider it if Flask is not able to satisfy the requirements).