[Python] REST API without using a web framework in python

Discussão em 'Python' iniciado por Stack, Maio 22, 2025.

  1. Stack

    Stack Membro Participativo

    I have a Kafka Consumer written in Python. I want to expose an API that I can trigger for resync (when I want to consume messages from a specific point in time).

    Is it possible to implement this API with just vanilla Python without using frameworks like Flask or FastAPI? (My thought process is that adding an entire web framework to do this might be an overkill)

    I got this idea from CLI tools that log in from browsers, where after you log in from browsers, it is able to update the auth information in the CLI.

    Continue reading...

Compartilhe esta Página