pyvelm v0.2.6¶
Release date: 2026-05-22
Base module: 0.18.0 (unchanged)
Optional Vellum ORM veneer (Eloquent-style queries, eager load, scopes, events, mass assignment, soft deletes) plus core One2many/Many2many request cache.
Highlights¶
Vellum (from pyvelm.vellum import Vellum)¶
Opt-in per model — list Vellum before BaseModel:
Also: @scope, @on(...), _fillable / _guarded, SoftDeletes,
with_(), with_count(), relation helpers (has_many, belongs_to).
Vellum was later removed from the framework; see current Declaring models for the supported ORM surface.
Core cache¶
One2many / Many2many fields cache child id tuples on env.cache
for the request (invalidated on inverse FK / M2M writes). Benefits all
code, not only Vellum.
Example smoke test¶
examples/modules/vellum_demo demonstrates notes, comments, and soft
delete models.
Install¶
Development from this repo:
Upgrade from v0.2.5¶
pip install -U pyvelm(orpip install -e .)- Restart app / cron workers
- Optional: add
vellumto your dependency list in manifests if you importpyvelm.vellum(bundled module installs automatically withBUILTIN_MODULE_ROOTS) - Models using
SoftDeletesneed a migration fordeleted_at(or reuseactive)
Full diff: v0.2.5…v0.2.6