{
  "id": "task_libraries:rest-api/python",
  "path": "/exapedia/python-rest-api-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "Python REST API libraries",
  "answer": [
    {
      "t": "text",
      "text": "Python REST API frameworks receive HTTP requests, route them to handler functions, and return JSON responses. An ASGI framework accepts async endpoints and runs them on an event loop rather than through synchronous WSGI workers. These libraries let backend services expose their data and actions to apps and AI agents over HTTP."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "Python REST API libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#starlette",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F127"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F128"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F131"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F129"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#aiohttp",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F140"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F141"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F144"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F142"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#fastapi",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F157"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F158"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F161"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F159"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#flask",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F172"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F179"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F176"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#tornado",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F187"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F191"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F189"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#django",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F204"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F208"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#django-rest-framework",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F217"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F221"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F219"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#bottle",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F232"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F241"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F236"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F234"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "PyPI"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#starlette",
          "label": [
            {
              "t": "text",
              "text": "Starlette"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F128"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Async def handlers",
            "Automatic JSON body schemas"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#starlette",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F127"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F138"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#aiohttp",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F140"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#fastapi",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F157"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#flask",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F172"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F180"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#tornado",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F187"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#django",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F204"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F214"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#django-rest-framework",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F217"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F226"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#bottle",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F232"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F242"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F243"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "starlette",
          "name": [
            {
              "t": "fact",
              "fact": "F127"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/Kludex/starlette"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/starlette"
            },
            {
              "label": "Docs",
              "href": "https://www.starlette.io/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F134"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F128"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F130"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F129"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://www.starlette.io/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F127"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from starlette.applications import Starlette\nfrom starlette.responses import JSONResponse\nfrom starlette.routing import Route\n\nasync def status(request):\n    return JSONResponse({\"message\": \"Hello\"})\n\napp = Starlette(routes=[Route(\"/api/status\", status)])\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://www.starlette.io/",
                  "label": [
                    {
                      "t": "text",
                      "text": "index.html"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=starlette%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F127"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F132"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "aiohttp",
          "name": [
            {
              "t": "fact",
              "fact": "F140"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/aio-libs/aiohttp"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/aiohttp"
            },
            {
              "label": "Docs",
              "href": "https://docs.aiohttp.org/en/stable/web_quickstart.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F147"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F141"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F142"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://docs.aiohttp.org/en/stable/web_quickstart.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F140"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/home-assistant/core",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F155"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "async def post(self, request: web.Request, entity_id: str) -> web.Response:\n    \"\"\"Update state of entity.\"\"\"\n    user: User = request[KEY_HASS_USER]\n    if not user.is_admin:\n        raise Unauthorized(entity_id=entity_id)\n    hass = request.app[KEY_HASS]\n\n    body = await request.text()\n\n    try:\n        data: Any = json_loads(body) if body else None\n    except ValueError:\n        return self.json_message(\"Invalid JSON specified.\", HTTPStatus.BAD_REQUEST)\n\n    if not isinstance(data, dict):\n        return self.json_message(\n            \"State data should be a JSON object.\", HTTPStatus.BAD_REQUEST\n        )\n    if (new_state := data.get(\"state\")) is None:\n        return self.json_message(\"No state specified.\", HTTPStatus.BAD_REQUEST)\n\n    attributes = data.get(\"attributes\")\n    force_update = data.get(\"force_update\", False)\n\n    is_new_state = hass.states.get(entity_id) is None\n\n    # Write state\n    try:\n        hass.states.async_set(\n            entity_id, new_state, attributes, force_update, self.context(request)\n        )\n    except InvalidEntityFormatError:\n        return self.json_message(\n            \"Invalid entity ID specified.\", HTTPStatus.BAD_REQUEST\n        )\n    except InvalidStateError:\n        return self.json_message(\"Invalid state specified.\", HTTPStatus.BAD_REQUEST)\n\n    # Read the state back for our response\n    status_code = HTTPStatus.CREATED if is_new_state else HTTPStatus.OK\n    if (state := hass.states.get(entity_id)) is None:\n        return self.json_message(\n            \"Error storing state.\", HTTPStatus.INTERNAL_SERVER_ERROR\n        )\n    return web.Response(\n        body=state.as_dict_json,\n        content_type=CONTENT_TYPE_JSON,\n        status=status_code,\n        headers={\"Location\": f\"/api/states/{entity_id}\"},\n    )",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/home-assistant/core/blob/3df93331719fcb206ab24c165cadf1e796d52c02/homeassistant/components/api/__init__.py",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F154"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=aiohttp%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F140"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from aiohttp import web\n\nroutes = web.RouteTableDef()\n\n@routes.get(\"/api/status\")\nasync def status(request):\n    return web.json_response({\"message\": \"Hello\"})\n\napp = web.Application()\napp.add_routes(routes)\nweb.run_app(app)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://docs.aiohttp.org/en/stable/web_quickstart.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "web_quickstart.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F145"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "fastapi",
          "name": [
            {
              "t": "fact",
              "fact": "F157"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/fastapi/fastapi"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/fastapi"
            },
            {
              "label": "Docs",
              "href": "https://fastapi.tiangolo.com/tutorial/body/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F12"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F158"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F160"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F159"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://fastapi.tiangolo.com/tutorial/body/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F157"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F170"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/fastapi/full-stack-fastapi-template",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F170"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "@router.post(\"/login/access-token\")\ndef login_access_token(\n    session: SessionDep, form_data: Annotated[OAuth2PasswordRequestForm, Depends()]\n) -> Token:\n    \"\"\"\n    OAuth2 compatible token login, get an access token for future requests\n    \"\"\"\n    user = crud.authenticate(\n        session=session, email=form_data.username, password=form_data.password\n    )\n    if not user:\n        raise HTTPException(status_code=400, detail=\"Incorrect email or password\")\n    elif not user.is_active:\n        raise HTTPException(status_code=400, detail=\"Inactive user\")\n    access_token_expires = timedelta(minutes=settings.ACCESS_TOKEN_EXPIRE_MINUTES)\n    return Token(\n        access_token=security.create_access_token(\n            user.id, expires_delta=access_token_expires\n        )\n    )\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/fastapi/full-stack-fastapi-template/blob/aabb90126964a164e02aff39e7c385bb0598236d/backend/app/api/routes/login.py",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F169"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20fastapi%20for%20validated%20request%20handlers%2C%20application%20factories%20and%20serialized%20authentication%20responses&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F157"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from fastapi import FastAPI\n\napp = FastAPI()\n\n@app.get(\"/api/status\")\nasync def status():\n    return {\"message\": \"Hello\"}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://fastapi.tiangolo.com/tutorial/body/",
                  "label": [
                    {
                      "t": "text",
                      "text": "body.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F162"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "flask",
          "name": [
            {
              "t": "fact",
              "fact": "F172"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/pallets/flask"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/Flask"
            },
            {
              "label": "Docs",
              "href": "https://flask.palletsprojects.com/en/stable/api/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F36"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F179"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://flask.palletsprojects.com/en/stable/api/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F172"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F37"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F38"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/apache/superset",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F185"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def create_app(\n    superset_config_module: Optional[str] = None,\n    superset_app_root: Optional[str] = None,\n) -> Flask:\n    app = SupersetApp(__name__)\n\n    try:\n        # Allow user to override our config completely\n        config_module = superset_config_module or os.environ.get(\n            \"SUPERSET_CONFIG\", \"superset.config\"\n        )\n        app.config.from_object(config_module)\n\n        # Allow application to sit on a non-root path\n        # *Please be advised that this feature is in BETA.*\n        app_root = cast(\n            str,\n            superset_app_root\n            or os.environ.get(\"SUPERSET_APP_ROOT\")\n            or app.config[\"APPLICATION_ROOT\"],\n        )\n        # Normalize once at the source: a trailing slash (\"/myapp/\") would\n        # otherwise leak into STATIC_ASSETS_PREFIX (\"/myapp//static/...\")\n        # and APPLICATION_ROOT (the session-cookie path). The middlewares\n        # below re-normalize defensively, but every consumer derives from\n        # this value.\n        app_root = app_root.rstrip(\"/\") or \"/\"\n        if app_root != \"/\":\n            # If not set, manually configure options that depend on the\n            # value of app_root so things work out of the box\n            if not app.config[\"STATIC_ASSETS_PREFIX\"]:\n                app.config[\"STATIC_ASSETS_PREFIX\"] = app_root\n            # Prefix APP_ICON with the static assets prefix so the brand logo\n            # resolves in subdirectory and CDN deployments alike. Using\n            # STATIC_ASSETS_PREFIX (which defaults to app_root just above)\n            # honours a custom CDN/static prefix when the operator sets one.\n            if app.config.get(\"APP_ICON\", \"\").startswith(\"/static/\"):\n                app.config[\"APP_ICON\"] = (\n                    f\"{app.config['STATIC_ASSETS_PREFIX']}{app.config['APP_ICON']}\"\n                )\n            if app.config[\"APPLICATION_ROOT\"] == \"/\":\n                app.config[\"APPLICATION_ROOT\"] = app_root\n\n        app_initializer = app.config.get(\"APP_INITIALIZER\", SupersetAppInitializer)(app)\n        app_initializer.init_app()\n\n        # Must be applied before AppRootMiddleware so the path prefix\n        # is stripped before the extension asset path regex runs.\n        app.wsgi_app = ExtensionCacheMiddleware(app.wsgi_app)\n\n        if app_root != \"/\":\n            app.wsgi_app = AppRootMiddleware(app.wsgi_app, app_root)\n\n        # Final WSGI wrap — must be outermost so it sees the raw inbound\n        # PATH_INFO and 308s legacy `/superset/*` paths before any other\n        # routing runs. Unconditional (independent of `app_root != \"/\"`)\n        # because legacy bookmarks exist under root deployments too.\n        # See the \"Layering invariant\" section of the module docstring\n        # in `superset/middleware/legacy_prefix_redirect.py`.\n        # mypy reads `app.wsgi_app` as `object` after the conditional\n        # `AppRootMiddleware` rewrap above — the LUB of the two branches\n        # widens it. The runtime type is always a WSGI callable; the\n        # `# type: ignore` is intentional.\n        app.wsgi_app = LegacyPrefixRedirectMiddleware(\n            app.wsgi_app,  # type: ignore[arg-type]\n            app_root,\n        )\n\n        # Set up LOCAL_EXTENSIONS file watcher when in debug mode\n        if app.debug:\n            start_local_extensions_watcher_thread(app)\n\n        return app\n\n    # Make sure that bootstrap errors ALWAYS get logged\n    except Exception:\n        logger.exception(\"Failed to create app\")\n        raise\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/apache/superset/blob/e60f79ffe2838cf0a543f906a4d5f1c6c4713652/superset/app.py",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F184"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20Flask%20for%20validated%20request%20handlers%2C%20application%20factories%20and%20serialized%20authentication%20responses&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F172"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from flask import Flask\n\napp = Flask(__name__)\n\n@app.get(\"/api/status\")\ndef status():\n    return {\"message\": \"Hello\"}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://flask.palletsprojects.com/en/stable/api/",
                  "label": [
                    {
                      "t": "text",
                      "text": "api.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F177"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "tornado",
          "name": [
            {
              "t": "fact",
              "fact": "F187"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/tornadoweb/tornado"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/tornado"
            },
            {
              "label": "Docs",
              "href": "https://www.tornadoweb.org/en/stable/web.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F194"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F189"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://www.tornadoweb.org/en/stable/web.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F187"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F202"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F203"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/jupyter-server/jupyter_server",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F202"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "@web.authenticated\n@authorized\nasync def post(self):\n    \"\"\"Start a kernel.\"\"\"\n    km = self.kernel_manager\n    model = self.get_json_body()\n    if model is None:\n        model = {\"name\": km.default_kernel_name}\n    else:\n        model.setdefault(\"name\", km.default_kernel_name)\n\n    kernel_id: str = await ensure_async(\n        km.start_kernel(\n            kernel_name=model[\"name\"],\n            path=model.get(\"path\"),\n            kernel_id=model.get(\"kernel_id\"),\n        )\n    )\n    model = await ensure_async(km.kernel_model(kernel_id))\n    location = url_path_join(self.base_url, \"api\", \"kernels\", url_escape(kernel_id))\n    self.set_header(\"Location\", location)\n    self.set_status(201)\n    self.finish(json.dumps(model, default=json_default))",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/jupyter-server/jupyter_server/blob/c4c5a51d2cf77d31a266376582ee05c4d661ad4b/jupyter_server/services/kernels/handlers.py",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F201"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=tornado%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F187"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import asyncio\nimport tornado.web\n\nclass StatusHandler(tornado.web.RequestHandler):\n    def get(self):\n        self.write({\"message\": \"Hello\"})\n\nasync def main():\n    app = tornado.web.Application([(r\"/api/status\", StatusHandler)])\n    app.listen(8888)\n    await asyncio.Event().wait()\n\nif __name__ == \"__main__\":\n    asyncio.run(main())\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://www.tornadoweb.org/en/stable/web.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "web.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F192"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "django",
          "name": [
            {
              "t": "fact",
              "fact": "F204"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/django/django"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/Django"
            },
            {
              "label": "Docs",
              "href": "https://docs.djangoproject.com/en/6.1/ref/request-response/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F211"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://docs.djangoproject.com/en/6.1/ref/request-response/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F204"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "# demo/views.py\nfrom django.http import JsonResponse\n\ndef status(request):\n    return JsonResponse({\"message\": \"Hello\"})\n\n# demo/urls.py\nfrom django.urls import path\nfrom .views import status\n\nurlpatterns = [path(\"api/status\", status)]\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://docs.djangoproject.com/en/6.1/ref/request-response/",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Django%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F204"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F209"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "django-rest-framework",
          "name": [
            {
              "t": "fact",
              "fact": "F217"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/encode/django-rest-framework"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/djangorestframework"
            },
            {
              "label": "Docs",
              "href": "https://www.django-rest-framework.org/api-guide/generic-views/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F62"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F220"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F219"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://www.django-rest-framework.org/api-guide/generic-views/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F217"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F63"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F64"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F65"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F66"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F68"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F69"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F70"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F231"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/iMerica/dj-rest-auth",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F230"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def get_response(self):\n    serializer_class = self.get_response_serializer()\n\n    if api_settings.USE_JWT:\n        from rest_framework_simplejwt.settings import (\n            api_settings as jwt_settings,\n        )\n        access_token_expiration = (timezone.now() + jwt_settings.ACCESS_TOKEN_LIFETIME)\n        refresh_token_expiration = (timezone.now() + jwt_settings.REFRESH_TOKEN_LIFETIME)\n        return_expiration_times = api_settings.JWT_AUTH_RETURN_EXPIRATION\n        auth_httponly = api_settings.JWT_AUTH_HTTPONLY\n\n        data = {\n            'user': self.user,\n            'access': self.access_token,\n        }\n\n        if not auth_httponly:\n            data['refresh'] = self.refresh_token\n        else:\n            # Wasnt sure if the serializer needed this\n            data['refresh'] = \"\"\n\n        if return_expiration_times:\n            data['access_expiration'] = access_token_expiration\n            data['refresh_expiration'] = refresh_token_expiration\n\n        serializer = serializer_class(\n            instance=data,\n            context=self.get_serializer_context(),\n        )\n    elif self.token:\n        serializer = serializer_class(\n            instance=self.token,\n            context=self.get_serializer_context(),\n        )\n    else:\n        return Response(status=status.HTTP_204_NO_CONTENT)\n\n    response = Response(serializer.data, status=status.HTTP_200_OK)\n    if api_settings.USE_JWT:\n        from .jwt_auth import set_jwt_cookies\n        set_jwt_cookies(response, self.access_token, self.refresh_token)\n    return response\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/iMerica/dj-rest-auth/blob/90082e3a4d257c053e5eef3f30f51cc7f55492ee/dj_rest_auth/views.py",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F229"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20djangorestframework%20for%20validated%20request%20handlers%2C%20application%20factories%20and%20serialized%20authentication%20responses&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F217"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "# demo/settings.py: append to generated project settings\nINSTALLED_APPS += [\"rest_framework\"]\n\n# demo/views.py\nfrom rest_framework.decorators import api_view\nfrom rest_framework.response import Response\n\n@api_view([\"GET\"])\ndef status(request):\n    return Response({\"message\": \"Hello\"})\n\n# demo/urls.py\nfrom django.urls import path\nfrom .views import status\n\nurlpatterns = [path(\"api/status\", status)]\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://www.django-rest-framework.org/api-guide/generic-views/",
                  "label": [
                    {
                      "t": "text",
                      "text": "generic-views.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F222"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "bottle",
          "name": [
            {
              "t": "fact",
              "fact": "F232"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/bottlepy/bottle"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/bottle"
            },
            {
              "label": "Docs",
              "href": "https://bottlepy.org/docs/0.13/tutorial.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F239"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F241"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F234"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://bottlepy.org/docs/0.13/tutorial.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F232"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from bottle import Bottle\n\napp = Bottle()\n\n@app.get(\"/api/status\")\ndef status():\n    return {\"message\": \"Hello\"}\n\napp.run(host=\"127.0.0.1\", port=8080)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://bottlepy.org/docs/0.13/tutorial.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "tutorial.html"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=bottle%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F232"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F237"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which Python REST API framework should I use?",
      "a": [
        {
          "t": "link",
          "href": "#fastapi",
          "label": [
            {
              "t": "text",
              "text": "FastAPI"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits new APIs that declare request models with Pydantic and generate OpenAPI documentation. "
        },
        {
          "t": "link",
          "href": "#django-rest-framework",
          "label": [
            {
              "t": "text",
              "text": "Django REST framework"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits Django projects that need serializers, generic views, and authentication. "
        },
        {
          "t": "link",
          "href": "#flask",
          "label": [
            {
              "t": "text",
              "text": "Flask"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits small services with explicit routes."
        }
      ]
    },
    {
      "q": "What is aiohttp?",
      "a": [
        {
          "t": "link",
          "href": "#aiohttp",
          "label": [
            {
              "t": "text",
              "text": "aiohttp"
            }
          ]
        },
        {
          "t": "text",
          "text": " is an asyncio HTTP framework with a web server and a separate HTTP client in one package."
        }
      ]
    },
    {
      "q": "What is Django REST framework?",
      "a": [
        {
          "t": "link",
          "href": "#django-rest-framework",
          "label": [
            {
              "t": "text",
              "text": "Django REST framework"
            }
          ]
        },
        {
          "t": "text",
          "text": " adds API serializers, parsers, generic views, authentication, and response rendering to Django."
        }
      ]
    },
    {
      "q": "Flask vs Django: which should I use?",
      "a": [
        {
          "t": "link",
          "href": "#flask",
          "label": [
            {
              "t": "text",
              "text": "Flask"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a WSGI microframework that keeps routes and request handling explicit. "
        },
        {
          "t": "link",
          "href": "#django",
          "label": [
            {
              "t": "text",
              "text": "Django"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a full application framework with an ORM, authentication, and generic views."
        }
      ]
    },
    {
      "q": "FastAPI vs Flask: which should I use?",
      "a": [
        {
          "t": "link",
          "href": "#fastapi",
          "label": [
            {
              "t": "text",
              "text": "FastAPI"
            }
          ]
        },
        {
          "t": "text",
          "text": " is an ASGI framework that validates requests against declared Pydantic models and generates OpenAPI documentation. "
        },
        {
          "t": "link",
          "href": "#flask",
          "label": [
            {
              "t": "text",
              "text": "Flask"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a WSGI microframework whose async views stay inside the WSGI worker lifecycle."
        }
      ]
    },
    {
      "q": "What is Starlette?",
      "a": [
        {
          "t": "link",
          "href": "#starlette",
          "label": [
            {
              "t": "text",
              "text": "Starlette"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a low-level ASGI toolkit with routing, request and response objects, middleware, and async endpoints."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, fastapi",
      "display": "FastAPI",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, fastapi",
      "display": "523.1M",
      "asOf": "2026-11-16"
    },
    "F3": {
      "label": "License, fastapi",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, fastapi",
      "display": "0.163.1, Nov 2026",
      "asOf": "2026-11-15"
    },
    "F5": {
      "label": "Package release date, fastapi",
      "display": "Nov 2026",
      "asOf": "2026-11-15"
    },
    "F6": {
      "label": "Repository stars, fastapi",
      "display": "104.8K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Parses JSON requests, fastapi",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Validates request data, fastapi",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Generates OpenAPI schemas, fastapi",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Supports async handlers, fastapi",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Install, fastapi",
      "display": "pip install fastapi",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "What it does, fastapi",
      "display": "Builds Python APIs with typed request models and generated OpenAPI documentation.",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths lead, fastapi",
      "display": "Validates typed request bodies",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths, fastapi",
      "display": "Declare models to parse and validate JSON request bodies.",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths lead, fastapi",
      "display": "Generates interactive API documentation",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths, fastapi",
      "display": "Explore declared endpoints through the included Swagger UI.",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations lead, fastapi",
      "display": "Blocking libraries need sync handlers",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations, fastapi",
      "display": "Use regular def when an I/O library cannot be awaited.",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "Quickstart, fastapi",
      "display": "from fastapi import FastAPI\nfrom pydantic import BaseModel\n\napp = FastAPI()\n\nclass Item(BaseModel):\n    name: str\n    price: float\n    is_offer: bool | None = None\n\n@app.get(\"/\")\ndef read_root():\n    return {\"Hello\": \"World\"}\n\n@app.get(\"/items/{item_id}\")\ndef read_item(item_id: int, q: str | None = None):\n    return {\"item_id\": item_id, \"q\": q}\n\n@app.put(\"/items/{item_id}\")\ndef update_item(item_id: int, item: Item):\n    return {\"item_name\": item.name, \"item_id\": item_id}\n",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "Project function, fastapi",
      "display": "@router.post(\"/login/access-token\")\ndef login_access_token(\n    session: SessionDep, form_data: Annotated[OAuth2PasswordRequestForm, Depends()]\n) -> Token:\n    \"\"\"\n    OAuth2 compatible token login, get an access token for future requests\n    \"\"\"\n    user = crud.authenticate(\n        session=session, email=form_data.username, password=form_data.password\n    )\n    if not user:\n        raise HTTPException(status_code=400, detail=\"Incorrect email or password\")\n    elif not user.is_active:\n        raise HTTPException(status_code=400, detail=\"Inactive user\")\n    access_token_expires = timedelta(minutes=settings.ACCESS_TOKEN_EXPIRE_MINUTES)\n    return Token(\n        access_token=security.create_access_token(\n            user.id, expires_delta=access_token_expires\n        )\n    )\n",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Project function reference, fastapi",
      "display": "login.py · login_access_token()",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project repository, fastapi",
      "display": "fastapi/full-stack-fastapi-template",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project stars, fastapi/full-stack-fastapi-template",
      "display": "46.3K",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project push date, fastapi/full-stack-fastapi-template",
      "display": "Nov 2026",
      "asOf": "2026-11-14"
    },
    "F25": {
      "label": "Library name, Flask",
      "display": "Flask",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Monthly downloads, Flask",
      "display": "202.9M",
      "asOf": "2026-11-16"
    },
    "F27": {
      "label": "License, Flask",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "Package release, Flask",
      "display": "3.1.3, Feb 2026",
      "asOf": "2026-02-19"
    },
    "F29": {
      "label": "Package release date, Flask",
      "display": "Feb 2026",
      "asOf": "2026-02-19"
    },
    "F30": {
      "label": "Repository stars, Flask",
      "display": "75.2K",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Parses JSON requests, Flask",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Validates request data, Flask",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Generates OpenAPI schemas, Flask",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Supports async handlers, Flask",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Install, Flask",
      "display": "pip install Flask",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "What it does, Flask",
      "display": "Provides a compact web framework that can serve Python HTTP APIs.",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "strengths lead, Flask",
      "display": "Returns JSON from dictionaries",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "strengths, Flask",
      "display": "Return dictionaries or lists to create JSON responses.",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "strengths lead, Flask",
      "display": "Adds explicit API extensions",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths, Flask",
      "display": "Use flask-smorest, a REST extension, for validation, and OpenAPI generation.",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "limitations lead, Flask",
      "display": "Async views still occupy workers",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "limitations, Flask",
      "display": "Each request ties up a worker, including an async view.",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "limitations lead, Flask",
      "display": "Spawned background tasks are cancelled",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "limitations, Flask",
      "display": "Use a task queue instead of spawning work inside a view.",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "Quickstart, Flask",
      "display": "# save this as app.py\nfrom flask import Flask\n\napp = Flask(__name__)\n\n@app.route(\"/\")\ndef hello():\n    return \"Hello, World!\"\n",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "Project function, Flask",
      "display": "def create_app(\n    superset_config_module: Optional[str] = None,\n    superset_app_root: Optional[str] = None,\n) -> Flask:\n    app = SupersetApp(__name__)\n\n    try:\n        # Allow user to override our config completely\n        config_module = superset_config_module or os.environ.get(\n            \"SUPERSET_CONFIG\", \"superset.config\"\n        )\n        app.config.from_object(config_module)\n\n        # Allow application to sit on a non-root path\n        # *Please be advised that this feature is in BETA.*\n        app_root = cast(\n            str,\n            superset_app_root\n            or os.environ.get(\"SUPERSET_APP_ROOT\")\n            or app.config[\"APPLICATION_ROOT\"],\n        )\n        # Normalize once at the source: a trailing slash (\"/myapp/\") would\n        # otherwise leak into STATIC_ASSETS_PREFIX (\"/myapp//static/...\")\n        # and APPLICATION_ROOT (the session-cookie path). The middlewares\n        # below re-normalize defensively, but every consumer derives from\n        # this value.\n        app_root = app_root.rstrip(\"/\") or \"/\"\n        if app_root != \"/\":\n            # If not set, manually configure options that depend on the\n            # value of app_root so things work out of the box\n            if not app.config[\"STATIC_ASSETS_PREFIX\"]:\n                app.config[\"STATIC_ASSETS_PREFIX\"] = app_root\n            # Prefix APP_ICON with the static assets prefix so the brand logo\n            # resolves in subdirectory and CDN deployments alike. Using\n            # STATIC_ASSETS_PREFIX (which defaults to app_root just above)\n            # honours a custom CDN/static prefix when the operator sets one.\n            if app.config.get(\"APP_ICON\", \"\").startswith(\"/static/\"):\n                app.config[\"APP_ICON\"] = (\n                    f\"{app.config['STATIC_ASSETS_PREFIX']}{app.config['APP_ICON']}\"\n                )\n            if app.config[\"APPLICATION_ROOT\"] == \"/\":\n                app.config[\"APPLICATION_ROOT\"] = app_root\n\n        app_initializer = app.config.get(\"APP_INITIALIZER\", SupersetAppInitializer)(app)\n        app_initializer.init_app()\n\n        # Must be applied before AppRootMiddleware so the path prefix\n        # is stripped before the extension asset path regex runs.\n        app.wsgi_app = ExtensionCacheMiddleware(app.wsgi_app)\n\n        if app_root != \"/\":\n            app.wsgi_app = AppRootMiddleware(app.wsgi_app, app_root)\n\n        # Final WSGI wrap — must be outermost so it sees the raw inbound\n        # PATH_INFO and 308s legacy `/superset/*` paths before any other\n        # routing runs. Unconditional (independent of `app_root != \"/\"`)\n        # because legacy bookmarks exist under root deployments too.\n        # See the \"Layering invariant\" section of the module docstring\n        # in `superset/middleware/legacy_prefix_redirect.py`.\n        # mypy reads `app.wsgi_app` as `object` after the conditional\n        # `AppRootMiddleware` rewrap above — the LUB of the two branches\n        # widens it. The runtime type is always a WSGI callable; the\n        # `# type: ignore` is intentional.\n        app.wsgi_app = LegacyPrefixRedirectMiddleware(\n            app.wsgi_app,  # type: ignore[arg-type]\n            app_root,\n        )\n\n        # Set up LOCAL_EXTENSIONS file watcher when in debug mode\n        if app.debug:\n            start_local_extensions_watcher_thread(app)\n\n        return app\n\n    # Make sure that bootstrap errors ALWAYS get logged\n    except Exception:\n        logger.exception(\"Failed to create app\")\n        raise\n",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Project function reference, Flask",
      "display": "app.py · create_app()",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project repository, Flask",
      "display": "apache/superset",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project stars, apache/superset",
      "display": "75.5K",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project push date, apache/superset",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F51": {
      "label": "Library name, djangorestframework",
      "display": "Django REST framework",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Monthly downloads, djangorestframework",
      "display": "28.5M",
      "asOf": "2026-11-16"
    },
    "F53": {
      "label": "License, djangorestframework",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-17"
    },
    "F54": {
      "label": "Package release, djangorestframework",
      "display": "3.18.3, Oct 2026",
      "asOf": "2026-10-06"
    },
    "F55": {
      "label": "Package release date, djangorestframework",
      "display": "Oct 2026",
      "asOf": "2026-10-06"
    },
    "F56": {
      "label": "Repository stars, djangorestframework",
      "display": "30.2K",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Parses JSON requests, djangorestframework",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Validates request data, djangorestframework",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Generates OpenAPI schemas, djangorestframework",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Supports async handlers, djangorestframework",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "Install, djangorestframework",
      "display": "pip install djangorestframework",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "What it does, djangorestframework",
      "display": "Builds web APIs around Django models, serializers, and viewsets.",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "strengths lead, djangorestframework",
      "display": "Connects serializers and model views",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "strengths, djangorestframework",
      "display": "Build model-backed APIs with serializers, viewsets, and automatic routing.",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "strengths lead, djangorestframework",
      "display": "Reports structured validation errors",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "strengths, djangorestframework",
      "display": "Call is_valid to validate data and inspect serializer errors.",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "limitations lead, djangorestframework",
      "display": "Built-in schemas are deprecated",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "limitations, djangorestframework",
      "display": "Use drf-spectacular, an OpenAPI generator, for the recommended replacement.",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "limitations lead, djangorestframework",
      "display": "Async path uses adrf",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "limitations, djangorestframework",
      "display": "Use adrf, an async adapter, for coroutine-based views.",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "Quickstart, djangorestframework",
      "display": "from django.contrib.auth.models import User\nfrom django.urls import include, path\nfrom rest_framework import routers, serializers, viewsets\n\n# Serializers define the API representation.\nclass UserSerializer(serializers.HyperlinkedModelSerializer):\n    class Meta:\n        model = User\n        fields = [\"url\", \"username\", \"email\", \"is_staff\"]\n\n# ViewSets define the view behavior.\nclass UserViewSet(viewsets.ModelViewSet):\n    queryset = User.objects.all()\n    serializer_class = UserSerializer\n\n# Routers provide a way of automatically determining the URL conf.\nrouter = routers.DefaultRouter()\nrouter.register(r\"users\", UserViewSet)\n\n# Wire up our API using automatic URL routing.\n# Additionally, we include login URLs for the browsable API.\nurlpatterns = [\n    path(\"\", include(router.urls)),\n    path(\"api-auth/\", include(\"rest_framework.urls\", namespace=\"rest_framework\")),\n]\n",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "Project function, djangorestframework",
      "display": "def get_response(self):\n    serializer_class = self.get_response_serializer()\n\n    if api_settings.USE_JWT:\n        from rest_framework_simplejwt.settings import (\n            api_settings as jwt_settings,\n        )\n        access_token_expiration = (timezone.now() + jwt_settings.ACCESS_TOKEN_LIFETIME)\n        refresh_token_expiration = (timezone.now() + jwt_settings.REFRESH_TOKEN_LIFETIME)\n        return_expiration_times = api_settings.JWT_AUTH_RETURN_EXPIRATION\n        auth_httponly = api_settings.JWT_AUTH_HTTPONLY\n\n        data = {\n            'user': self.user,\n            'access': self.access_token,\n        }\n\n        if not auth_httponly:\n            data['refresh'] = self.refresh_token\n        else:\n            # Wasnt sure if the serializer needed this\n            data['refresh'] = \"\"\n\n        if return_expiration_times:\n            data['access_expiration'] = access_token_expiration\n            data['refresh_expiration'] = refresh_token_expiration\n\n        serializer = serializer_class(\n            instance=data,\n            context=self.get_serializer_context(),\n        )\n    elif self.token:\n        serializer = serializer_class(\n            instance=self.token,\n            context=self.get_serializer_context(),\n        )\n    else:\n        return Response(status=status.HTTP_204_NO_CONTENT)\n\n    response = Response(serializer.data, status=status.HTTP_200_OK)\n    if api_settings.USE_JWT:\n        from .jwt_auth import set_jwt_cookies\n        set_jwt_cookies(response, self.access_token, self.refresh_token)\n    return response\n",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Project function reference, djangorestframework",
      "display": "views.py · get_response()",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Project repository, djangorestframework",
      "display": "iMerica/dj-rest-auth",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Project stars, iMerica/dj-rest-auth",
      "display": "1.9K",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Project push date, iMerica/dj-rest-auth",
      "display": "Nov 2026",
      "asOf": "2026-11-08"
    },
    "F77": {
      "label": "Library name, falcon",
      "display": "Falcon",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Monthly downloads, falcon",
      "display": "1.6M",
      "asOf": "2026-11-16"
    },
    "F79": {
      "label": "License, falcon",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Package release, falcon",
      "display": "4.4.0, Sep 2026",
      "asOf": "2026-09-30"
    },
    "F81": {
      "label": "Package release date, falcon",
      "display": "Sep 2026",
      "asOf": "2026-09-30"
    },
    "F82": {
      "label": "Repository stars, falcon",
      "display": "9.8K",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "Parses JSON requests, falcon",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Validates request data, falcon",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "Supports async handlers, falcon",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "Install, falcon",
      "display": "pip install falcon",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "What it does, falcon",
      "display": "Provides a minimalist ASGI and WSGI framework for HTTP APIs.",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "strengths lead, falcon",
      "display": "Supports sync and async APIs",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "strengths, falcon",
      "display": "Choose WSGI or ASGI applications for the appropriate handlers.",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "strengths lead, falcon",
      "display": "Customizes HTTP behavior directly",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "strengths, falcon",
      "display": "Build responses using responders, hooks, and middleware.",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "limitations lead, falcon",
      "display": "Schema validation uses jsonschema",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "limitations, falcon",
      "display": "Use jsonschema, a validation engine, with Falcon’s schema decorator.",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "limitations lead, falcon",
      "display": "Integrations need explicit selection",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "limitations, falcon",
      "display": "Choose additional packages for the features your service needs.",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "Quickstart, falcon",
      "display": "# examples/things_asgi.py\n\nimport falcon\nimport falcon.asgi\nfrom falcon.asgi import Request\nfrom falcon.asgi import Response\n\n\n# Falcon follows the REST architectural style, meaning (among\n# other things) that you think in terms of resources and state\n# transitions, which map to HTTP verbs.\nclass ThingsResource:\n    async def on_get(self, req: Request, resp: Response) -> None:\n        \"\"\"Handles GET requests\"\"\"\n        resp.status = falcon.HTTP_200  # This is the default status\n        resp.content_type = falcon.MEDIA_TEXT  # Default is JSON, so override\n        resp.text = ('\\nTwo things awe me most, the starry sky '\n                     'above me and the moral law within me.\\n'\n                     '\\n'\n                     '    ~ Immanuel Kant\\n\\n')\n\n\n# falcon.asgi.App instances are callable ASGI apps...\n# in larger applications the app is created in a separate file\napp = falcon.asgi.App()\n\n# Resources are represented by long-lived class instances\nthings = ThingsResource()\n\n# things will handle all requests to the '/things' URL path\napp.add_route('/things', things)\n\n",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Developer need",
      "display": "Typed request validation",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Why choose fastapi",
      "display": "validation from declared request models",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Developer need in introduction",
      "display": "typed request validation",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "When to consider djangorestframework",
      "display": "the application already uses Django models",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Developer need",
      "display": "A compact extension-based application",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Why choose Flask",
      "display": "explicit REST validation and schema extensions",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Developer need in introduction",
      "display": "a compact extension-based application",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Developer need",
      "display": "APIs around Django models",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Why choose djangorestframework",
      "display": "serializers, viewsets, and automatic routing",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Developer need in introduction",
      "display": "APIs around Django models",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "When to consider falcon",
      "display": "direct HTTP responders matter more than Django integration",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Developer need",
      "display": "Minimalist sync or async services",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Why choose falcon",
      "display": "separate WSGI and ASGI applications",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Developer need in introduction",
      "display": "minimalist sync or async services",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "When to consider fastapi",
      "display": "generated interactive documentation is a priority",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "Page introduction",
      "display": "Python REST API libraries let API developers build HTTP APIs.",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "FAQ: Which Python REST API framework should I choose?",
      "display": "FastAPI validates declared request data.",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "FAQ: Which Python REST API framework should I choose?",
      "display": "Flask supports explicit API extensions.",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "FAQ: Which Python REST API framework should I choose?",
      "display": "Django REST framework connects serializers and model viewsets.",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "FAQ: Which Python REST API framework should I choose?",
      "display": "Falcon provides ASGI and WSGI application models.",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "FAQ: Does an async Flask view handle extra concurrent requests automatically?",
      "display": "Each request still occupies a worker, even for async views.",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "FAQ: Can a Flask view spawn a lasting background task?",
      "display": "Additional tasks still running when the view completes are cancelled.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: Should blocking I/O use async def in FastAPI?",
      "display": "Use regular def when the called I/O library does not support await.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: Does Flask require an API extension to return JSON?",
      "display": "Dictionary and list return values are converted into JSON responses.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: Which extension is used for Flask validation and OpenAPI here?",
      "display": "flask-smorest uses marshmallow, webargs, and apispec for its API workflow.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: Is Django REST framework built-in schema generation still the recommended path?",
      "display": "Built-in OpenAPI generation is deprecated.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: Is Django REST framework built-in schema generation still the recommended path?",
      "display": "The project recommends drf-spectacular as a replacement.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: How are invalid serializer inputs inspected?",
      "display": "Call is_valid before accessing validated data and inspect errors after validation fails.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: How does Falcon run asynchronous handlers?",
      "display": "Use falcon.asgi.App and serve it through an ASGI server.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "FAQ: What supplies Falcon JSON Schema validation?",
      "display": "Its validation decorator uses the separately provisioned jsonschema engine.",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "Library name, starlette",
      "display": "Starlette",
      "asOf": "2026-11-20"
    },
    "F128": {
      "label": "Monthly downloads, starlette",
      "display": "706.4M",
      "asOf": "2026-11-20"
    },
    "F129": {
      "label": "License, starlette",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-20"
    },
    "F130": {
      "label": "Package release, starlette",
      "display": "1.10.0",
      "asOf": "2026-11-20"
    },
    "F131": {
      "label": "Package release date, starlette",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F132": {
      "label": "Install, starlette",
      "display": "python -m pip install starlette==1.10.0 uvicorn",
      "asOf": "2026-11-20"
    },
    "F133": {
      "label": "Quickstart, starlette",
      "display": "from starlette.applications import Starlette\nfrom starlette.responses import JSONResponse\nfrom starlette.routing import Route\n\nasync def status(request):\n    return JSONResponse({\"message\": \"Hello\"})\n\napp = Starlette(routes=[Route(\"/api/status\", status)])\n",
      "asOf": "2026-11-20"
    },
    "F134": {
      "label": "Official description, starlette",
      "display": "Builds web applications on ASGI.",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "Quickstart source file, starlette",
      "display": "index.html",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "Repository stars, starlette",
      "display": "12.7K",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "Async def handlers, starlette",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Automatic JSON body schemas, starlette",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "HTTP/validation integration, starlette",
      "display": "Low-level ASGI toolkit with routing, request/response objects, middleware, and async endpoints; assemble typed validation separately.",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Library name, aiohttp",
      "display": "aiohttp",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Monthly downloads, aiohttp",
      "display": "562.2M",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "License, aiohttp",
      "display": "Apache-2.0 AND MIT",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Package release, aiohttp",
      "display": "3.14.5",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Package release date, aiohttp",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Install, aiohttp",
      "display": "python -m pip install aiohttp==3.14.5",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Quickstart, aiohttp",
      "display": "from aiohttp import web\n\nroutes = web.RouteTableDef()\n\n@routes.get(\"/api/status\")\nasync def status(request):\n    return web.json_response({\"message\": \"Hello\"})\n\napp = web.Application()\napp.add_routes(routes)\nweb.run_app(app)\n",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Official description, aiohttp",
      "display": "Serves and sends HTTP requests on asyncio.",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Quickstart source file, aiohttp",
      "display": "web_quickstart.html",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Repository stars, aiohttp",
      "display": "16.6K",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Async def handlers, aiohttp",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Automatic JSON body schemas, aiohttp",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "HTTP/validation integration, aiohttp",
      "display": "Asyncio HTTP server plus a separate client interface in the same distribution; this comparison uses only web server APIs.",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Project function, aiohttp",
      "display": "async def post(self, request: web.Request, entity_id: str) -> web.Response:\n    \"\"\"Update state of entity.\"\"\"\n    user: User = request[KEY_HASS_USER]\n    if not user.is_admin:\n        raise Unauthorized(entity_id=entity_id)\n    hass = request.app[KEY_HASS]\n\n    body = await request.text()\n\n    try:\n        data: Any = json_loads(body) if body else None\n    except ValueError:\n        return self.json_message(\"Invalid JSON specified.\", HTTPStatus.BAD_REQUEST)\n\n    if not isinstance(data, dict):\n        return self.json_message(\n            \"State data should be a JSON object.\", HTTPStatus.BAD_REQUEST\n        )\n    if (new_state := data.get(\"state\")) is None:\n        return self.json_message(\"No state specified.\", HTTPStatus.BAD_REQUEST)\n\n    attributes = data.get(\"attributes\")\n    force_update = data.get(\"force_update\", False)\n\n    is_new_state = hass.states.get(entity_id) is None\n\n    # Write state\n    try:\n        hass.states.async_set(\n            entity_id, new_state, attributes, force_update, self.context(request)\n        )\n    except InvalidEntityFormatError:\n        return self.json_message(\n            \"Invalid entity ID specified.\", HTTPStatus.BAD_REQUEST\n        )\n    except InvalidStateError:\n        return self.json_message(\"Invalid state specified.\", HTTPStatus.BAD_REQUEST)\n\n    # Read the state back for our response\n    status_code = HTTPStatus.CREATED if is_new_state else HTTPStatus.OK\n    if (state := hass.states.get(entity_id)) is None:\n        return self.json_message(\n            \"Error storing state.\", HTTPStatus.INTERNAL_SERVER_ERROR\n        )\n    return web.Response(\n        body=state.as_dict_json,\n        content_type=CONTENT_TYPE_JSON,\n        status=status_code,\n        headers={\"Location\": f\"/api/states/{entity_id}\"},\n    )",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Project source file, aiohttp",
      "display": "homeassistant/components/api/__init__.py",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Project full_name, aiohttp",
      "display": "home-assistant/core",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Project stargazers_count, aiohttp",
      "display": "92.3K",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Library name, fastapi",
      "display": "FastAPI",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Monthly downloads, fastapi",
      "display": "544.0M",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "License, fastapi",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Package release, fastapi",
      "display": "0.165.0",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Package release date, fastapi",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Install, fastapi",
      "display": "python -m pip install \"fastapi[standard]==0.165.0\"",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Quickstart, fastapi",
      "display": "from fastapi import FastAPI\n\napp = FastAPI()\n\n@app.get(\"/api/status\")\nasync def status():\n    return {\"message\": \"Hello\"}\n",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Repository stars, fastapi",
      "display": "104.9K",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Async def handlers, fastapi",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Automatic JSON body schemas, fastapi",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "HTTP/validation integration, fastapi",
      "display": "ASGI API framework with declared Pydantic request models, dependency injection, validation, and generated OpenAPI.",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Project function, fastapi",
      "display": "@router.post(\"/login/access-token\")\ndef login_access_token(\n    session: SessionDep, form_data: Annotated[OAuth2PasswordRequestForm, Depends()]\n) -> Token:\n    \"\"\"\n    OAuth2 compatible token login, get an access token for future requests\n    \"\"\"\n    user = crud.authenticate(\n        session=session, email=form_data.username, password=form_data.password\n    )\n    if not user:\n        raise HTTPException(status_code=400, detail=\"Incorrect email or password\")\n    elif not user.is_active:\n        raise HTTPException(status_code=400, detail=\"Inactive user\")\n    access_token_expires = timedelta(minutes=settings.ACCESS_TOKEN_EXPIRE_MINUTES)\n    return Token(\n        access_token=security.create_access_token(\n            user.id, expires_delta=access_token_expires\n        )\n    )\n",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Project source file, fastapi",
      "display": "backend/app/api/routes/login.py",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Project full_name, fastapi",
      "display": "fastapi/full-stack-fastapi-template",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Project stargazers_count, fastapi",
      "display": "46.3K",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Library name, Flask",
      "display": "Flask",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Monthly downloads, Flask",
      "display": "208.0M",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "License, Flask",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Package release, Flask",
      "display": "3.1.3",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Package release date, Flask",
      "display": "Feb 2026",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Install, Flask",
      "display": "python -m pip install Flask==3.1.3",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Quickstart, Flask",
      "display": "from flask import Flask\n\napp = Flask(__name__)\n\n@app.get(\"/api/status\")\ndef status():\n    return {\"message\": \"Hello\"}\n",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Repository stars, Flask",
      "display": "75.2K",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Async def handlers, Flask",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Automatic JSON body schemas, Flask",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "HTTP/validation integration, Flask",
      "display": "WSGI microframework for explicit routes and request handling; async views need Flask[async] and remain within WSGI worker lifecycle.",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Project function, Flask",
      "display": "def create_app(\n    superset_config_module: Optional[str] = None,\n    superset_app_root: Optional[str] = None,\n) -> Flask:\n    app = SupersetApp(__name__)\n\n    try:\n        # Allow user to override our config completely\n        config_module = superset_config_module or os.environ.get(\n            \"SUPERSET_CONFIG\", \"superset.config\"\n        )\n        app.config.from_object(config_module)\n\n        # Allow application to sit on a non-root path\n        # *Please be advised that this feature is in BETA.*\n        app_root = cast(\n            str,\n            superset_app_root\n            or os.environ.get(\"SUPERSET_APP_ROOT\")\n            or app.config[\"APPLICATION_ROOT\"],\n        )\n        # Normalize once at the source: a trailing slash (\"/myapp/\") would\n        # otherwise leak into STATIC_ASSETS_PREFIX (\"/myapp//static/...\")\n        # and APPLICATION_ROOT (the session-cookie path). The middlewares\n        # below re-normalize defensively, but every consumer derives from\n        # this value.\n        app_root = app_root.rstrip(\"/\") or \"/\"\n        if app_root != \"/\":\n            # If not set, manually configure options that depend on the\n            # value of app_root so things work out of the box\n            if not app.config[\"STATIC_ASSETS_PREFIX\"]:\n                app.config[\"STATIC_ASSETS_PREFIX\"] = app_root\n            # Prefix APP_ICON with the static assets prefix so the brand logo\n            # resolves in subdirectory and CDN deployments alike. Using\n            # STATIC_ASSETS_PREFIX (which defaults to app_root just above)\n            # honours a custom CDN/static prefix when the operator sets one.\n            if app.config.get(\"APP_ICON\", \"\").startswith(\"/static/\"):\n                app.config[\"APP_ICON\"] = (\n                    f\"{app.config['STATIC_ASSETS_PREFIX']}{app.config['APP_ICON']}\"\n                )\n            if app.config[\"APPLICATION_ROOT\"] == \"/\":\n                app.config[\"APPLICATION_ROOT\"] = app_root\n\n        app_initializer = app.config.get(\"APP_INITIALIZER\", SupersetAppInitializer)(app)\n        app_initializer.init_app()\n\n        # Must be applied before AppRootMiddleware so the path prefix\n        # is stripped before the extension asset path regex runs.\n        app.wsgi_app = ExtensionCacheMiddleware(app.wsgi_app)\n\n        if app_root != \"/\":\n            app.wsgi_app = AppRootMiddleware(app.wsgi_app, app_root)\n\n        # Final WSGI wrap — must be outermost so it sees the raw inbound\n        # PATH_INFO and 308s legacy `/superset/*` paths before any other\n        # routing runs. Unconditional (independent of `app_root != \"/\"`)\n        # because legacy bookmarks exist under root deployments too.\n        # See the \"Layering invariant\" section of the module docstring\n        # in `superset/middleware/legacy_prefix_redirect.py`.\n        # mypy reads `app.wsgi_app` as `object` after the conditional\n        # `AppRootMiddleware` rewrap above — the LUB of the two branches\n        # widens it. The runtime type is always a WSGI callable; the\n        # `# type: ignore` is intentional.\n        app.wsgi_app = LegacyPrefixRedirectMiddleware(\n            app.wsgi_app,  # type: ignore[arg-type]\n            app_root,\n        )\n\n        # Set up LOCAL_EXTENSIONS file watcher when in debug mode\n        if app.debug:\n            start_local_extensions_watcher_thread(app)\n\n        return app\n\n    # Make sure that bootstrap errors ALWAYS get logged\n    except Exception:\n        logger.exception(\"Failed to create app\")\n        raise\n",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Project source file, Flask",
      "display": "superset/app.py",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Project full_name, Flask",
      "display": "apache/superset",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Project stargazers_count, Flask",
      "display": "75.5K",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Library name, tornado",
      "display": "Tornado",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Monthly downloads, tornado",
      "display": "122.3M",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "License, tornado",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Package release, tornado",
      "display": "6.6.1",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Package release date, tornado",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Install, tornado",
      "display": "python -m pip install tornado==6.6.1",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Quickstart, tornado",
      "display": "import asyncio\nimport tornado.web\n\nclass StatusHandler(tornado.web.RequestHandler):\n    def get(self):\n        self.write({\"message\": \"Hello\"})\n\nasync def main():\n    app = tornado.web.Application([(r\"/api/status\", StatusHandler)])\n    app.listen(8888)\n    await asyncio.Event().wait()\n\nif __name__ == \"__main__\":\n    asyncio.run(main())\n",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Official description, tornado",
      "display": "Provides a Python web framework and asynchronous networking library.",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Quickstart source file, tornado",
      "display": "web.html",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Repository stars, tornado",
      "display": "22.2K",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Async def handlers, tornado",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Automatic JSON body schemas, tornado",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "HTTP/validation integration, tornado",
      "display": "Async HTTP framework/server with RequestHandler methods and explicit response/status/header control.",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Project function, tornado",
      "display": "@web.authenticated\n@authorized\nasync def post(self):\n    \"\"\"Start a kernel.\"\"\"\n    km = self.kernel_manager\n    model = self.get_json_body()\n    if model is None:\n        model = {\"name\": km.default_kernel_name}\n    else:\n        model.setdefault(\"name\", km.default_kernel_name)\n\n    kernel_id: str = await ensure_async(\n        km.start_kernel(\n            kernel_name=model[\"name\"],\n            path=model.get(\"path\"),\n            kernel_id=model.get(\"kernel_id\"),\n        )\n    )\n    model = await ensure_async(km.kernel_model(kernel_id))\n    location = url_path_join(self.base_url, \"api\", \"kernels\", url_escape(kernel_id))\n    self.set_header(\"Location\", location)\n    self.set_status(201)\n    self.finish(json.dumps(model, default=json_default))",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Project source file, tornado",
      "display": "jupyter_server/services/kernels/handlers.py",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Project full_name, tornado",
      "display": "jupyter-server/jupyter_server",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Project stargazers_count, tornado",
      "display": "573",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Library name, Django",
      "display": "Django",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Monthly downloads, Django",
      "display": "51.9M",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "License, Django",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Package release, Django",
      "display": "6.1.3",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Package release date, Django",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Install, Django",
      "display": "python -m pip install Django==6.1.3",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Quickstart, Django",
      "display": "# demo/views.py\nfrom django.http import JsonResponse\n\ndef status(request):\n    return JsonResponse({\"message\": \"Hello\"})\n\n# demo/urls.py\nfrom django.urls import path\nfrom .views import status\n\nurlpatterns = [path(\"api/status\", status)]\n",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Official description, Django",
      "display": "Provides a high-level Python web framework.",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Quickstart source file, Django",
      "display": "request-response",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Repository stars, Django",
      "display": "91.8K",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Async def handlers, Django",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Automatic JSON body schemas, Django",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "HTTP/validation integration, Django",
      "display": "Full application framework with ORM, authentication, generic views, and HttpRequest/JsonResponse; JSON body schema injection is additional work.",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Library name, djangorestframework",
      "display": "Django REST framework",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Monthly downloads, djangorestframework",
      "display": "30.2M",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "License, djangorestframework",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Package release, djangorestframework",
      "display": "3.18.3",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Package release date, djangorestframework",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Install, djangorestframework",
      "display": "python -m pip install djangorestframework==3.18.3 Django==6.1.3",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Quickstart, djangorestframework",
      "display": "# demo/settings.py: append to generated project settings\nINSTALLED_APPS += [\"rest_framework\"]\n\n# demo/views.py\nfrom rest_framework.decorators import api_view\nfrom rest_framework.response import Response\n\n@api_view([\"GET\"])\ndef status(request):\n    return Response({\"message\": \"Hello\"})\n\n# demo/urls.py\nfrom django.urls import path\nfrom .views import status\n\nurlpatterns = [path(\"api/status\", status)]\n",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Repository stars, djangorestframework",
      "display": "30.2K",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Async def handlers, djangorestframework",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Automatic JSON body schemas, djangorestframework",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "HTTP/validation integration, djangorestframework",
      "display": "Django API serializers, parsers, generic CRUD views, authentication, and response rendering; core APIView dispatch remains synchronous.",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Project function, djangorestframework",
      "display": "def get_response(self):\n    serializer_class = self.get_response_serializer()\n\n    if api_settings.USE_JWT:\n        from rest_framework_simplejwt.settings import (\n            api_settings as jwt_settings,\n        )\n        access_token_expiration = (timezone.now() + jwt_settings.ACCESS_TOKEN_LIFETIME)\n        refresh_token_expiration = (timezone.now() + jwt_settings.REFRESH_TOKEN_LIFETIME)\n        return_expiration_times = api_settings.JWT_AUTH_RETURN_EXPIRATION\n        auth_httponly = api_settings.JWT_AUTH_HTTPONLY\n\n        data = {\n            'user': self.user,\n            'access': self.access_token,\n        }\n\n        if not auth_httponly:\n            data['refresh'] = self.refresh_token\n        else:\n            # Wasnt sure if the serializer needed this\n            data['refresh'] = \"\"\n\n        if return_expiration_times:\n            data['access_expiration'] = access_token_expiration\n            data['refresh_expiration'] = refresh_token_expiration\n\n        serializer = serializer_class(\n            instance=data,\n            context=self.get_serializer_context(),\n        )\n    elif self.token:\n        serializer = serializer_class(\n            instance=self.token,\n            context=self.get_serializer_context(),\n        )\n    else:\n        return Response(status=status.HTTP_204_NO_CONTENT)\n\n    response = Response(serializer.data, status=status.HTTP_200_OK)\n    if api_settings.USE_JWT:\n        from .jwt_auth import set_jwt_cookies\n        set_jwt_cookies(response, self.access_token, self.refresh_token)\n    return response\n",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Project source file, djangorestframework",
      "display": "dj_rest_auth/views.py",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Project full_name, djangorestframework",
      "display": "iMerica/dj-rest-auth",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Project stargazers_count, djangorestframework",
      "display": "1.9K",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Library name, bottle",
      "display": "Bottle",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Monthly downloads, bottle",
      "display": "9.6M",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "License, bottle",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Package release, bottle",
      "display": "0.13.4",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Package release date, bottle",
      "display": "Jun 2025",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Install, bottle",
      "display": "python -m pip install bottle==0.13.4",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Quickstart, bottle",
      "display": "from bottle import Bottle\n\napp = Bottle()\n\n@app.get(\"/api/status\")\ndef status():\n    return {\"message\": \"Hello\"}\n\napp.run(host=\"127.0.0.1\", port=8080)\n",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Official description, bottle",
      "display": "Runs small web applications on WSGI.",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Quickstart source file, bottle",
      "display": "tutorial.html",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Repository stars, bottle",
      "display": "8.8K",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Async def handlers, bottle",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Automatic JSON body schemas, bottle",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "HTTP/validation integration, bottle",
      "display": "Compact WSGI route/request/response framework with default dictionary-to-JSON plugin; gevent concurrency is distinct from native async def handlers.",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best Python REST API libraries FastAPI Flask Django REST framework Falcon code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
