Last active
February 11, 2023 13:32
-
-
Save ycd/82a7992c894f3fd97e4bc3a82e32070d to your computer and use it in GitHub Desktop.
FastAPI One Liner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app = (lambda fastapi, typing: (lambda app: (app,app.get("/")(lambda: {"Quite ": "ugly"}),app.post("/annotate",)(lambda x, y: {"How to annotate this": int(x) + int(y)}),)[0])(fastapi.FastAPI()))(__import__("fastapi"), __import__("typing")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment