10 votes

How to choose a Python API framework

8 comments

  1. [6]
    Adys
    Link
    "Just use FastAPI" is my answer nowadays, but this guide looks pretty fair and unbiased. That said, I don't think Bottle is worth considering, and imo Flask is strictly worse than FastAPI. The...

    "Just use FastAPI" is my answer nowadays, but this guide looks pretty fair and unbiased.

    That said, I don't think Bottle is worth considering, and imo Flask is strictly worse than FastAPI. The choice is only between DRF and FastAPI.

    5 votes
    1. [3]
      Deimos
      Link Parent
      This just came up today but is worrisome: https://github.com/samuelcolvin/pydantic/issues/2678 Some upcoming changes to type annotations in Python 3.10 make it more difficult for FastAPI. We're...

      This just came up today but is worrisome: https://github.com/samuelcolvin/pydantic/issues/2678

      Some upcoming changes to type annotations in Python 3.10 make it more difficult for FastAPI. We're extremely close to the cutoff for planned changes in 3.10, but it looks like the Steering Council is well aware of the problem now, it's just unfortunate that it's happening so last-minute.

      4 votes
      1. [2]
        Adys
        Link Parent
        I'm not super worried; it's actively looked into yeah. Just now: https://mail.python.org/archives/list/python-dev@python.org/thread/ZBJ7MD6CSGM6LZAOTET7GXAVBZB7O77O/

        I'm not super worried; it's actively looked into yeah.

        Just now: https://mail.python.org/archives/list/python-dev@python.org/thread/ZBJ7MD6CSGM6LZAOTET7GXAVBZB7O77O/

        2 votes
    2. ali
      (edited )
      Link Parent
      I built a whole webapp in a day this week with fastapi. I was amazed by how easy it was The only problem I faced was the deployment (since I’ve never done any deployment myself). I feel like there...

      I built a whole webapp in a day this week with fastapi. I was amazed by how easy it was

      The only problem I faced was the deployment (since I’ve never done any deployment myself). I feel like there were tons more guides how to deploy stuff with flask

      4 votes
    3. keb
      Link Parent
      What's wrong with Bottle? Only reason I asked is because I deployed a simple site with it recently and found it a joy.

      What's wrong with Bottle?

      Only reason I asked is because I deployed a simple site with it recently and found it a joy.

      2 votes
  2. [2]
    teaearlgraycold
    Link
    I’d like to have a post like this for typescript

    I’d like to have a post like this for typescript

    3 votes
    1. Adys
      Link Parent
      "Just use NextJS" :)

      "Just use NextJS" :)

      1 vote