pyvelm v0.20.0¶
Release date: 2026-05-28
IDE support for app authors: generate typing stubs from the live module registry so editors catch typos in model and view string literals.
Highlights¶
pyvelm make:stubs¶
Walks the same module discovery path as the loader (models + declarative
VIEWS in DATA files) and writes:
| Output | Purpose |
|---|---|
.pyvelm/typing/names.pyi |
ModelName, QualifiedViewName, ViewName literals |
.pyvelm/typing/models_stubs.pyi |
Per-model recordset stub classes |
.pyvelm/typing/pyvelm/env.pyi |
env["res.partner"] overloads |
.pyvelm/typing/pyvelm/registry.pyi |
registry["res.partner"] overloads |
Flags: --output=, --modules-root=, --app-only (skip bundled
base / admin symbols).
Project scaffold¶
pyvelm init now ships pyrightconfig.json and gitignores .pyvelm/.
Regenerate stubs after model or view changes.
Upgrade¶
No database migration. Optional for each app:
Docs¶
- IDE typing stubs — VS Code / Cursor / PyCharm setup
- Console commands — generator table includes
make:stubs