Skip to content

Instantly share code, notes, and snippets.

View leforthomas's full-sized avatar

Thomas Lefort leforthomas

  • Geocento
  • Madrid
View GitHub Profile
@leforthomas
leforthomas / server.py
Last active March 17, 2023 07:55
Dead simple way to create a dynamically extensible Flask server
import sys
from flask import Flask, request
# initialize our Flask application
app= Flask(__name__)
# the use case is to translate and forward incoming requests to other servers and return the response
# we want the server to be hot pluggable, ie add new "adapters" on the fly