Skip to content

PyVELM v0.24.0

Release date: 2026-05-29

Minor release: modules can register custom HTTP routes from the manifest — no more hand-wiring serve.py.


Highlights

WEB_ROUTES manifest hook

Declare routes in __pyvelm__.py:

WEB_ROUTES: str = "mymodule.web:register_routes"
def register_routes(app) -> None:
    @app.get("/web/mymodule/hello")
    def hello():
        return {"ok": True}

create_app() discovers modules from module_roots, resolves dependency order, and calls each registrar after core routes. app.state.pool is always set for route handlers.

The Feedback Signals example uses this hook; manual registration was removed from examples/serve.py.

See Modules → Custom HTTP routes for apply_request_scope, CSRF, and ORM patterns.


Upgrade

pip install -U pyvelm==0.24.0

No schema changes in the framework package for this release.