Registry / web-framework / baize
library0.23.1pypypi✓ verified 80d ago

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.

pip install baize
INSTALL
IMPORT
SIG · BAIZE
B
baize
web-frameworkpythonv0.23.1
Install
1.7s avg
Import
Disk
17MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.23.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.2MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.7s · import 0.000s · 20MB
17MB installed
● package 17MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Baize
import baize
from baize import Baize

A minimal ASGI Baize application with a single route returning a JSON response.

import os from baize import Baize, Request, Response app = Baize() @app.route("/") async def home(request: Request) -> Response: name = request.query_params.get("name", "World") return Response.json({"message": f"Hello, {name}!"}) if __name__ == "__main__": import uvicorn uvicorn.run(app, host="0.0.0.0", port=8000)
Debug
Known issues
breakingIn version 0.23.0, the top-level exports changed. Classes like Request, Response, and Routing are now directly accessible from 'baize' instead of submodules.
fix
Update imports to match new top-level exports; e.g., 'from baize import Request' instead of 'from baize.http import Request'.
affects: <0.23.0
deprecatedThe 'baize.wsgi' and 'baize.asgi' submodules are deprecated. Use the unified 'baize.Baize' class instead.
fix
Replace 'from baize.wsgi import Baize as WSGI' with 'from baize import Baize' and configure the backend using the 'backend' parameter.
affects: >=0.22.0, <0.23.0
gotchaRoute handlers must be async functions for ASGI. Using synchronous functions will cause runtime errors.
fix
Ensure route handlers are declared with 'async def' when using the ASGI backend (the default).
affects: all
Upgrade
Version history
0.23.1latest on PyPI · released Aug 10, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
36 hits · last 30 days
node
34
OpenAI (training)
1
Resources
baize — pip install baize · libregistry