{"id":23350,"library":"baize","title":"Baize","description":"Baize is a powerful and elegant WSGI/ASGI framework/toolkit for Python, providing high-level abstractions for building HTTP applications. It supports both WSGI and ASGI interfaces, includes routing, request/response handling, middleware, and WebSocket support. The current version is 0.23.1, released with a focus on stability and performance. The library follows a semver-like release cadence, with minor releases every few months.","status":"active","version":"0.23.1","language":"python","source_language":"en","source_url":"https://github.com/abersheeran/baize","tags":["wsgi","asgi","web-framework","http","async"],"install":[{"cmd":"pip install baize","lang":"bash","label":"Standard install"}],"dependencies":[],"imports":[{"wrong":"from baize import Baize","symbol":"Baize","correct":"import baize"}],"quickstart":{"code":"import os\nfrom baize import Baize, Request, Response\n\napp = Baize()\n\n@app.route(\"/\")\nasync def home(request: Request) -> Response:\n    name = request.query_params.get(\"name\", \"World\")\n    return Response.json({\"message\": f\"Hello, {name}!\"})\n\nif __name__ == \"__main__\":\n    import uvicorn\n    uvicorn.run(app, host=\"0.0.0.0\", port=8000)","lang":"python","description":"A minimal ASGI Baize application with a single route returning a JSON response."},"warnings":[{"fix":"Update imports to match new top-level exports; e.g., 'from baize import Request' instead of 'from baize.http import Request'.","message":"In version 0.23.0, the top-level exports changed. Classes like Request, Response, and Routing are now directly accessible from 'baize' instead of submodules.","severity":"breaking","affected_versions":"<0.23.0"},{"fix":"Replace 'from baize.wsgi import Baize as WSGI' with 'from baize import Baize' and configure the backend using the 'backend' parameter.","message":"The 'baize.wsgi' and 'baize.asgi' submodules are deprecated. Use the unified 'baize.Baize' class instead.","severity":"deprecated","affected_versions":">=0.22.0, <0.23.0"},{"fix":"Ensure route handlers are declared with 'async def' when using the ASGI backend (the default).","message":"Route handlers must be async functions for ASGI. Using synchronous functions will cause runtime errors.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'0.23.1':40 'abstract':16 'applic':20 'asgi':26,65 'async':70 'baiz':1,2 'build':18 'cadenc':57 'current':37 'eleg':7 'everi':61 'focus':44 'follow':51 'framework':68 'framework/toolkit':9 'handl':31 'high':14 'high-level':13 'http':19,69 'includ':28 'interfac':27 'level':15 'librari':50 'like':55 'middlewar':32 'minor':59 'month':63 'perform':48 'power':5 'provid':12 'python':11 'releas':41,56,60 'request/response':30 'rout':29 'semver':54 'semver-lik':53 'stabil':46 'support':22,35 'version':38 'web':67 'web-framework':66 'websocket':34 'wsgi':24,64 'wsgi/asgi':8","created_at":"2026-05-01T08:07:19.369418+00:00","updated_at":"2026-05-01T08:07:19.369418+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"0.23.1","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/abersheeran/baize","docs":"https://baize.aber.sh/","changelog":null,"pypi":"https://pypi.org/project/baize/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework","http-networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}